Skip to content

Commit

Permalink
fix(Dockerfile): remove unnecessary liquibase version check and print…
Browse files Browse the repository at this point in the history
… statement

fix(Dockerfile.alpine): remove unnecessary liquibase version check and print statement
  • Loading branch information
jandroav committed Aug 22, 2023
1 parent 3b20aea commit af07e3e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
8 changes: 3 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ WORKDIR /liquibase
RUN wget -q -O liquibase-${LIQUIBASE_VERSION}.tar.gz "https://github.com/liquibase/liquibase/releases/download/v${LIQUIBASE_VERSION}/liquibase-${LIQUIBASE_VERSION}.tar.gz" && \
echo "$LB_SHA256 liquibase-${LIQUIBASE_VERSION}.tar.gz" | sha256sum -c - && \
tar -xzf liquibase-${LIQUIBASE_VERSION}.tar.gz && \
rm liquibase-${LIQUIBASE_VERSION}.tar.gz && \
liquibase --version
rm liquibase-${LIQUIBASE_VERSION}.tar.gz

# Download and Install lpm
RUN mkdir bin && \
Expand All @@ -26,9 +25,8 @@ RUN mkdir bin && \
"arm64") DOWNLOAD_ARCH="-arm64" ;; \
esac && wget -v -O lpm.zip "https://github.com/liquibase/liquibase-package-manager/releases/download/v${LPM_VERSION}/lpm-${LPM_VERSION}-linux${DOWNLOAD_ARCH}.zip" && \
unzip lpm.zip -d bin/ && \
rm lpm.zip && \
lpm help

rm lpm.zip

# Production Stage
FROM eclipse-temurin:17-jre-jammy as production

Expand Down
6 changes: 2 additions & 4 deletions Dockerfile.alpine
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ RUN set -x && \
wget -q -O liquibase-${LIQUIBASE_VERSION}.tar.gz "https://github.com/liquibase/liquibase/releases/download/v${LIQUIBASE_VERSION}/liquibase-${LIQUIBASE_VERSION}.tar.gz" && \
echo "$LB_SHA256 liquibase-${LIQUIBASE_VERSION}.tar.gz" | sha256sum -c - && \
tar -xzf liquibase-${LIQUIBASE_VERSION}.tar.gz && \
rm liquibase-${LIQUIBASE_VERSION}.tar.gz && \
liquibase --version
rm liquibase-${LIQUIBASE_VERSION}.tar.gz

# Download and Install lpm
RUN mkdir /liquibase/bin && \
Expand All @@ -26,8 +25,7 @@ RUN mkdir /liquibase/bin && \
"arm64") DOWNLOAD_ARCH="-arm64" ;; \
esac && wget -v -O lpm.zip "https://github.com/liquibase/liquibase-package-manager/releases/download/v${LPM_VERSION}/lpm-${LPM_VERSION}-linux${DOWNLOAD_ARCH}.zip" && \
unzip lpm.zip -d bin/ && \
rm lpm.zip && \
lpm help
rm lpm.zip

# Final Image
FROM alpine:3.18.2
Expand Down

0 comments on commit af07e3e

Please sign in to comment.