-
Notifications
You must be signed in to change notification settings - Fork 93
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
feat: support docker for loader #530
Conversation
Codecov Report
@@ Coverage Diff @@
## master #530 +/- ##
============================================
- Coverage 62.49% 62.47% -0.03%
+ Complexity 1903 930 -973
============================================
Files 262 93 -169
Lines 9541 4509 -5032
Branches 886 529 -357
============================================
- Hits 5963 2817 -3146
+ Misses 3190 1483 -1707
+ Partials 388 209 -179 see 169 files with indirect coverage changes 📣 Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today! |
WORKDIR /pkg | ||
|
||
RUN set -x \ | ||
&& mvn install -pl hugegraph-client,hugegraph-loader -am -Dmaven.javadoc.skip=true -DskipTests -ntp |
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.
It seems that in the center maven repo, the client-1.0.0 does not have some methods like istext()
. Hence, we should install the jar locally.
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.
It seems that in the center maven repo, the client-1.0.0 does not have some methods like
istext()
. Hence, we should install the jar locally.
seems we don't rely on fixed version? we use $revision
in the project, so install client first is necessary (if we want build the latest image)
@liuxiaocs7 could also check the PR when free |
WORKDIR /pkg | ||
|
||
RUN set -x \ | ||
&& mvn install -pl hugegraph-client,hugegraph-loader -am -Dmaven.javadoc.skip=true -DskipTests -ntp |
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.
It seems that in the center maven repo, the client-1.0.0 does not have some methods like
istext()
. Hence, we should install the jar locally.
seems we don't rely on fixed version? we use $revision
in the project, so install client first is necessary (if we want build the latest image)
hugegraph-loader/Dockerfile
Outdated
ENTRYPOINT ["/usr/bin/dumb-init", "--"] | ||
CMD [ "/bin/bash" ] |
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.
maybe check other usage way for dumb-init
?
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.
It seems there is no special usage. We only need to add dumb-init
in entrypoint. Maybe tail -f /dev/null
is better than /bin/bash
.
hugegraph-loader/README.md
Outdated
## Building | ||
## 2. Usage for Docker(Recommand) | ||
|
||
- deploy `loader` with Docker |
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.
- deploy `loader` with Docker | |
- run `loader` with Docker |
hugegraph-loader/README.md
Outdated
#### 2.2.1 enter the docker container | ||
|
||
```bash | ||
docker exec -it loader bash |
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.
remember update here when doc update apache/incubator-hugegraph-doc#299 (comment)
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.
consider also add a new section (run with docker) in root (README) https://github.com/apache/incubator-hugegraph-toolchain/blob/master/README.md#modules
Hi, @aroundabout, thanks for your outstanding efforts on this issue, i test locally and find some issues and hope your help. Firstly, i try to build the image locally but fails. (base) kirin@kirinbiotech:~/lx/incubator-hugegraph-toolchain$ docker build -t hg-loader:1.0 hugegraph-loader/ Then, i use kirin@kirinbiotech:~/lx/incubator-hugegraph-toolchain/hugegraph-loader/assembly/static$ docker exec -it loader bin/hugegraph-loader.sh -g hugegraph -f example/file/struct.json -s example/file/schema.groovy -p 8080 -h 192.168.110.158 but still fails to load data. CC: @imbajin |
|
Thanks for your details explain, i see.
seems fails too? And does it need to be added to the readme? |
Sorry, I forgot an argument. XD
|
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.
LGTM~
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
Purpose of the PR
Main Changes
loader
usage
(add the usage to README and doc later)
current test image is dandelionivy/loader
It should be like:
Then we can see the result in
hubble
:Verifying these changes
Does this PR potentially affect the following parts?
Documentation Status
Doc - TODO
Doc - Done
Doc - No Need