mirror of
https://github.com/sethforprivacy/p2pool-docker.git
synced 2026-06-23 12:22:36 -04:00
Compare commits
29 Commits
bf406b66a8
...
optimize-f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c0187089f4 | ||
|
|
a36f7e0a2f | ||
|
|
0518013758 | ||
|
|
24185da98c | ||
|
|
a0610a6215 | ||
|
|
f8867c29bb | ||
|
|
6b67d40ec2 | ||
|
|
3d1374df75 | ||
|
|
599c70f413 | ||
|
|
9303676316 | ||
|
|
c20c54e17d | ||
|
|
b3dca32ba0 | ||
|
|
f96e9166dc | ||
|
|
1ec1d51cfb | ||
|
|
d2bed819bd | ||
|
|
ea2462edf8 | ||
|
|
d30e72c868 | ||
|
|
943566c666 | ||
|
|
2afef48805 | ||
|
|
9c9a34f0d3 | ||
|
|
bd412b57f5 | ||
|
|
46a1067577 | ||
|
|
fd9cf843cf | ||
|
|
e883973c01 | ||
|
|
fa13d52fdb | ||
|
|
de5a18086b | ||
|
|
99e34b3579 | ||
|
|
21da5b959b | ||
|
|
f2476cbaaa |
11
.github/dependabot.yml
vendored
11
.github/dependabot.yml
vendored
@@ -1,11 +0,0 @@
|
|||||||
version: 2
|
|
||||||
updates:
|
|
||||||
# Maintain dependencies for GitHub Actions
|
|
||||||
- package-ecosystem: "github-actions"
|
|
||||||
directory: "/"
|
|
||||||
schedule:
|
|
||||||
interval: "daily"
|
|
||||||
groups:
|
|
||||||
dependency-updates:
|
|
||||||
patterns:
|
|
||||||
- "*"
|
|
||||||
6
.github/workflows/build-image-on-push.yml
vendored
6
.github/workflows/build-image-on-push.yml
vendored
@@ -37,14 +37,14 @@ jobs:
|
|||||||
echo "DIGEST_NAME=amd64" >> $GITHUB_ENV
|
echo "DIGEST_NAME=amd64" >> $GITHUB_ENV
|
||||||
-
|
-
|
||||||
name: Set up Docker Buildx
|
name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3.12.0
|
uses: docker/setup-buildx-action@v4.1.0
|
||||||
-
|
-
|
||||||
name: Checkout repository
|
name: Checkout repository
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v7
|
||||||
-
|
-
|
||||||
name: Test build of image
|
name: Test build of image
|
||||||
id: build
|
id: build
|
||||||
uses: docker/build-push-action@v6.19.2
|
uses: docker/build-push-action@v7.2.0
|
||||||
with:
|
with:
|
||||||
push: false
|
push: false
|
||||||
load: true
|
load: true
|
||||||
|
|||||||
22
.github/workflows/update-image-on-push.yml
vendored
22
.github/workflows/update-image-on-push.yml
vendored
@@ -34,26 +34,26 @@ jobs:
|
|||||||
echo "DIGEST_NAME=amd64" >> $GITHUB_ENV
|
echo "DIGEST_NAME=amd64" >> $GITHUB_ENV
|
||||||
- name: Docker meta
|
- name: Docker meta
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v5
|
uses: docker/metadata-action@v6
|
||||||
with:
|
with:
|
||||||
images: |
|
images: |
|
||||||
${{ env.GHCR_REPO }}
|
${{ env.GHCR_REPO }}
|
||||||
-
|
-
|
||||||
name: Set up Docker Buildx
|
name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3.12.0
|
uses: docker/setup-buildx-action@v4.1.0
|
||||||
-
|
-
|
||||||
name: Login to GitHub Container Registry
|
name: Login to GitHub Container Registry
|
||||||
uses: docker/login-action@v3.7.0
|
uses: docker/login-action@v4.2.0
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.repository_owner }}
|
username: ${{ github.repository_owner }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
-
|
-
|
||||||
name: Checkout repository
|
name: Checkout repository
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v7
|
||||||
-
|
-
|
||||||
name: Build and and push by digest
|
name: Build and and push by digest
|
||||||
uses: docker/build-push-action@v6.19.2
|
uses: docker/build-push-action@v7.2.0
|
||||||
id: build
|
id: build
|
||||||
with:
|
with:
|
||||||
outputs: type=image,"name=${{ env.GHCR_REPO }}",push-by-digest=true,name-canonical=true,push=true
|
outputs: type=image,"name=${{ env.GHCR_REPO }}",push-by-digest=true,name-canonical=true,push=true
|
||||||
@@ -68,7 +68,7 @@ jobs:
|
|||||||
touch "${{ runner.temp }}/digests/${digest#sha256:}"
|
touch "${{ runner.temp }}/digests/${digest#sha256:}"
|
||||||
|
|
||||||
- name: Upload digest
|
- name: Upload digest
|
||||||
uses: actions/upload-artifact@v6
|
uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: digests-${{ env.DIGEST_NAME }}
|
name: digests-${{ env.DIGEST_NAME }}
|
||||||
path: ${{ runner.temp }}/digests/*
|
path: ${{ runner.temp }}/digests/*
|
||||||
@@ -81,31 +81,31 @@ jobs:
|
|||||||
- build
|
- build
|
||||||
steps:
|
steps:
|
||||||
- name: Download digests
|
- name: Download digests
|
||||||
uses: actions/download-artifact@v7
|
uses: actions/download-artifact@v8
|
||||||
with:
|
with:
|
||||||
path: ${{ runner.temp }}/digests
|
path: ${{ runner.temp }}/digests
|
||||||
pattern: digests-*
|
pattern: digests-*
|
||||||
merge-multiple: true
|
merge-multiple: true
|
||||||
|
|
||||||
- name: Login to GHCR
|
- name: Login to GHCR
|
||||||
uses: docker/login-action@v3.7.0
|
uses: docker/login-action@v4.2.0
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.repository_owner }}
|
username: ${{ github.repository_owner }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3.12.0
|
uses: docker/setup-buildx-action@v4.1.0
|
||||||
|
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v7
|
||||||
|
|
||||||
- name: Get p2pool release tag
|
- name: Get p2pool release tag
|
||||||
run: echo P2POOL_TAG="$(awk -F '=' '/P2POOL_BRANCH=/ {print $2}' Dockerfile)" >> $GITHUB_ENV
|
run: echo P2POOL_TAG="$(awk -F '=' '/P2POOL_BRANCH=/ {print $2}' Dockerfile)" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Docker meta
|
- name: Docker meta
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v5
|
uses: docker/metadata-action@v6
|
||||||
with:
|
with:
|
||||||
images: |
|
images: |
|
||||||
${{ env.GHCR_REPO }}
|
${{ env.GHCR_REPO }}
|
||||||
|
|||||||
20
Dockerfile
20
Dockerfile
@@ -1,7 +1,7 @@
|
|||||||
ARG P2POOL_BRANCH=v4.13
|
ARG P2POOL_BRANCH=v4.17
|
||||||
|
|
||||||
# Select latest Ubuntu LTS for the build image base
|
# Pin to the latest Ubuntu LTS for the build image base (kept current by Renovate)
|
||||||
FROM ubuntu:latest as build
|
FROM ubuntu:24.04 as build
|
||||||
LABEL author="sethforprivacy@protonmail.com" \
|
LABEL author="sethforprivacy@protonmail.com" \
|
||||||
maintainer="sethforprivacy@protonmail.com"
|
maintainer="sethforprivacy@protonmail.com"
|
||||||
|
|
||||||
@@ -24,20 +24,22 @@ WORKDIR /p2pool
|
|||||||
|
|
||||||
# Git pull p2pool source at specified tag/branch
|
# Git pull p2pool source at specified tag/branch
|
||||||
ARG P2POOL_BRANCH
|
ARG P2POOL_BRANCH
|
||||||
RUN git clone --recursive --branch ${P2POOL_BRANCH} https://github.com/SChernykh/p2pool .
|
RUN git clone --recursive --depth 1 --shallow-submodules --branch ${P2POOL_BRANCH} https://github.com/SChernykh/p2pool .
|
||||||
|
|
||||||
# Make static p2pool binary
|
# Make static p2pool binary
|
||||||
ARG NPROC
|
ARG NPROC
|
||||||
RUN test -z "$NPROC" && nproc > /nproc || echo -n "$NPROC" > /nproc && mkdir build && cd build && cmake .. && make -j"$(cat /nproc)"
|
RUN test -z "$NPROC" && nproc > /nproc || echo -n "$NPROC" > /nproc && mkdir build && cd build && cmake .. && make -j"$(cat /nproc)"
|
||||||
|
|
||||||
# Select latest Ubuntu LTS for the image base
|
# Pin to the latest Ubuntu LTS for the image base (kept current by Renovate)
|
||||||
FROM ubuntu:latest
|
FROM ubuntu:24.04
|
||||||
|
|
||||||
# Install remaining dependencies
|
# Install only the runtime shared libraries that the p2pool binary links against
|
||||||
|
# (runtime equivalents of the build-stage -dev packages, verified via ldd on the
|
||||||
|
# built binary against the pinned Ubuntu 24.04 base)
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get upgrade -y \
|
&& apt-get upgrade -y \
|
||||||
&& apt-get install --no-install-recommends -y libuv1-dev libzmq3-dev libsodium-dev \
|
&& apt-get install --no-install-recommends -y libuv1t64 libzmq5 libsodium23 \
|
||||||
libpgm-dev libnorm-dev libgss-dev libcurl4-openssl-dev libidn2-0-dev \
|
libpgm-5.3-0t64 libnorm1t64 libgssapi-krb5-2 libcurl4t64 libidn2-0 \
|
||||||
&& apt-get clean \
|
&& apt-get clean \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ A simple and straightforward Dockerized [p2pool](https://github.com/SChernykh/p2
|
|||||||
|
|
||||||
## Actions
|
## Actions
|
||||||
|
|
||||||
[](https://github.com/sethsimmons/p2pool-docker/actions/workflows/update-daily.yml)
|
[](https://github.com/sethforprivacy/p2pool-docker/actions/workflows/update-daily.yml)
|
||||||
[](https://github.com/sethsimmons/p2pool-docker/actions/workflows/update-base-image.yml)
|
[](https://github.com/sethforprivacy/p2pool-docker/actions/workflows/update-base-image.yml)
|
||||||
|
|
||||||
# Docker Hub
|
# Docker Hub
|
||||||
This repo is used to build the images available here on GHCR.
|
This repo is used to build the images available here on GHCR.
|
||||||
|
|||||||
Reference in New Issue
Block a user