diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e69de29bb..39ad9c857 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -0,0 +1,73 @@ +name: build + +on: + push: + branches: + - master + paths-ignore: + - '**/*.md' + pull_request: + paths-ignore: + - 'doc/**' + - 'contrib/**' + - '**/*.md' + +jobs: + build: + name: ${{ matrix.name }} + + env: + MAKEJOBS: 4 + SDK_URL: https://bitcoincore.org/depends-sources/sdks + + strategy: + fail-fast: false + matrix: + name: + - linux-32-bit + - linux-64-bit + - linux-arm-32-bit + - linux-arm-64-bit + include: + - name: linux-32-bit + host: i686-pc-linux-gnu + os: ubuntu-20.04 + packages: g++-multilib + check-security: false + check-symbols: false + dep-opts: "" + config-opts: "--enable-glibc-back-compat LDFLAGS=-static-libstdc++" + goal: install + + - name: linux-64-bit + host: x86_64-pc-linux-gnu + os: ubuntu-20.04 + packages: python3 + check-security: false + check-symbols: false + dep-opts: "" + config-opts: "--enable-sse2 --enable-glibc-back-compat LDFLAGS=-static-libstdc++" + goal: install + + - name: linux-arm-32-bit + host: arm-linux-gnueabihf + os: ubuntu-20.04 + packages: g++-arm-linux-gnueabihf binutils-arm-linux-gnueabihf + check-security: false + check-symbols: false + dep-opts: "" + config-opts: "--enable-glibc-back-compat LDFLAGS=-static-libstdc++" + goal: install + + - name: linux-arm-64-bit + host: aarch64-linux-gnu + os: ubuntu-20.04 + packages: g++-aarch64-linux-gnu binutils-aarch64-linux-gnu + check-security: false + check-symbols: false + dep-opts: "" + config-opts: "--enable-glibc-back-compat LDFLAGS=-static-libstdc++" + goal: install + + runs-on: ${{ matrix.os }} + diff --git a/dockerfile b/dockerfile new file mode 100644 index 000000000..b130da083 --- /dev/null +++ b/dockerfile @@ -0,0 +1,34 @@ +FROM ubuntu:18.04 + +ARG UID=101 +ARG GID=101 + +LABEL maintainer="SikkieNL" +LABEL description="Dockerised NeobytesCore." + +RUN groupadd --gid ${GID} neobytes \ + && useradd --create-home --no-log-init -u ${UID} -g ${GID} neobytes \ + && apt-get update -y \ + && apt-get upgrade -y \ + && apt-get install -y curl gnupg gosu \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* /var/cache/apt/* /tmp/* /var/tmp/* + +ENV NEOBYTES_VERSION=V0.12.1.1 +ENV NEOBYTES_DATA=/home/neobytes/.neobytes +ENV PATH=/opt/neobytes-${NEOBYTES_VERSION}/bin:$PATH + +RUN set -ex \ +&& curl -SLO https://bitcoin.org/bin/bitcoin-core-${NEOBYTES_VERSION}/neobytes-${NEOBYTES_VERSION}-linux64.tar.gz \ +&& tar -xzf *.tar.gz -C /opt \ +&& rm *.tar.gz *.asc + +COPY docker-entrypoint.sh /entrypoint.sh + +VOLUME ["/home/neobytes/.neobytes"] + +EXPOSE 8332 8333 18332 18333 18444 + +#ENTRYPOINT ["/entrypoint.sh"] + +CMD ["neobytesd"] \ No newline at end of file