Skip to content

Commit 7d94cc3

Browse files
Added MariaDB(MySQL) & PostgreSQL JDBC libraries
1 parent 356530e commit 7d94cc3

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

Dockerfile

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,32 @@ FROM openjdk:8-jre
22

33
MAINTAINER 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
615
RUN adduser --system --home /liquibase --disabled-password --group liquibase
716
WORKDIR /liquibase
817

918
# Change to the liquibase user
1019
USER 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
1831
RUN chmod 777 /liquibase
1932

2033
ENTRYPOINT ["/liquibase/liquibase"]

0 commit comments

Comments
 (0)