From ee1ee259b396e7140a8c295eaa3ef94967ea722e Mon Sep 17 00:00:00 2001 From: Dandelion Date: Wed, 13 Dec 2023 17:26:38 +0800 Subject: [PATCH 1/4] install node and yarn manually --- hugegraph-hubble/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hugegraph-hubble/Dockerfile b/hugegraph-hubble/Dockerfile index 18c9a5c02..b4cf866fc 100644 --- a/hugegraph-hubble/Dockerfile +++ b/hugegraph-hubble/Dockerfile @@ -25,7 +25,9 @@ WORKDIR /pkg RUN set -x \ && apt-get -q update \ - && apt-get install -y npm \ + && apt-get install curl gnupg -yq \ + && curl -sL https://deb.nodesource.com/setup_16.x | bash \ + && apt-get install -y nodejs \ && apt-get clean RUN set -x \ From caf56b28bcdf3b545e40f7e1175721932bc109c8 Mon Sep 17 00:00:00 2001 From: Dandelion Date: Wed, 13 Dec 2023 17:44:07 +0800 Subject: [PATCH 2/4] merge mvn install and package --- hugegraph-hubble/Dockerfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/hugegraph-hubble/Dockerfile b/hugegraph-hubble/Dockerfile index b4cf866fc..ef513c65e 100644 --- a/hugegraph-hubble/Dockerfile +++ b/hugegraph-hubble/Dockerfile @@ -31,9 +31,7 @@ RUN set -x \ && apt-get clean RUN set -x \ - && mvn install $MAVEN_ARGS -pl hugegraph-client,hugegraph-loader -am -Dmaven.javadoc.skip=true -DskipTests -ntp - -RUN set -x \ + && mvn install $MAVEN_ARGS -pl hugegraph-client,hugegraph-loader -am -Dmaven.javadoc.skip=true -DskipTests -ntp \ && cd /pkg/hugegraph-hubble/ \ && mvn package $MAVEN_ARGS -e -B -ntp -DskipTests -Dmaven.javadoc.skip=true From 163d1685887d49b64f47f60c582e5273ed65533c Mon Sep 17 00:00:00 2001 From: Dandelion Date: Wed, 13 Dec 2023 18:03:01 +0800 Subject: [PATCH 3/4] complie then package --- hugegraph-hubble/Dockerfile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/hugegraph-hubble/Dockerfile b/hugegraph-hubble/Dockerfile index ef513c65e..bab82e22b 100644 --- a/hugegraph-hubble/Dockerfile +++ b/hugegraph-hubble/Dockerfile @@ -23,16 +23,17 @@ ARG MAVEN_ARGS COPY . /pkg WORKDIR /pkg -RUN set -x \ - && apt-get -q update \ - && apt-get install curl gnupg -yq \ - && curl -sL https://deb.nodesource.com/setup_16.x | bash \ - && apt-get install -y nodejs \ - && apt-get clean +# RUN set -x \ +# && apt-get -q update \ +# && apt-get install curl gnupg -yq \ +# && curl -sL https://deb.nodesource.com/setup_16.x | bash \ +# && apt-get install -y nodejs \ +# && apt-get clean RUN set -x \ && mvn install $MAVEN_ARGS -pl hugegraph-client,hugegraph-loader -am -Dmaven.javadoc.skip=true -DskipTests -ntp \ && cd /pkg/hugegraph-hubble/ \ + && mvn -e compile $MAVEN_ARGS -Dmaven.javadoc.skip=true -ntp \ && mvn package $MAVEN_ARGS -e -B -ntp -DskipTests -Dmaven.javadoc.skip=true FROM openjdk:11-slim From 32326bbf2f7820a3aac3cdb8e5463241efcf3d65 Mon Sep 17 00:00:00 2001 From: Dandelion Date: Wed, 13 Dec 2023 18:13:06 +0800 Subject: [PATCH 4/4] install node and cancel comple --- hugegraph-hubble/Dockerfile | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/hugegraph-hubble/Dockerfile b/hugegraph-hubble/Dockerfile index bab82e22b..ef513c65e 100644 --- a/hugegraph-hubble/Dockerfile +++ b/hugegraph-hubble/Dockerfile @@ -23,17 +23,16 @@ ARG MAVEN_ARGS COPY . /pkg WORKDIR /pkg -# RUN set -x \ -# && apt-get -q update \ -# && apt-get install curl gnupg -yq \ -# && curl -sL https://deb.nodesource.com/setup_16.x | bash \ -# && apt-get install -y nodejs \ -# && apt-get clean +RUN set -x \ + && apt-get -q update \ + && apt-get install curl gnupg -yq \ + && curl -sL https://deb.nodesource.com/setup_16.x | bash \ + && apt-get install -y nodejs \ + && apt-get clean RUN set -x \ && mvn install $MAVEN_ARGS -pl hugegraph-client,hugegraph-loader -am -Dmaven.javadoc.skip=true -DskipTests -ntp \ && cd /pkg/hugegraph-hubble/ \ - && mvn -e compile $MAVEN_ARGS -Dmaven.javadoc.skip=true -ntp \ && mvn package $MAVEN_ARGS -e -B -ntp -DskipTests -Dmaven.javadoc.skip=true FROM openjdk:11-slim