JackyYangPassion opened a new issue, #2363:
URL: https://github.com/apache/incubator-hugegraph/issues/2363

   ### Bug Type (问题类型)
   
   None
   
   ### Before submit
   
   - [X] 我已经确认现有的 [Issues](https://github.com/apache/hugegraph/issues) 与 
[FAQ](https://hugegraph.apache.org/docs/guides/faq/) 中没有相同 / 重复问题 (I have 
confirmed and searched that there are no similar problems in the historical 
issue and documents)
   
   ### Environment (环境信息)
   
   - Server Version: 1.2.0
   - OS: mac
   
   
   ### Expected & Actual behavior (期望与实际表现)
   
   **build image from source code:**
   ```
   docker build -t hugegraph/apache-hugegraph-server-incubating-1.2.0:latest . 
-f hugegraph-server/Dockerfile
   
   ```
   
   Dockerfile 1st stage
   ```
   # 1st stage: build source code
   FROM maven:3.9.0-eclipse-temurin-11 AS build
   
   COPY . /pkg
   WORKDIR /pkg
   RUN mvn package -e -B -ntp -DskipTests -Dmaven.javadoc.skip=true && pwd && 
ls -l
   ```
   the 1st stage mvn package should download from repo. it's slowly.
   
   **I think there is tow way to speed up downloading dependencies:**
   
   1. 1.add aliyun repo in the pom
   
   ```
   <repositories>
           <repository>
               <id>aliyun</id>
               <url>https://maven.aliyun.com/repository/public</url>
           </repository>
       </repositories>
   
       <pluginRepositories>
           <pluginRepository>
               <id>aliyun</id>
               <url>https://maven.aliyun.com/repository/public</url>
           </pluginRepository>
       </pluginRepositories>
   ```
   
   
   2. 2.like hugegraph-computer 
[Dockerfile](https://github.com/apache/incubator-hugegraph-computer/blob/master/computer-k8s-operator/Dockerfile)
   
   build tar on local env  then copy the jar to the docker image.
   
   The advantage is that you can use a local proxy to speed up downloading 
dependencies
   
   
   ### Vertex/Edge example (问题点 / 边数据举例)
   
   _No response_
   
   ### Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@hugegraph.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to