You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hugegraph.apache.org by "aroundabout (via GitHub)" <gi...@apache.org> on 2023/07/25 16:57:18 UTC

[GitHub] [incubator-hugegraph] aroundabout opened a new issue, #2256: [Bug] build docker image in the branch release-1.0.0 fail

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

   ### Bug Type (问题类型)
   
   other exception / error (其他异常报错)
   
   ### 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.0.0 (Apache Release Version)
   
   ### Expected & Actual behavior (期望与实际表现)
   
   1. I met the problem when I try to auto publish the docker image of the tag 1.0.0
   
   Firstly, I change the dockerfile, and run  `docker build --network host -t test:v1 .`
   ```
   RUN set -e \
       && mkdir -p /root/hugegraph-server \
       && curl -L -S ${PKG_URL}/hugegraph/releases/download/v${SERVER_VERSION}/hugegraph-${SERVER_VERSION}.tar.gz -o /root/server.tar.gz \
       && tar xzf /root/server.tar.gz --strip-components 1 -C /root/hugegraph-server \
       && rm /root/server.tar.gz \
       && cd /root/hugegraph-server/ \
       && sed -i "s/^restserver.url.*$/restserver.url=http:\/\/0.0.0.0:8080/g" ./conf/rest-server.properties \
       && sed -n '65p' ./bin/start-hugegraph.sh | grep "&" > /dev/null && sed -i 65{s/\&$/#/g} ./bin/start-hugegraph.sh \
       && sed -n '75p' ./bin/start-hugegraph.sh | grep "exit" > /dev/null && sed -i 75{s/^/#/g} ./bin/start-hugegraph.sh \
       && ./bin/init-store.sh
   ```
   to
   
   ```
   ENV SERVER_VERSION 0.12.0
   RUN set -e 
   RUN mkdir -p /root/hugegraph-server 
   RUN curl -L -S ${PKG_URL}/hugegraph/releases/download/v${SERVER_VERSION}/hugegraph-${SERVER_VERSION}.tar.gz -o /root/server.tar.gz 
   RUN tar xzf /root/server.tar.gz --strip-components 1 -C /root/hugegraph-server 
   RUN rm /root/server.tar.gz 
   RUN cd /root/hugegraph-server/
   # WORKDIR /root/hugegraph-server/
   RUN sed -i "s/^restserver.url.*$/restserver.url=http:\/\/0.0.0.0:8080/g" ./conf/rest-server.properties 
   RUN sed -n '65p' ./bin/start-hugegraph.sh | grep "&" > /dev/null && sed -i 65{s/\&$/#/g} ./bin/start-hugegraph.sh 
   RUN sed -n '75p' ./bin/start-hugegraph.sh | grep "exit" > /dev/null && sed -i 75{s/^/#/g} ./bin/start-hugegraph.sh 
   RUN ./bin/init-store.sh
   ```
   
   2. Bug1
   
   In `RUN sed -i "s/^restserver.url.*$/restserver.url=http:\/\/0.0.0.0:8080/g" ./conf/rest-server.properties `
   
   The error log is 
   ```
    => ERROR [ 9/14] RUN sed -i "s/^restserver.url.*$/restserver.url=http:\/\/0.0.0.0:8080/g" ./conf/rest-server.properties          0.2s
   ------
    > [ 9/14] RUN sed -i "s/^restserver.url.*$/restserver.url=http:\/\/0.0.0.0:8080/g" ./conf/rest-server.properties:
   #0 0.142 sed: can't read ./conf/rest-server.properties: No such file or directory
   ```
   
   And I add `WORKDIR /root/hugegraph-server/` before it, then bug disapper.
   
   3. Bug 2
   After I fix bug 1, the next problem is in:
   
   ```
   RUN sed -n '65p' ./bin/start-hugegraph.sh | grep "&" > /dev/null && sed -i 65{s/\&$/#/g} ./bin/start-hugegraph.sh 
   RUN sed -n '75p' ./bin/start-hugegraph.sh | grep "exit" > /dev/null && sed -i 75{s/^/#/g} ./bin/start-hugegraph.sh 
   ```
   
   error log is 
   ```
    => ERROR [11/15] RUN sed -n '65p' ./bin/start-hugegraph.sh | grep "&" > /dev/null && sed -i 65{s/&$/#/g} ./bin/start-hugegraph.  0.2s
   ------
    > [11/15] RUN sed -n '65p' ./bin/start-hugegraph.sh | grep "&" > /dev/null && sed -i 65{s/&$/#/g} ./bin/start-hugegraph.sh:
   ------
   Dockerfile:48
   --------------------
     46 |     WORKDIR /root/hugegraph-server/
     47 |     RUN sed -i "s/^restserver.url.*$/restserver.url=http:\/\/0.0.0.0:8080/g" ./conf/rest-server.properties 
     48 | >>> RUN sed -n '65p' ./bin/start-hugegraph.sh | grep "&" > /dev/null && sed -i 65{s/\&$/#/g} ./bin/start-hugegraph.sh 
     49 |     RUN sed -n '75p' ./bin/start-hugegraph.sh | grep "exit" > /dev/null && sed -i 75{s/^/#/g} ./bin/start-hugegraph.sh 
     50 |     RUN ./bin/init-store.sh
   --------------------
   ERROR: failed to solve: process "/bin/sh -c sed -n '65p' ./bin/start-hugegraph.sh | grep \"&\" > /dev/null && sed -i 65{s/\\&$/#/g} ./bin/start-hugegraph.sh" did not complete successfully: exit code: 1
   ```
   
   And I delete the two line (because it seems meaningful for start-hugegraph.sh), then debug disappear.
   
   Maybe we should fix the problem for stable version 1.0.0?
    
   
   ### 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-unsubscribe@hugegraph.apache.org.apache.org

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


[GitHub] [incubator-hugegraph] aroundabout closed issue #2256: [Bug] build docker image in the branch release-1.0.0 fail

Posted by "aroundabout (via GitHub)" <gi...@apache.org>.
aroundabout closed issue #2256: [Bug] build docker image in the branch release-1.0.0 fail
URL: https://github.com/apache/incubator-hugegraph/issues/2256


-- 
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-unsubscribe@hugegraph.apache.org

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


[GitHub] [incubator-hugegraph] imbajin commented on issue #2256: [Bug] build docker image in the branch release-1.0.0 fail

Posted by "imbajin (via GitHub)" <gi...@apache.org>.
imbajin commented on issue #2256:
URL: https://github.com/apache/incubator-hugegraph/issues/2256#issuecomment-1650957311

   Seems we have different context, we should use the latest `Dockerfile`?
   
   <img width="908" alt="image" src="https://github.com/apache/incubator-hugegraph/assets/17706099/637b36aa-f2ca-4f0f-abe9-87b26588e370">
   
   
   https://github.com/apache/incubator-hugegraph/blob/master/Dockerfile


-- 
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: issues-unsubscribe@hugegraph.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org


[GitHub] [incubator-hugegraph] aroundabout closed issue #2256: [Bug] build docker image in the branch release-1.0.0 fail

Posted by "aroundabout (via GitHub)" <gi...@apache.org>.
aroundabout closed issue #2256: [Bug] build docker image in the branch release-1.0.0 fail
URL: https://github.com/apache/incubator-hugegraph/issues/2256


-- 
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-unsubscribe@hugegraph.apache.org

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