This is an automated email from the ASF dual-hosted git repository.
ming pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-hugegraph.git
The following commit(s) were added to refs/heads/master by this push:
new 25301f622 feat: adapt Dockerfile for new project structure (#2344)
25301f622 is described below
commit 25301f62288293e53c852f9c4eeb116a3a201594
Author: Dandelion <[email protected]>
AuthorDate: Mon Nov 13 19:30:24 2023 +0800
feat: adapt Dockerfile for new project structure (#2344)
* feat: dockerfile adapt the project structure
* change the version
---------
Co-authored-by: imbajin <[email protected]>
---
Dockerfile => hugegraph-server/Dockerfile | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/Dockerfile b/hugegraph-server/Dockerfile
similarity index 81%
rename from Dockerfile
rename to hugegraph-server/Dockerfile
index 7dcbf2131..93368487a 100644
--- a/Dockerfile
+++ b/hugegraph-server/Dockerfile
@@ -26,8 +26,8 @@ RUN mvn package -e -B -ntp -DskipTests
-Dmaven.javadoc.skip=true && pwd && ls -l
# 2nd stage: runtime env
FROM openjdk:11-slim
# TODO: get the version from the pom.xml
-ENV version=1.0.0
-COPY --from=build /pkg/apache-hugegraph-incubating-$version/ /hugegraph
+ENV version=1.5.0
+COPY --from=build /pkg/hugegraph-server/apache-hugegraph-incubating-$version/
/hugegraph-server
LABEL maintainer="HugeGraph Docker Maintainers <[email protected]>"
# TODO: use g1gc or zgc as default
@@ -35,7 +35,7 @@ ENV JAVA_OPTS="-XX:+UnlockExperimentalVMOptions
-XX:+UseContainerSupport -XX:Max
HUGEGRAPH_HOME="hugegraph"
#COPY . /hugegraph/hugegraph-server
-WORKDIR /hugegraph/
+WORKDIR /hugegraph-server/
# 1. Install environment
RUN set -x \
@@ -50,17 +50,17 @@ RUN set -x \
# 2. Init HugeGraph Sever
RUN set -e \
- && pwd && cd /hugegraph/ \
+ && pwd && cd /hugegraph-server/ \
&& sed -i "s/^restserver.url.*$/restserver.url=http:\/\/0.0.0.0:8080/g"
./conf/rest-server.properties
# 3. Init docker script
-COPY hugegraph-dist/docker/scripts/remote-connect.groovy ./scripts
-COPY hugegraph-dist/docker/scripts/detect-storage.groovy ./scripts
-COPY hugegraph-dist/docker/docker-entrypoint.sh .
+COPY hugegraph-server/hugegraph-dist/docker/scripts/remote-connect.groovy
./scripts
+COPY hugegraph-server/hugegraph-dist/docker/scripts/detect-storage.groovy
./scripts
+COPY hugegraph-server/hugegraph-dist/docker/docker-entrypoint.sh .
RUN chmod 755 ./docker-entrypoint.sh
EXPOSE 8080
-VOLUME /hugegraph
+VOLUME /hugegraph-server
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
CMD ["./docker-entrypoint.sh"]