-
Notifications
You must be signed in to change notification settings - Fork 527
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(chore): remove zgc in dockerfile for ARM env #2421
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2421 +/- ##
============================================
- Coverage 66.32% 66.24% -0.09%
Complexity 828 828
============================================
Files 511 511
Lines 42596 42596
Branches 5942 5942
============================================
- Hits 28253 28216 -37
- Misses 11547 11568 +21
- Partials 2796 2812 +16 ☔ View full report in Codecov by Sentry. |
Co-authored-by: imbajin <jin@apache.org>
cp "${CONF}/${GREMLIN_SERVER_CONF}" "${BAK_CONF}/${GREMLIN_SERVER_CONF}.bak" | ||
cp "${CONF}/${REST_SERVER_CONF}" "${BAK_CONF}/${REST_SERVER_CONF}.bak" | ||
cp "${CONF}/graphs/${GRAPH_CONF}" "${BAK_CONF}/${GRAPH_CONF}.bak" | ||
if [ ! -d "$BAK_CONF" ]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
new test image is pushed as dandelionivy/server
hugegraph-server/Dockerfile
Outdated
@@ -24,12 +24,13 @@ WORKDIR /pkg | |||
ARG MAVEN_ARGS | |||
|
|||
RUN mvn package $MAVEN_ARGS -e -B -ntp -DskipTests -Dmaven.javadoc.skip=true && pwd && ls -l | |||
RUN find . -name 'apache-hugegraph-incubating-*.tar.gz' -delete |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's for?
hugegraph-server/Dockerfile
Outdated
|
||
# 2nd stage: runtime env | ||
# remove zgc, which is only available on ARM-Mac with java > 13 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems the comment line could be better ↓
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
THX, and we need pay attention to the size of the image, and then you can build a binary package
hugegraph-server/Dockerfile
Outdated
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& service cron start | ||
|
||
# 2. Init HugeGraph Sever |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll try it soon & update the doc PR apache/incubator-hugegraph-doc#324
Update: test it fine with auth-mode now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
* remove zgc * Apply suggestions from code review Co-authored-by: imbajin <jin@apache.org> * add comment for hugegraph-server.sh * fix enable-auth.sh * init store in entrypoint * use flag file to skip re-init * delete tar.gz * simply dockerfile * mvn optimize * simply dockerfile * add init log in docker --------- Co-authored-by: imbajin <jin@apache.org>
* remove zgc * Apply suggestions from code review * add comment for hugegraph-server.sh * fix enable-auth.sh * init store in entrypoint * use flag file to skip re-init * delete tar.gz * simply dockerfile * mvn optimize * simply dockerfile * add init log in docker --------- Co-authored-by: imbajin <jin@apache.org>
* remove zgc * Apply suggestions from code review Co-authored-by: imbajin <jin@apache.org> * add comment for hugegraph-server.sh * fix enable-auth.sh * init store in entrypoint * use flag file to skip re-init * delete tar.gz * simply dockerfile * mvn optimize * simply dockerfile * add init log in docker --------- Co-authored-by: imbajin <jin@apache.org>
Purpose of the PR
On macos(ARM arch M1/2/3..), zgc is only available with java > 13, so we remove -g zgc in the docker-entrypoint.sh.
Todo
Main Changes
Verifying these changes
Does this PR potentially affect the following parts?
Documentation Status
Doc - TODO
Doc - Done
Doc - No Need