-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
442 additions
and
388 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,6 +62,14 @@ jobs: | |
docker: | ||
name: build docker image | ||
runs-on: [self-hosted, nebula] | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
service: | ||
- graphd | ||
- metad | ||
- storaged | ||
- tools | ||
steps: | ||
- uses: webiny/[email protected] | ||
with: | ||
|
@@ -76,38 +84,10 @@ jobs: | |
- uses: docker/build-push-action@v2 | ||
with: | ||
context: . | ||
file: ./docker/Dockerfile | ||
platforms: linux/amd64,linux/arm64 | ||
tags: | | ||
vesoft/nebula-graphd:nightly | ||
target: graphd | ||
push: true | ||
- uses: docker/build-push-action@v2 | ||
with: | ||
context: . | ||
file: ./docker/Dockerfile | ||
platforms: linux/amd64,linux/arm64 | ||
tags: | | ||
vesoft/nebula-storaged:nightly | ||
target: storaged | ||
push: true | ||
- uses: docker/build-push-action@v2 | ||
with: | ||
context: . | ||
file: ./docker/Dockerfile | ||
platforms: linux/amd64,linux/arm64 | ||
tags: | | ||
vesoft/nebula-metad:nightly | ||
target: metad | ||
push: true | ||
- uses: docker/build-push-action@v2 | ||
with: | ||
context: . | ||
file: ./docker/Dockerfile | ||
file: ./docker/Dockerfile.${{ matrix.service }} | ||
platforms: linux/amd64,linux/arm64 | ||
tags: | | ||
vesoft/nebula-tools:nightly | ||
target: tools | ||
vesoft/nebula-${{ matrix.service }}:nightly | ||
push: true | ||
|
||
coverage: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,6 +68,14 @@ jobs: | |
docker_build: | ||
name: docker-build | ||
runs-on: [self-hosted, nebula] | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
service: | ||
- graphd | ||
- metad | ||
- storaged | ||
- tools | ||
steps: | ||
- uses: webiny/[email protected] | ||
with: | ||
|
@@ -93,62 +101,16 @@ jobs: | |
- uses: docker/build-push-action@v2 | ||
with: | ||
context: . | ||
file: ./docker/Dockerfile | ||
platforms: linux/amd64,linux/arm64 | ||
tags: | | ||
${{ secrets.HARBOR_REGISTRY }}/vesoft/nebula-graphd:${{ steps.tagname.outputs.tag }} | ||
${{ secrets.HARBOR_REGISTRY }}/vesoft/nebula-graphd:${{ steps.tagname.outputs.majorver }} | ||
${{ steps.docker.outputs.tag }} | ||
push: true | ||
target: graphd | ||
build-args: | | ||
BRANCH=${{ steps.tagname.outputs.tag }} | ||
VERSION=${{ steps.tagname.outputs.tagnum }} | ||
- uses: docker/build-push-action@v2 | ||
with: | ||
context: . | ||
file: ./docker/Dockerfile | ||
platforms: linux/amd64,linux/arm64 | ||
tags: | | ||
${{ secrets.HARBOR_REGISTRY }}/vesoft/nebula-storaged:${{ steps.tagname.outputs.tag }} | ||
${{ secrets.HARBOR_REGISTRY }}/vesoft/nebula-storaged:${{ steps.tagname.outputs.majorver }} | ||
${{ steps.docker.outputs.tag }} | ||
push: true | ||
target: storaged | ||
build-args: | | ||
BRANCH=${{ steps.tagname.outputs.tag }} | ||
VERSION=${{ steps.tagname.outputs.tagnum }} | ||
- uses: docker/build-push-action@v2 | ||
with: | ||
context: . | ||
file: ./docker/Dockerfile | ||
platforms: linux/amd64,linux/arm64 | ||
tags: | | ||
${{ secrets.HARBOR_REGISTRY }}/vesoft/nebula-metad:${{ steps.tagname.outputs.tag }} | ||
${{ secrets.HARBOR_REGISTRY }}/vesoft/nebula-metad:${{ steps.tagname.outputs.majorver }} | ||
${{ steps.docker.outputs.tag }} | ||
push: true | ||
target: metad | ||
build-args: | | ||
BRANCH=${{ steps.tagname.outputs.tag }} | ||
VERSION=${{ steps.tagname.outputs.tagnum }} | ||
- uses: docker/build-push-action@v2 | ||
with: | ||
context: . | ||
file: ./docker/Dockerfile | ||
file: ./docker/Dockerfile.${{ matrix.service }} | ||
platforms: linux/amd64,linux/arm64 | ||
tags: | | ||
${{ secrets.HARBOR_REGISTRY }}/vesoft/nebula-tools:${{ steps.tagname.outputs.tag }} | ||
${{ secrets.HARBOR_REGISTRY }}/vesoft/nebula-tools:${{ steps.tagname.outputs.majorver }} | ||
${{ secrets.HARBOR_REGISTRY }}/vesoft/nebula-${{ matrix.service }}:${{ steps.tagname.outputs.tag }} | ||
${{ secrets.HARBOR_REGISTRY }}/vesoft/nebula-${{ matrix.service }}:${{ steps.tagname.outputs.majorver }} | ||
${{ steps.docker.outputs.tag }} | ||
push: true | ||
target: tools | ||
build-args: | | ||
BRANCH=${{ steps.tagname.outputs.tag }} | ||
VERSION=${{ steps.tagname.outputs.tagnum }} | ||
VERSON=${{ steps.tagname.outputs.tagnum }} | ||
test: | ||
name: test | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
FROM vesoft/nebula-dev:centos7 as builder | ||
|
||
ARG BRANCH=master | ||
ARG VERSION= | ||
|
||
COPY . /home/nebula/BUILD | ||
|
||
RUN cd /home/nebula/BUILD/package \ | ||
&& [[ -z "${VERSION}" ]] \ | ||
&& ./package.sh -n OFF -b ${BRANCH} -t RelWithDebInfo -s TRUE -c OFF -k ON \ | ||
|| ./package.sh -n OFF -v ${VERSION} -b ${BRANCH} -t RelWithDebInfo -s TRUE -c OFF -k ON | ||
|
||
FROM centos:7 | ||
|
||
COPY --from=builder /home/nebula/BUILD/pkg-build/cpack_output/nebula-*-common.rpm /usr/local/nebula/nebula-common.rpm | ||
COPY --from=builder /home/nebula/BUILD/pkg-build/cpack_output/nebula-*-graph.rpm /usr/local/nebula/nebula-graphd.rpm | ||
|
||
WORKDIR /usr/local/nebula | ||
|
||
RUN rpm -ivh *.rpm \ | ||
&& mkdir -p ./{logs,data,pids} \ | ||
&& rm -rf *.rpm | ||
|
||
EXPOSE 9669 19669 19670 | ||
|
||
ENTRYPOINT ["/usr/local/nebula/bin/nebula-graphd", "--flagfile=/usr/local/nebula/etc/nebula-graphd.conf", "--daemonize=false", "--containerized=true"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
FROM vesoft/nebula-dev:centos7 as builder | ||
|
||
ARG BRANCH=master | ||
ARG VERSION= | ||
|
||
COPY . /home/nebula/BUILD | ||
|
||
RUN cd /home/nebula/BUILD/package \ | ||
&& [[ -z "${VERSION}" ]] \ | ||
&& ./package.sh -n OFF -b ${BRANCH} -t RelWithDebInfo -s TRUE -c OFF -k ON \ | ||
|| ./package.sh -n OFF -v ${VERSION} -b ${BRANCH} -t RelWithDebInfo -s TRUE -c OFF -k ON | ||
|
||
FROM centos:7 | ||
|
||
COPY --from=builder /home/nebula/BUILD/pkg-build/cpack_output/nebula-*-common.rpm /usr/local/nebula/nebula-common.rpm | ||
COPY --from=builder /home/nebula/BUILD/pkg-build/cpack_output/nebula-*-meta.rpm /usr/local/nebula/nebula-metad.rpm | ||
|
||
WORKDIR /usr/local/nebula | ||
|
||
RUN rpm -ivh *.rpm \ | ||
&& mkdir -p ./{logs,data,pids} \ | ||
&& rm -rf *.rpm | ||
|
||
EXPOSE 9559 9560 19559 19560 | ||
|
||
ENTRYPOINT ["/usr/local/nebula/bin/nebula-metad", "--flagfile=/usr/local/nebula/etc/nebula-metad.conf", "--daemonize=false", "--containerized=true"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
FROM vesoft/nebula-dev:centos7 as builder | ||
|
||
ARG BRANCH=master | ||
ARG VERSION= | ||
|
||
COPY . /home/nebula/BUILD | ||
|
||
RUN cd /home/nebula/BUILD/package \ | ||
&& [[ -z "${VERSION}" ]] \ | ||
&& ./package.sh -n OFF -b ${BRANCH} -t RelWithDebInfo -s TRUE -c OFF -k ON \ | ||
|| ./package.sh -n OFF -v ${VERSION} -b ${BRANCH} -t RelWithDebInfo -s TRUE -c OFF -k ON | ||
|
||
FROM centos:7 | ||
|
||
COPY --from=builder /home/nebula/BUILD/pkg-build/cpack_output/nebula-*-common.rpm /usr/local/nebula/nebula-common.rpm | ||
COPY --from=builder /home/nebula/BUILD/pkg-build/cpack_output/nebula-*-storage.rpm /usr/local/nebula/nebula-storaged.rpm | ||
|
||
WORKDIR /usr/local/nebula | ||
|
||
RUN rpm -ivh *.rpm \ | ||
&& mkdir -p ./{logs,data,pids} \ | ||
&& rm -rf *.rpm | ||
|
||
EXPOSE 9777 9778 9779 9780 19779 19780 | ||
|
||
ENTRYPOINT ["/usr/local/nebula/bin/nebula-storaged", "--flagfile=/usr/local/nebula/etc/nebula-storaged.conf", "--daemonize=false", "--containerized=true"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
FROM vesoft/nebula-dev:centos7 as builder | ||
|
||
ARG BRANCH=master | ||
ARG VERSION= | ||
|
||
COPY . /home/nebula/BUILD | ||
|
||
RUN cd /home/nebula/BUILD/package \ | ||
&& [[ -z "${VERSION}" ]] \ | ||
&& ./package.sh -n OFF -b ${BRANCH} -t RelWithDebInfo -s TRUE -c OFF -k ON \ | ||
|| ./package.sh -n OFF -v ${VERSION} -b ${BRANCH} -t RelWithDebInfo -s TRUE -c OFF -k ON | ||
|
||
FROM centos:7 | ||
|
||
COPY --from=builder /home/nebula/BUILD/pkg-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 ["/usr/local/nebula/bin/db_dump"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.