diff --git a/lra/coordinator/server/Dockerfile b/lra/coordinator/server/Dockerfile index 3b08512ca99..133becb04c5 100644 --- a/lra/coordinator/server/Dockerfile +++ b/lra/coordinator/server/Dockerfile @@ -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 '/microprofile/d' ./pom.xml \ -&& sed -i '/openapi/d' ./pom.xml \ -&& sed -i '/messaging/d' ./pom.xml \ -&& sed -i '/jersey/d' ./pom.xml \ -&& sed -i '/graphql/d' ./pom.xml - # Build only required modules RUN mvn install -pl :helidon-lra-coordinator-server -am -DskipTests