-
Notifications
You must be signed in to change notification settings - Fork 0
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
0 parents
commit 3df62af
Showing
7 changed files
with
142 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: Build on master PR or push | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
env: | ||
DOCKER_CLI_EXPERIMENTAL: enabled | ||
|
||
jobs: | ||
build: | ||
name: Build groestlcoind image | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Login to Docker Hub | ||
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin | ||
|
||
- name: Checkout project | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set VERSION from env | ||
run: echo "VERSION=$(cat VERSION)" >> $GITHUB_ENV | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v1 | ||
id: qemu | ||
|
||
- name: Setup Docker buildx action | ||
uses: docker/setup-buildx-action@v1 | ||
id: buildx | ||
|
||
- name: Show available Docker buildx platforms | ||
run: echo ${{ steps.buildx.outputs.platforms }} | ||
|
||
- name: Test build in x64 | ||
run: | | ||
docker buildx build \ | ||
--platform linux/amd64 \ | ||
--build-arg VERSION=${{ env.VERSION }} \ | ||
--tag groestlcoin/unraid-docker-groestlcoind:test \ | ||
--output "type=docker" . | ||
- name: Test build okay | ||
run: | | ||
docker run --rm groestlcoin/unraid-docker-groestlcoind:test --version \ | ||
| grep ${{ env.VERSION }} | ||
- name: Build multiarch and push to Docker Hub | ||
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} | ||
run: | | ||
docker buildx build \ | ||
--platform $(cat PLATFORMS | tr '\n' ',') \ | ||
--build-arg VERSION=${{ env.VERSION }} \ | ||
--tag groestlcoin/unraid-docker-groestlcoind:${{ env.VERSION }} \ | ||
--tag groestlcoin/unraid-docker-groestlcoind \ | ||
--output "type=registry" . |
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,56 @@ | ||
FROM alpine AS build | ||
|
||
RUN apk --no-cache add \ | ||
autoconf \ | ||
automake \ | ||
bash \ | ||
boost-dev \ | ||
coreutils \ | ||
cmake \ | ||
curl \ | ||
git \ | ||
libevent-dev \ | ||
libffi-dev \ | ||
libtool \ | ||
openssl-dev \ | ||
&& apk --no-cache add --update alpine-sdk build-base | ||
|
||
ARG VERSION | ||
|
||
RUN git clone --depth 1 https://github.com/groestlcoin/groestlcoin.git --branch $VERSION --single-branch | ||
|
||
WORKDIR /groestlcoin | ||
|
||
RUN cd /groestlcoin/depends; make NO_QT=1 -j"$(($(nproc)+1))" | ||
|
||
RUN wget https://zlib.net/zlib-1.3.1.tar.gz && \ | ||
echo "9a93b2b7dfdac77ceba5a558a580e74667dd6fede4585b91eefb60f03b72df23 zlib-1.3.1.tar.gz" | sha256sum -c && \ | ||
mkdir -p /usr/src/zlib; tar zxvf zlib-1.3.1.tar.gz -C /usr/src && \ | ||
cd /usr/src/zlib-1.3.1; ./configure; make -j"$(($(nproc)+1))"; make -j"$(($(nproc)+1))" install | ||
|
||
RUN export CONFIG_SITE=/groestlcoin/depends/$(/groestlcoin/depends/config.guess)/share/config.site && \ | ||
cd /groestlcoin; ./autogen.sh; \ | ||
./configure --disable-ccache \ | ||
--disable-maintainer-mode \ | ||
--disable-dependency-tracking \ | ||
--enable-reduce-exports --disable-bench \ | ||
--disable-tests \ | ||
--disable-gui-tests \ | ||
--without-gui \ | ||
--without-miniupnpc \ | ||
CFLAGS="-O2 -g0 --static -static -fPIC" \ | ||
CXXFLAGS="-O2 -g0 --static -static -fPIC" \ | ||
LDFLAGS="-s -static-libgcc -static-libstdc++ -Wl,-O2" | ||
|
||
RUN make -j"$(($(nproc)+1))" && \ | ||
make -j"$(($(nproc)+1))" install | ||
|
||
FROM alpine:latest | ||
COPY --from=build /usr/local /usr/local | ||
COPY --from=build /groestlcoin/share/examples/groestlcoin.conf /.groestlcoin/groestlcoin.conf | ||
|
||
VOLUME ["/.groestlcoin"] | ||
|
||
EXPOSE 1331 1441 17777 17766 18888 18443 31331 31441 | ||
|
||
ENTRYPOINT ["/usr/local/bin/groestlcoind", "-printtoconsole"] |
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,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2024 Groestlcoin developers | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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,2 @@ | ||
linux/amd64 | ||
linux/arm64 |
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,2 @@ | ||
# docker-groestlcoind | ||
Groestlcoin done lightweight and auditable |
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 @@ | ||
28.0.0 |