mirror of
https://gitee.com/dgiiot/dgiot.git
synced 2024-12-05 05:37:40 +08:00
13 lines
738 B
Docker
13 lines
738 B
Docker
ARG BUILD_FROM=postgres:11
|
|
FROM ${BUILD_FROM}
|
|
ARG POSTGRES_USER=postgres
|
|
COPY --chown=$POSTGRES_USER .ci/docker-compose-file/pgsql/pg_hba.conf /var/lib/postgresql/pg_hba.conf
|
|
COPY --chown=$POSTGRES_USER apps/emqx_auth_pgsql/test/emqx_auth_pgsql_SUITE_data/server-key.pem /var/lib/postgresql/server.key
|
|
COPY --chown=$POSTGRES_USER apps/emqx_auth_pgsql/test/emqx_auth_pgsql_SUITE_data/server-cert.pem /var/lib/postgresql/server.crt
|
|
COPY --chown=$POSTGRES_USER apps/emqx_auth_pgsql/test/emqx_auth_pgsql_SUITE_data/ca.pem /var/lib/postgresql/root.crt
|
|
RUN chmod 600 /var/lib/postgresql/pg_hba.conf
|
|
RUN chmod 600 /var/lib/postgresql/server.key
|
|
RUN chmod 600 /var/lib/postgresql/server.crt
|
|
RUN chmod 600 /var/lib/postgresql/root.crt
|
|
EXPOSE 5432
|