File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -2,19 +2,32 @@ FROM openjdk:8-jre
22
33MAINTAINER Datical <
[email protected] >
44
5+ # Install MariaDB (MySQL) and PostgreSQL JDBC Drivers for users that would like have them in the container
6+ RUN apt-get update \
7+ && apt-get install -yq --no-install-recommends \
8+ libmariadb-java \
9+ libpostgresql-jdbc-java
10+ # /usr/share/java/mariadb-java-client.jar
11+ # /usr/share/java/postgresql.jar
12+
13+
514# Add the liquibase user and step in the directory
615RUN adduser --system --home /liquibase --disabled-password --group liquibase
716WORKDIR /liquibase
817
918# Change to the liquibase user
1019USER liquibase
1120
12- ENV LIQUIBASE_VERSION 3.8.5
21+ # Latest Liquibase Release Version
22+ ENV LIQUIBASE_VERSION 3.8.6
1323
14- RUN curl -L https://github.com/liquibase/liquibase/releases/download/v${LIQUIBASE_VERSION}/liquibase-${LIQUIBASE_VERSION}.tar.gz -o liquibase-core-${LIQUIBASE_VERSION}-bin.tar.gz \
24+ # Download, install, clean up
25+ RUN set -x \
26+ && curl -L https://github.com/liquibase/liquibase/releases/download/v${LIQUIBASE_VERSION}/liquibase-${LIQUIBASE_VERSION}.tar.gz -o liquibase-core-${LIQUIBASE_VERSION}-bin.tar.gz \
1527 && tar -xzf liquibase-core-${LIQUIBASE_VERSION}-bin.tar.gz \
16- && rm liquibase-core-${LIQUIBASE_VERSION}-bin.tar.gz
28+ && rm liquibase-core-${LIQUIBASE_VERSION}-bin.tar.gz
1729
30+ # Set liquibase to executable
1831RUN chmod 777 /liquibase
1932
2033ENTRYPOINT ["/liquibase/liquibase" ]
You can’t perform that action at this time.
0 commit comments