Skip to content

Commit

Permalink
build nebula-tools docker image (vesoft-inc#2454)
Browse files Browse the repository at this point in the history
  • Loading branch information
jievince authored Mar 16, 2021
1 parent cb84ca5 commit e89a428
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
- graphd
- console
- graph
- tools
steps:
- uses: actions/checkout@v2
with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ jobs:
- graphd
- console
- graph
- tools
steps:
- uses: actions/checkout@v1
with:
Expand Down
18 changes: 18 additions & 0 deletions docker/Dockerfile.tools
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM vesoft/nebula-dev:centos7 as builder

COPY . /home/nebula/BUILD

RUN cd /home/nebula/BUILD/package \
&& ./package.sh -v $(git rev-parse --short HEAD) -n OFF

FROM centos:7

COPY --from=builder /home/nebula/BUILD/build/cpack_output/nebula-*-tool.rpm /usr/local/nebula/nebula-tool.rpm

WORKDIR /usr/local/nebula

RUN rpm -ivh *.rpm \
&& rm -rf *.rpm

# default entrypoint
ENTRYPOINT ["./bin/db_dump"]
1 change: 1 addition & 0 deletions docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ Following docker images will be ready in production.
- [vesoft/nebula-metad](https://hub.docker.com/r/vesoft/nebula-metad): nebula-metad service built with `Dockerfile.metad`
- [vesoft/nebula-storaged](https://hub.docker.com/r/vesoft/nebula-storaged): nebula-storaged service built with `Dockerfile.storaged`
- [vesoft/nebula-console](https://hub.docker.com/r/vesoft/nebula-console): nebula console client built with `Dockerfile.console`
- [vesoft/nebula-tools](https://hub.docker.com/r/vesoft/nebula-tools): nebula tools built with `Dockerfile.tools`
2 changes: 1 addition & 1 deletion docker/build-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@

PROJECT_DIR="$(cd "$(dirname "$0")" && pwd)"/../

for suffix in graphd metad storaged console; do
for suffix in graphd metad storaged console tools; do
docker build -t vesoft/nebula-$suffix:latest -f $PROJECT_DIR/docker/Dockerfile.$suffix $PROJECT_DIR
done

0 comments on commit e89a428

Please sign in to comment.