Skip to content

Commit

Permalink
Upgrade openjdk for flyway
Browse files Browse the repository at this point in the history
  • Loading branch information
jesusfcr committed Mar 19, 2024
1 parent c68d844 commit f978fd6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ FROM alpine:3.17.0

WORKDIR /flyway

RUN apk add --no-cache --update openjdk8-jre-base bash gettext libc6-compat
RUN apk add --no-cache --update openjdk17-jre bash gettext libc6-compat

ARG FLYWAY_VERSION=10.10.0

RUN wget https://repo1.maven.org/maven2/org/flywaydb/flyway-commandline/${FLYWAY_VERSION}/flyway-commandline-${FLYWAY_VERSION}.tar.gz \
RUN wget -q https://repo1.maven.org/maven2/org/flywaydb/flyway-commandline/${FLYWAY_VERSION}/flyway-commandline-${FLYWAY_VERSION}.tar.gz \
&& tar -xzf flyway-commandline-${FLYWAY_VERSION}.tar.gz --strip 1 \
&& rm flyway-commandline-${FLYWAY_VERSION}.tar.gz \
&& find ./drivers/ -type f -not -name 'postgres*' -delete \
&& find ./drivers/ -type f | grep -Ev '(postgres|jackson)' | xargs rm \
&& chown -R root:root . \
&& ln -s /flyway/flyway /bin/flyway

Expand Down
2 changes: 2 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

# Copyright 2022 Adevinta

set -e

# Apply env variables
envsubst < config.toml > run.toml

Expand Down

0 comments on commit f978fd6

Please sign in to comment.