Skip to content

Commit

Permalink
Missing wget in the coordinator's docker base image (#3703)
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Kec <daniel.kec@oracle.com>
  • Loading branch information
danielkec authored Dec 9, 2021
1 parent 77ae7c1 commit 6bafc63
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions lra/coordinator/server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,27 +23,13 @@ ARG HELIDON_REPOSITORY=oracle/helidon
ENV HELIDON_BRANCH ${HELIDON_BRANCH}
ENV HELIDON_REPOSITORY ${HELIDON_REPOSITORY}

RUN apt-get -qq update && apt-get -qq -y install wget unzip git
RUN wget -q -O helidon_repo.zip https://github.com/${HELIDON_REPOSITORY}/archive/refs/heads/${HELIDON_BRANCH}.zip

# Unzip and exclude modules coordinator don't need
RUN unzip helidon_repo.zip -d ./helidon_repo \
-x "helidon-${HELIDON_BRANCH}/microprofile/*" \
-x "helidon-${HELIDON_BRANCH}/openapi/*" \
-x "helidon-${HELIDON_BRANCH}/messaging/*" \
-x "helidon-${HELIDON_BRANCH}/graphql/*" \
-x "helidon-${HELIDON_BRANCH}/tests/*" \
-x "helidon-${HELIDON_BRANCH}/examples/*" \
-x "helidon-${HELIDON_BRANCH}/jersey/*" \
-x "*src/test/*"
RUN unzip helidon_repo.zip -d ./helidon_repo

RUN mv ./helidon_repo/*/* ./

RUN sed -i '/<module>microprofile/d' ./pom.xml \
&& sed -i '/<module>openapi/d' ./pom.xml \
&& sed -i '/<module>messaging/d' ./pom.xml \
&& sed -i '/<module>jersey/d' ./pom.xml \
&& sed -i '/<module>graphql/d' ./pom.xml

# Build only required modules
RUN mvn install -pl :helidon-lra-coordinator-server -am -DskipTests

Expand Down

0 comments on commit 6bafc63

Please sign in to comment.