- Notifications
You must be signed in to change notification settings - Fork 105
feat: support docker for loader #530
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
Changes from all commits
d6aff34 2d70c48 0ae8ced 9fa0614 705b66f acc9b54 56ac508 File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| # | ||
| # Licensed to the Apache Software Foundation (ASF) under one or more | ||
| # contributor license agreements. See the NOTICE file distributed with | ||
| # this work for additional information regarding copyright ownership. | ||
| # The ASF licenses this file to You under the Apache License, Version 2.0 | ||
| # (the "License"); you may not use this file except in compliance with | ||
| # the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
| # | ||
| | ||
| FROM maven:3.9.0-eclipse-temurin-11 AS build | ||
| | ||
| COPY . /pkg | ||
| WORKDIR /pkg | ||
| | ||
| RUN set -x \ | ||
| && mvn install -pl hugegraph-client,hugegraph-loader -am -Dmaven.javadoc.skip=true -DskipTests -ntp | ||
| Contributor Author There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
seems we don't rely on fixed version? we use | ||
| | ||
| | ||
| RUN set -x \ | ||
| && cd /pkg/hugegraph-loader/ \ | ||
| && echo "$(ls)" \ | ||
| && mvn clean package -DskipTests | ||
| | ||
| | ||
| FROM openjdk:11-slim | ||
| | ||
| COPY --from=build /pkg/hugegraph-loader/apache-hugegraph-loader-incubating-*/ /loader | ||
| WORKDIR /loader/ | ||
| | ||
| RUN set -x \ | ||
| && apt-get -q update \ | ||
| && apt-get -q install -y --no-install-recommends --no-install-suggests \ | ||
| dumb-init \ | ||
| procps \ | ||
| curl \ | ||
| lsof \ | ||
| && apt-get clean \ | ||
| && rm -rf /var/lib/apt/lists/* | ||
| | ||
| VOLUME /loader | ||
| | ||
| ENTRYPOINT ["/usr/bin/dumb-init", "--"] | ||
| CMD ["tail","-f","/dev/null"] | ||
| Member There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| # | ||
| # Licensed to the Apache Software Foundation (ASF) under one or more | ||
| # contributor license agreements. See the NOTICE file distributed with | ||
| # this work for additional information regarding copyright ownership. | ||
| # The ASF licenses this file to You under the Apache License, Version 2.0 | ||
| # (the "License"); you may not use this file except in compliance with | ||
| # the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
| # | ||
| | ||
| version: '3' | ||
| services: | ||
| server: | ||
| image: hugegraph/hugegraph | ||
| container_name: graph | ||
| ports: | ||
| - 8080:8080 | ||
| | ||
| hubble: | ||
| image: hugegraph/hubble | ||
| container_name: hubble | ||
| ports: | ||
| - 8088:8088 | ||
| | ||
| loader: | ||
| image: hugegraph/loader | ||
| container_name: loader | ||
| # mount your own data here | ||
| # volumes: | ||
| # - /path/to/data/file:/loader/file |

Uh oh!
There was an error while loading. Please reload this page.