Commit 56fb604 1 parent d95deed commit 56fb604 Copy full SHA for 56fb604
File tree 4 files changed +31
-17
lines changed
4 files changed +31
-17
lines changed Original file line number Diff line number Diff line change
1
+ #
2
+ # Licensed to the Apache Software Foundation (ASF) under one or more
3
+ # contributor license agreements. See the NOTICE file distributed with
4
+ # this work for additional information regarding copyright ownership.
5
+ # The ASF licenses this file to You under the Apache License, Version 2.0
6
+ # (the "License"); you may not use this file except in compliance with
7
+ # the License. You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+ #
17
+
18
+ # Dockerfile for building HugeGraph
19
+ # 1st stage: build source code
20
+ FROM maven:3.9.0-eclipse-temurin-11
21
+
22
+ COPY . /pkg
23
+ WORKDIR /pkg
24
+ ARG MAVEN_ARGS
25
+
26
+ RUN mvn package $MAVEN_ARGS -e -B -ntp -DskipTests -Dmaven.javadoc.skip=true && pwd && ls -l
27
+ RUN rm ./hugegraph-server/*.tar.gz && rm ./hugegraph-pd/dist/*.tar.gz && rm ./hugegraph-store/dist/*.tar.gz
Original file line number Diff line number Diff line change 16
16
#
17
17
18
18
# Dockerfile for HugeGraph PD
19
- # 1st stage: build source code (refer to hugegraph-server/Dockerfile)
20
-
21
19
# 2nd stage: runtime env
22
20
# Note: ZGC (The Z Garbage Collector) is only supported on ARM-Mac with java > 13
23
21
FROM openjdk:11-slim
24
22
25
- COPY --from=build /pkg/hugegraph-pd/dist/hugegraph-pd-*/ /hugegraph-pd/
23
+ COPY --from=hugegraph/hugegraph. build /pkg/hugegraph-pd/dist/hugegraph-pd-*/ /hugegraph-pd/
26
24
LABEL maintainer="HugeGraph Docker Maintainers <dev@hugegraph.apache.org>"
27
25
28
26
# TODO: use g1gc or zgc as default
Original file line number Diff line number Diff line change 16
16
#
17
17
18
18
# Dockerfile for HugeGraph Server
19
- # 1st stage: build source code
20
- FROM maven:3.9.0-eclipse-temurin-11 AS build
21
-
22
- COPY . /pkg
23
- WORKDIR /pkg
24
- ARG MAVEN_ARGS
25
-
26
- RUN mvn package $MAVEN_ARGS -e -B -ntp -DskipTests -Dmaven.javadoc.skip=true && pwd && ls -l && rm ./hugegraph-server/*.tar.gz
27
-
28
19
# 2nd stage: runtime env
29
- # Note: ZGC (The Z Garbage Collector) is only supported on ARM-Mac with java > 13
20
+ # Note: ZGC (The Z Garbage Collector) is only supported on ARM-Mac with java > 13
30
21
FROM openjdk:11-slim
31
22
32
- COPY --from=build /pkg/hugegraph-server/apache-hugegraph-incubating-*/ /hugegraph-server/
23
+ COPY --from=hugegraph/hugegraph. build /pkg/hugegraph-server/apache-hugegraph-incubating-*/ /hugegraph-server/
33
24
LABEL maintainer="HugeGraph Docker Maintainers <dev@hugegraph.apache.org>"
34
25
35
26
# TODO: use g1gc or zgc as default
Original file line number Diff line number Diff line change 16
16
#
17
17
18
18
# Dockerfile for HugeGraph Store
19
- # 1st stage: build source code (refer to hugegraph-server/Dockerfile)
20
-
21
19
# 2nd stage: runtime env
22
20
# Note: ZGC (The Z Garbage Collector) is only supported on ARM-Mac with java > 13
23
21
FROM openjdk:11-slim
24
22
25
- COPY --from=build /pkg/hugegraph-store/dist/hugegraph-store-*/ /hugegraph-store/
23
+ COPY --from=hugegraph/hugegraph. build /pkg/hugegraph-store/dist/hugegraph-store-*/ /hugegraph-store/
26
24
LABEL maintainer="HugeGraph Docker Maintainers <dev@hugegraph.apache.org>"
27
25
28
26
# TODO: use g1gc or zgc as default
You can’t perform that action at this time.
0 commit comments