13 lines
731 B
Docker
13 lines
731 B
Docker
ARG BUILD_FROM=postgres:11
|
|
FROM ${BUILD_FROM}
|
|
ARG POSTGRES_USER=postgres
|
|
COPY --chown=$POSTGRES_USER .ci/compatibility_tests/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 /var/lib/postgresql/server.key
|
|
COPY --chown=$POSTGRES_USER apps/emqx_auth_pgsql/test/emqx_auth_pgsql_SUITE_data/server.crt /var/lib/postgresql/server.crt
|
|
COPY --chown=$POSTGRES_USER apps/emqx_auth_pgsql/test/emqx_auth_pgsql_SUITE_data/root.crt /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
|