modified: .github/workflows/build.yml
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 15s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 15s
This commit is contained in:
parent
8e9c794aa2
commit
a7a9ab6143
73
.github/workflows/build.yml
vendored
73
.github/workflows/build.yml
vendored
@ -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 }}
|
||||||
|
|
34
dockerfile
Normal file
34
dockerfile
Normal file
@ -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"]
|
Loading…
Reference in New Issue
Block a user