-
Notifications
You must be signed in to change notification settings - Fork 15
/
Dockerfile
20 lines (17 loc) · 828 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM kilna/liquibase
LABEL maintainer="Kilna [email protected]"
ARG jdbc_driver_version
ENV jdbc_driver_version=${jdbc_driver_version:-42.1.4}\
jdbc_driver_download_url=https://jdbc.postgresql.org/download\
LIQUIBASE_PORT=${LIQUIBASE_PORT:-5432}\
LIQUIBASE_CLASSPATH=${LIQUIBASE_CLASSPATH:-/opt/jdbc/postgres-jdbc.jar}\
LIQUIBASE_DRIVER=${LIQUIBASE_DRIVER:-org.postgresql.Driver}\
LIQUIBASE_URL=${LIQUIBASE_URL:-'jdbc:postgresql://${HOST}:${PORT}/${DATABASE}'}
COPY test/ /opt/test_liquibase_postgres/
RUN set -x -e -o pipefail;\
echo "JDBC DRIVER VERSION: $jdbc_driver_version";\
chmod +x /opt/test_liquibase_postgres/run_test.sh;\
cd /opt/jdbc;\
jarfile=postgresql-${jdbc_driver_version}.jar;\
curl -SOLs ${jdbc_driver_download_url}/${jarfile};\
ln -s ${jarfile} postgres-jdbc.jar