mirror of
https://github.com/launchbadge/sqlx
synced 2024-11-10 14:34:19 +00:00
c4130d45e3
* use native-tls API * Add client cert and key to MySQL connector * Add client ssl tests for PostgreSQL * Add client ssl tests for MariaDB and MySQL * Adapt GA tests * Fix RUSTFLAGS to run all tests * Remove containers to free the DB port before running SSL auth tests * Fix CI bad naming * Use docker-compose down to remove also the network * Fix main rebase * Stop trying to stop service using docker-compose, simply use docker cmd * Fix RUSTFLAGS for Postgres * Name the Docker images for MariaDB and MySQL so we can stop them using their name * Add the exception for mysql 5.7 not supporting compatible TLS version with RusTLS * Rebase fixes * Set correctly tls struct (fix merge) * Handle Elliptic Curve variant for private key * Fix tests suite * Fix features in CI * Add tests for Postgres 15 + rebase * Python tests: fix exception for MySQL 5.7 + remove unneeded for loops * CI: run SSL tests only when building with TLS support --------- Co-authored-by: Barry Simons <linuxuser586@gmail.com>
12 lines
460 B
Docker
12 lines
460 B
Docker
ARG VERSION
|
|
FROM postgres:${VERSION}-alpine
|
|
|
|
# Copy SSL certificate (and key)
|
|
COPY certs/server.crt /var/lib/postgresql/server.crt
|
|
COPY certs/ca.crt /var/lib/postgresql/ca.crt
|
|
COPY keys/server.key /var/lib/postgresql/server.key
|
|
COPY postgres/pg_hba.conf /var/lib/postgresql/pg_hba.conf
|
|
|
|
# Fix permissions
|
|
RUN chown 70:70 /var/lib/postgresql/server.crt /var/lib/postgresql/server.key
|
|
RUN chmod 0600 /var/lib/postgresql/server.crt /var/lib/postgresql/server.key
|