├── .github ├── CODEOWNERS └── workflows │ └── docker.yml ├── .gitignore ├── Dockerfile.centos7 ├── Dockerfile.centos8 ├── Dockerfile.ubuntu2004 ├── Dockerfile.ubuntu2204 ├── Dockerfile.ubuntu2404 ├── LICENSE ├── README.md └── run.sh /.github/CODEOWNERS: -------------------------------------------------------------------------------- 1 | * @yixinglu -------------------------------------------------------------------------------- /.github/workflows/docker.yml: -------------------------------------------------------------------------------- 1 | name: docker 2 | on: 3 | push: 4 | branches: 5 | - master 6 | paths: 7 | - 'Dockerfile.**' 8 | workflow_dispatch: 9 | repository_dispatch: 10 | types: 11 | - nebula-third-party-build 12 | 13 | defaults: 14 | run: 15 | shell: bash 16 | 17 | jobs: 18 | docker: 19 | name: docker 20 | runs-on: ubuntu-latest 21 | strategy: 22 | fail-fast: false 23 | matrix: 24 | os: 25 | - {"name": "centos7", "file": "centos7"} 26 | - {"name": "centos8", "file": "centos8"} 27 | - {"name": "ubuntu2004", "version": "20.04", "file": "ubuntu2004"} 28 | - {"name": "ubuntu2204", "version": "22.04", "file": "ubuntu2204"} 29 | - {"name": "ubuntu2404", "version": "24.04", "file": "ubuntu2404"} 30 | steps: 31 | - uses: actions/checkout@v4 32 | - uses: docker/login-action@v3 33 | with: 34 | username: ${{ secrets.DOCKER_USERNAME }} 35 | password: ${{ secrets.DOCKER_PASSWORD }} 36 | - uses: docker/setup-qemu-action@v3 37 | - uses: docker/setup-buildx-action@v3 38 | - uses: docker/build-push-action@v6 39 | with: 40 | context: . 41 | file: ./Dockerfile.${{ matrix.os.file }} 42 | platforms: linux/amd64,linux/arm64 43 | tags: vesoft/nebula-dev:${{ matrix.os.name }}-v5 44 | push: true 45 | build-args: | 46 | VERSION=${{ matrix.os.version }} 47 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | *.html 3 | -------------------------------------------------------------------------------- /Dockerfile.centos7: -------------------------------------------------------------------------------- 1 | FROM centos:7 2 | 3 | ENV TZ=Asia/Shanghai 4 | RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone 5 | ENV LANG=en_US.utf8 6 | 7 | RUN sed -i 's/^mirrorlist=/#mirrorlist=/g' /etc/yum.repos.d/CentOS-Base.repo && \ 8 | sed -i "s|^#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g" /etc/yum.repos.d/CentOS-Base.repo && \ 9 | yum update -y && yum install -y epel-release \ 10 | && yum install -y \ 11 | autoconf \ 12 | curl \ 13 | curl-devel \ 14 | expat-devel \ 15 | gettext \ 16 | glibc-devel \ 17 | glibc-headers \ 18 | # FIXME: Please remove following libev libraries after third party rebuilt. 19 | libev \ 20 | libev-devel \ 21 | m4 \ 22 | make \ 23 | ncurses-devel \ 24 | openldap-devel \ 25 | openssh-clients \ 26 | openssl-devel \ 27 | # for lcov 28 | perl-JSON \ 29 | perl-PerlIO-gzip \ 30 | perl-Digest-MD5 \ 31 | python3-devel \ 32 | python3-pip \ 33 | readline-devel \ 34 | redhat-lsb-core \ 35 | rpm-build \ 36 | sudo \ 37 | unzip \ 38 | vim \ 39 | wget \ 40 | xz \ 41 | zlib-devel \ 42 | # client 43 | libatomic \ 44 | ninja-build \ 45 | centos-release-scl && \ 46 | yum clean all && rm -rf /var/cache/yum 47 | 48 | WORKDIR /root 49 | 50 | ENV TOOLSET_CLANG_DIR=/opt/vesoft/toolset/clang/10.0.0 51 | ENV TOOLSET_GCC_DIR=/opt/vesoft/toolset/gcc/9.5.0 52 | ENV PATH=/opt/vesoft/toolset/cmake/bin:${TOOLSET_GCC_DIR}/bin:${TOOLSET_CLANG_DIR}/bin:${PATH} 53 | ENV CCACHE_CPP2=1 54 | ENV CC=${TOOLSET_GCC_DIR}/bin/gcc 55 | ENV CXX=${TOOLSET_GCC_DIR}/bin/g++ 56 | ENV GCOV=${TOOLSET_GCC_DIR}/bin/gcov 57 | 58 | SHELL ["/bin/bash", "-c"] 59 | 60 | # Install gcc and llvm by nebula-gears 61 | RUN bash <(curl -s https://raw.githubusercontent.com/vesoft-inc/nebula-gears/master/install) --prefix=/opt/vesoft/ \ 62 | && /opt/vesoft/bin/install-gcc --version=9.5.0 \ 63 | && /opt/vesoft/bin/install-llvm --version=10.0.0 64 | 65 | # Install cmake 66 | RUN wget https://github.com/Kitware/CMake/releases/download/v3.20.0/cmake-3.20.0-linux-$(uname -m).sh \ 67 | && chmod +x cmake-3.20.0-linux-$(uname -m).sh \ 68 | && ./cmake-3.20.0-linux-$(uname -m).sh --skip-license --prefix=/usr/local \ 69 | && rm cmake-3.20.0-linux-$(uname -m).sh 70 | 71 | # Install git 2.25 72 | RUN wget -qO- https://github.com/git/git/archive/v2.25.0.tar.gz | tar zxf - -C ./ \ 73 | && cd git-2.25.0 \ 74 | && make configure \ 75 | && ./configure --prefix=/usr \ 76 | && make -j$(nproc) && make install \ 77 | && cd ../ && rm -rf git-2.25.0 78 | 79 | # Install nebula third-party master 80 | RUN git clone https://github.com/vesoft-inc/nebula-third-party.git \ 81 | && cd nebula-third-party \ 82 | && ./install-third-party.sh \ 83 | && cd .. && rm -rf nebula-third-party 84 | 85 | # Install ccache 86 | RUN wget -qO- https://github.com/ccache/ccache/releases/download/v3.7.7/ccache-3.7.7.tar.gz | tar zxf - -C ./ \ 87 | && cd ccache-3.7.7 \ 88 | && ./configure \ 89 | && make -j \ 90 | && make install \ 91 | && cd ../ && rm -rf ccache-* 92 | 93 | # Install lcov to /usr/local/bin, require master to make gcc9 happy 94 | RUN git clone --branch master --single-branch https://github.com/linux-test-project/lcov.git \ 95 | && cd lcov && git checkout 75fbae1cfc5027f818a0bb865bf6f96fab3202da \ 96 | && make install && cd ../ && rm -rf lcov 97 | 98 | # fastcov 99 | RUN pip3 install --no-cache-dir fastcov 100 | 101 | # Install ossutil 102 | RUN curl https://gosspublic.alicdn.com/ossutil/install.sh | bash 103 | 104 | #Install minio client 105 | RUN if [ "$(uname -m)" = "x86_64" ]; then \ 106 | curl -O https://dl.min.io/client/mc/release/linux-amd64/mc; \ 107 | else \ 108 | curl -O https://dl.min.io/client/mc/release/linux-arm64/mc; \ 109 | fi \ 110 | && chmod +x mc \ 111 | && mv mc /usr/local/bin/ 112 | 113 | # Install Node.js 114 | RUN cd /usr/src && \ 115 | wget https://unofficial-builds.nodejs.org/download/release/v20.12.1/node-v20.12.1-linux-x64-glibc-217.tar.gz && \ 116 | tar -zxf node-v20.12.1-linux-x64-glibc-217.tar.gz --strip-components=1 -C /usr/local/ && \ 117 | rm node-v20.12.1-linux-x64-glibc-217.tar.gz 118 | -------------------------------------------------------------------------------- /Dockerfile.centos8: -------------------------------------------------------------------------------- 1 | FROM centos:8 2 | 3 | ENV TZ=Asia/Shanghai 4 | RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone 5 | ENV LANG=en_US.utf8 6 | 7 | RUN cd /etc/yum.repos.d/ && \ 8 | sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* && \ 9 | sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* 10 | 11 | RUN yum update -y && yum install -y epel-release \ 12 | && yum install -y \ 13 | autoconf \ 14 | curl \ 15 | curl-devel \ 16 | expat-devel \ 17 | gettext \ 18 | glibc-devel \ 19 | glibc-headers \ 20 | # FIXME: Please remove following libev libraries after third party rebuilt. 21 | libev \ 22 | libev-devel \ 23 | m4 \ 24 | make \ 25 | ncurses-devel \ 26 | openldap-devel \ 27 | openssh-clients \ 28 | openssl-devel \ 29 | # for lcov 30 | perl-JSON \ 31 | perl-PerlIO-gzip \ 32 | perl-Digest-MD5 \ 33 | python3-devel \ 34 | python3-pip \ 35 | readline-devel \ 36 | redhat-lsb-core \ 37 | rpm-build \ 38 | sudo \ 39 | unzip \ 40 | vim \ 41 | wget \ 42 | xz \ 43 | zlib-devel \ 44 | # client 45 | libatomic \ 46 | && yum --enablerepo=powertools install -y ninja-build \ 47 | && yum clean all && rm -rf /var/cache/yum 48 | 49 | WORKDIR /root 50 | 51 | ENV TOOLSET_CLANG_DIR=/opt/vesoft/toolset/clang/10.0.0 52 | ENV TOOLSET_GCC_DIR=/opt/vesoft/toolset/gcc/9.5.0 53 | ENV PATH=/opt/vesoft/toolset/cmake/bin:${TOOLSET_GCC_DIR}/bin:${TOOLSET_CLANG_DIR}/bin:${PATH} 54 | ENV CCACHE_CPP2=1 55 | ENV CC=${TOOLSET_GCC_DIR}/bin/gcc 56 | ENV CXX=${TOOLSET_GCC_DIR}/bin/g++ 57 | ENV GCOV=${TOOLSET_GCC_DIR}/bin/gcov 58 | 59 | SHELL ["/bin/bash", "-c"] 60 | 61 | # Install gcc and llvm by nebula-gears 62 | RUN bash <(curl -s https://raw.githubusercontent.com/vesoft-inc/nebula-gears/master/install) --prefix=/opt/vesoft/ \ 63 | && /opt/vesoft/bin/install-gcc --version=9.5.0 \ 64 | && /opt/vesoft/bin/install-llvm --version=10.0.0 65 | 66 | # Install cmake 67 | RUN wget https://github.com/Kitware/CMake/releases/download/v3.20.0/cmake-3.20.0-linux-$(uname -m).sh \ 68 | && chmod +x cmake-3.20.0-linux-$(uname -m).sh \ 69 | && ./cmake-3.20.0-linux-$(uname -m).sh --skip-license --prefix=/usr/local \ 70 | && rm cmake-3.20.0-linux-$(uname -m).sh 71 | 72 | # Install git 2.25 73 | RUN wget -qO- https://github.com/git/git/archive/v2.25.0.tar.gz | tar zxf - -C ./ \ 74 | && cd git-2.25.0 \ 75 | && make configure \ 76 | && ./configure --prefix=/usr \ 77 | && make -j$(nproc) && make install \ 78 | && cd ../ && rm -rf git-2.25.0 79 | 80 | # Install nebula third-party master 81 | RUN git clone https://github.com/vesoft-inc/nebula-third-party.git \ 82 | && cd nebula-third-party \ 83 | && ./install-third-party.sh \ 84 | && cd .. && rm -rf nebula-third-party 85 | 86 | # Install ccache 87 | RUN wget -qO- https://github.com/ccache/ccache/releases/download/v3.7.7/ccache-3.7.7.tar.gz | tar zxf - -C ./ \ 88 | && cd ccache-3.7.7 \ 89 | && ./configure \ 90 | && make -j \ 91 | && make install \ 92 | && cd ../ && rm -rf ccache-* 93 | 94 | # Install lcov to /usr/local/bin, require master to make gcc9 happy 95 | RUN git clone --branch master --single-branch https://github.com/linux-test-project/lcov.git \ 96 | && cd lcov && git checkout 75fbae1cfc5027f818a0bb865bf6f96fab3202da \ 97 | && make install && cd ../ && rm -rf lcov 98 | 99 | # fastcov 100 | RUN pip3 install --no-cache-dir fastcov 101 | 102 | # Install ossutil 103 | RUN curl https://gosspublic.alicdn.com/ossutil/install.sh | bash 104 | 105 | #Install mold 106 | RUN mkdir /usr/local/mold && wget -qO- https://github.com/rui314/mold/releases/download/v2.1.0/mold-2.1.0-$(uname -m)-linux.tar.gz | tar xzf - --strip-components=1 -C /usr/local/mold/ 107 | ENV PATH=/usr/local/mold/bin:${PATH} 108 | 109 | #Install minio client 110 | RUN if [ "$(uname -m)" = "x86_64" ]; then \ 111 | curl -O https://dl.min.io/client/mc/release/linux-amd64/mc; \ 112 | else \ 113 | curl -O https://dl.min.io/client/mc/release/linux-arm64/mc; \ 114 | fi \ 115 | && chmod +x mc \ 116 | && mv mc /usr/local/bin/ 117 | -------------------------------------------------------------------------------- /Dockerfile.ubuntu2004: -------------------------------------------------------------------------------- 1 | FROM ubuntu:20.04 2 | 3 | ARG DEBIAN_FRONTEND=noninteractive 4 | ENV TZ=Asia/Shanghai 5 | RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone 6 | ENV LANG=en_US.utf8 7 | 8 | RUN apt update && apt install -y --no-install-recommends \ 9 | autoconf \ 10 | ca-certificates \ 11 | curl \ 12 | gettext \ 13 | gnupg2 \ 14 | libc-dev \ 15 | libcurl4-gnutls-dev \ 16 | libexpat1-dev \ 17 | libldap2-dev \ 18 | libreadline-dev \ 19 | libssl-dev \ 20 | libz-dev \ 21 | locales-all \ 22 | lsb-core \ 23 | m4 \ 24 | make \ 25 | ncurses-dev \ 26 | ninja-build \ 27 | openssh-client \ 28 | python3-dev \ 29 | python3-pip \ 30 | sudo \ 31 | tzdata \ 32 | unzip \ 33 | wget \ 34 | xz-utils \ 35 | lcov \ 36 | build-essential \ 37 | clang \ 38 | clang-format \ 39 | clang-tidy \ 40 | clang-tools \ 41 | vim \ 42 | ccache \ 43 | git \ 44 | && rm -rf /var/lib/apt/lists/* 45 | 46 | WORKDIR /root 47 | 48 | ENV CCACHE_CPP2=1 49 | 50 | SHELL ["/bin/bash", "-c"] 51 | 52 | # Install cmake 53 | RUN wget https://github.com/Kitware/CMake/releases/download/v3.20.0/cmake-3.20.0-linux-$(uname -m).sh \ 54 | && chmod +x cmake-3.20.0-linux-$(uname -m).sh \ 55 | && ./cmake-3.20.0-linux-$(uname -m).sh --skip-license --prefix=/usr/local \ 56 | && rm cmake-3.20.0-linux-$(uname -m).sh 57 | 58 | # Install nebula third-party master 59 | RUN git clone https://github.com/vesoft-inc/nebula-third-party.git \ 60 | && cd nebula-third-party \ 61 | && ./install-third-party.sh \ 62 | && cd .. && rm -rf nebula-third-party 63 | 64 | # fastcov 65 | RUN pip3 install --no-cache-dir fastcov 66 | 67 | # Install ossutil 68 | RUN curl https://gosspublic.alicdn.com/ossutil/install.sh | bash 69 | 70 | #Install minio client 71 | RUN if [ "$(uname -m)" = "x86_64" ]; then \ 72 | curl -O https://dl.min.io/client/mc/release/linux-amd64/mc; \ 73 | else \ 74 | curl -O https://dl.min.io/client/mc/release/linux-arm64/mc; \ 75 | fi \ 76 | && chmod +x mc \ 77 | && mv mc /usr/local/bin/ 78 | -------------------------------------------------------------------------------- /Dockerfile.ubuntu2204: -------------------------------------------------------------------------------- 1 | FROM ubuntu:22.04 2 | 3 | ARG DEBIAN_FRONTEND=noninteractive 4 | ENV TZ=Asia/Shanghai 5 | RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone 6 | ENV LANG=en_US.utf8 7 | SHELL ["/bin/bash", "-c"] 8 | 9 | RUN apt update && apt install -y --no-install-recommends \ 10 | autoconf \ 11 | ca-certificates \ 12 | curl \ 13 | gettext \ 14 | gnupg2 \ 15 | libc-dev \ 16 | libcurl4-gnutls-dev \ 17 | libexpat1-dev \ 18 | libldap2-dev \ 19 | libreadline-dev \ 20 | libssl-dev \ 21 | libz-dev \ 22 | locales-all \ 23 | lsb-release \ 24 | m4 \ 25 | make \ 26 | ncurses-dev \ 27 | ninja-build \ 28 | openssh-client \ 29 | python3-dev \ 30 | python3-pip \ 31 | sudo \ 32 | tzdata \ 33 | unzip \ 34 | wget \ 35 | xz-utils \ 36 | lcov \ 37 | build-essential \ 38 | clang \ 39 | clang-format \ 40 | clang-tidy \ 41 | clang-tools \ 42 | vim \ 43 | ccache \ 44 | git \ 45 | cmake \ 46 | && rm -rf /var/lib/apt/lists/* 47 | 48 | WORKDIR /root 49 | 50 | ENV CCACHE_CPP2=1 51 | 52 | # Install nebula third-party master 53 | RUN git clone https://github.com/vesoft-inc/nebula-third-party.git \ 54 | && cd nebula-third-party \ 55 | && ./install-third-party.sh \ 56 | && cd .. && rm -rf nebula-third-party 57 | 58 | # fastcov 59 | RUN pip3 install --no-cache-dir fastcov 60 | 61 | # Install ossutil 62 | RUN curl https://gosspublic.alicdn.com/ossutil/install.sh | bash 63 | 64 | #Install minio client 65 | RUN if [ "$(uname -m)" = "x86_64" ]; then \ 66 | curl -O https://dl.min.io/client/mc/release/linux-amd64/mc; \ 67 | else \ 68 | curl -O https://dl.min.io/client/mc/release/linux-arm64/mc; \ 69 | fi \ 70 | && chmod +x mc \ 71 | && mv mc /usr/local/bin/ 72 | -------------------------------------------------------------------------------- /Dockerfile.ubuntu2404: -------------------------------------------------------------------------------- 1 | FROM ubuntu:24.04 2 | 3 | ENV TZ=Asia/Shanghai 4 | RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone 5 | ENV LANG=en_US.utf8 6 | SHELL ["/bin/bash", "-c"] 7 | ARG DEBIAN_FRONTEND=noninteractive 8 | 9 | RUN apt update && apt install -y --no-install-recommends \ 10 | autoconf \ 11 | ca-certificates \ 12 | curl \ 13 | gettext \ 14 | gnupg2 \ 15 | libc-dev \ 16 | libcurl4-gnutls-dev \ 17 | libexpat1-dev \ 18 | libldap2-dev \ 19 | libreadline-dev \ 20 | libssl-dev \ 21 | libz-dev \ 22 | locales-all \ 23 | lsb-release \ 24 | m4 \ 25 | make \ 26 | ncurses-dev \ 27 | ninja-build \ 28 | openssh-client \ 29 | python3-dev \ 30 | pipx \ 31 | sudo \ 32 | tzdata \ 33 | unzip \ 34 | wget \ 35 | xz-utils \ 36 | lcov \ 37 | git \ 38 | cmake \ 39 | build-essential \ 40 | llvm-17 \ 41 | lld-17 \ 42 | clang-17 \ 43 | clang-format-17 \ 44 | clang-tidy-17 \ 45 | clang-tools-17 \ 46 | libclang-rt-17-dev \ 47 | vim \ 48 | ccache \ 49 | && rm -rf /var/lib/apt/lists/* 50 | 51 | WORKDIR /root 52 | 53 | # Install nebula third-party master 54 | RUN git clone https://github.com/vesoft-inc/nebula-third-party.git \ 55 | && cd nebula-third-party \ 56 | && ./install-third-party.sh \ 57 | && cd .. && rm -rf nebula-third-party 58 | 59 | # fastcov 60 | RUN pipx install fastcov && pipx ensurepath 61 | 62 | # Install ossutil 63 | RUN curl https://gosspublic.alicdn.com/ossutil/install.sh | bash 64 | 65 | #Install minio client 66 | RUN if [ "$(uname -m)" = "x86_64" ]; then \ 67 | curl -O https://dl.min.io/client/mc/release/linux-amd64/mc; \ 68 | else \ 69 | curl -O https://dl.min.io/client/mc/release/linux-arm64/mc; \ 70 | fi \ 71 | && chmod +x mc \ 72 | && mv mc /usr/local/bin/ 73 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Nebula Graph Development Docker Image 2 | 3 | Use `docker` to build [*Nebula*](https://github.com/vesoft-inc/nebula) project. 4 | 5 | At this moment, we have provided following docker images for developers: 6 | 7 | 8 | - `vesoft/nebula-dev:centos7` 9 | - `vesoft/nebula-dev:centos8` 10 | - `vesoft/nebula-dev:ubuntu1604` 11 | - `vesoft/nebula-dev:ubuntu1804` 12 | - `vesoft/nebula-dev:ubuntu2004` 13 | 14 | And the `vesoft/nebula-dev:centos7` image is also tagged as `vesoft/nebula-dev:latest`. 15 | 16 | ## Usage 17 | 18 | At first, you should install `docker` in your machine and then pull the [`vesoft/nebula-dev`](https://hub.docker.com/r/vesoft/nebula-dev) image from docker hub. 19 | After that you can use following commands to build `Nebula` sources. 20 | 21 | $ docker pull vesoft/nebula-dev:ubuntu1804 22 | $ curl -fsSL https://raw.githubusercontent.com/vesoft-inc/nebula-dev-docker/master/run.sh -o run.sh 23 | $ chmod +x run.sh 24 | $ ./run.sh /path/to/nebula/directory ubuntu1804 25 | -------------------------------------------------------------------------------- /run.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | TAG=${2:-latest} 4 | 5 | docker run --rm -ti \ 6 | --security-opt seccomp=unconfined \ 7 | -v "$1":/home/nebula \ 8 | -w /home/nebula \ 9 | --name nebula_$USER \ 10 | vesoft/nebula-dev:$TAG \ 11 | bash 12 | --------------------------------------------------------------------------------