mirror of
https://github.com/sethforprivacy/p2pool-docker.git
synced 2025-12-10 09:02:46 -05:00
Compare commits
81 Commits
v1.3.1
...
722c524cb1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
722c524cb1 | ||
|
|
5cb5058b1a | ||
|
|
8b7a2ffe1d | ||
|
|
336bfd7c0d | ||
|
|
4685a1f96e | ||
|
|
bade9b6fa0 | ||
|
|
a0ace5df2f | ||
|
|
0ae1704c81 | ||
|
|
1a3e82c816 | ||
|
|
0ac7584b42 | ||
|
|
d85e81e7e8 | ||
|
|
bce0b8b84a | ||
|
|
f01cebc40a | ||
|
|
5bda92d255 | ||
|
|
7cad3e8697 | ||
|
|
0070af6523 | ||
|
|
37aa0bdde6 | ||
|
|
626ebffdc3 | ||
|
|
5f971f4bf3 | ||
|
|
9f2d9f9255 | ||
|
|
efe2d31008 | ||
|
|
c28b48ca92 | ||
|
|
1e904afd8c | ||
|
|
bc8405ef8d | ||
|
|
4bdc6f6d16 | ||
|
|
11b080cbda | ||
|
|
215e879f87 | ||
|
|
77acabc114 | ||
|
|
274cead289 | ||
|
|
3706e699a9 | ||
|
|
5319fcc6f7 | ||
|
|
d587b97851 | ||
|
|
18b630e04a | ||
|
|
8a29f6b245 | ||
|
|
65211c0c7a | ||
|
|
2e63bd433e | ||
|
|
3c1162e67f | ||
|
|
b6687ee02a | ||
|
|
96a643ec94 | ||
|
|
267e8518a8 | ||
|
|
74b549b83d | ||
|
|
c906c9fb29 | ||
|
|
b89a79883b | ||
|
|
b41ac7109f | ||
|
|
33a422f450 | ||
|
|
0eefb70afc | ||
|
|
6e5f32eb7b | ||
|
|
443051a56a | ||
|
|
81804e92b9 | ||
|
|
a773fd57aa | ||
|
|
526abc9a06 | ||
|
|
a7391e6f16 | ||
|
|
a289f68123 | ||
|
|
968a7a65ea | ||
|
|
78215faa82 | ||
|
|
e1e5162f71 | ||
|
|
af202ede32 | ||
|
|
299d7b262d | ||
|
|
2248d98c4c | ||
|
|
e6cd000908 | ||
|
|
ffb72c4389 | ||
|
|
b9d055005c | ||
|
|
fff5905916 | ||
|
|
019726a915 | ||
|
|
c9a2c37883 | ||
|
|
c698529a9f | ||
|
|
2824a616cb | ||
|
|
38f2ec2d45 | ||
|
|
d0ffbf384d | ||
|
|
936ff2c8e5 | ||
|
|
16b3a67855 | ||
|
|
934ade8d4c | ||
|
|
ba457a7487 | ||
|
|
92079ebb52 | ||
|
|
739e762064 | ||
|
|
a8fe081664 | ||
|
|
7e6ef7436e | ||
|
|
f21b2bc2f0 | ||
|
|
03b69e856f | ||
|
|
c414d984eb | ||
|
|
3932b4f993 |
6
.github/workflows/trivy-analysis.yml
vendored
6
.github/workflows/trivy-analysis.yml
vendored
@@ -13,10 +13,10 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build
|
name: Build
|
||||||
runs-on: "ubuntu-18.04"
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Build an image from Dockerfile
|
- name: Build an image from Dockerfile
|
||||||
run: |
|
run: |
|
||||||
@@ -32,6 +32,6 @@ jobs:
|
|||||||
severity: 'CRITICAL,HIGH'
|
severity: 'CRITICAL,HIGH'
|
||||||
|
|
||||||
- name: Upload Trivy scan results to GitHub Security tab
|
- name: Upload Trivy scan results to GitHub Security tab
|
||||||
uses: github/codeql-action/upload-sarif@v1
|
uses: github/codeql-action/upload-sarif@v2
|
||||||
with:
|
with:
|
||||||
sarif_file: 'trivy-results.sarif'
|
sarif_file: 'trivy-results.sarif'
|
||||||
|
|||||||
33
.github/workflows/update-base-image.yml
vendored
33
.github/workflows/update-base-image.yml
vendored
@@ -3,39 +3,51 @@ on:
|
|||||||
schedule:
|
schedule:
|
||||||
- cron: "0 12 * * 1" # Run every Monday at noon.
|
- cron: "0 12 * * 1" # Run every Monday at noon.
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
rebuild-container:
|
rebuild-container:
|
||||||
name: "Rebuild Container with the latest base image"
|
name: "Rebuild Container with the latest base image"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
-
|
||||||
|
name: Prepare outputs
|
||||||
|
id: prep
|
||||||
|
run: |
|
||||||
|
echo "::set-output name=created::$(date -u +'%Y-%m-%dT%H:%M:%SZ')"
|
||||||
|
-
|
||||||
|
name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v2.1.0
|
||||||
|
with:
|
||||||
|
platforms: linux/arm64
|
||||||
-
|
-
|
||||||
name: Set up Docker Buildx
|
name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v1.6.0
|
uses: docker/setup-buildx-action@v2.5.0
|
||||||
-
|
-
|
||||||
name: Login to GitHub Container Registry
|
name: Login to GitHub Container Registry
|
||||||
uses: docker/login-action@v1.10.0
|
uses: docker/login-action@v2.1.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: Login to DockerHub
|
name: Login to DockerHub
|
||||||
uses: docker/login-action@v1.10.0
|
uses: docker/login-action@v2.1.0
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
- name: "Checkout repository"
|
- name: "Checkout repository"
|
||||||
uses: "actions/checkout@v2.3.4"
|
uses: "actions/checkout@v3"
|
||||||
-
|
-
|
||||||
name: "Get p2pool Release Tag"
|
name: "Get p2pool Release Tag"
|
||||||
id: get_tag
|
id: get_tag
|
||||||
run: echo "::set-output name=tag::$(awk -F "=" '/P2POOL_BRANCH=/ {print $2}' Dockerfile)"
|
run: echo "::set-output name=tag::$(awk -F "=" '/P2POOL_BRANCH=/ {print $2}' Dockerfile)"
|
||||||
-
|
-
|
||||||
name: Build and push to Docker Hub and Github Packages Docker Registry
|
name: Build and push to Docker Hub and GitHub Packages Docker Registry
|
||||||
id: docker_build
|
id: docker_build
|
||||||
uses: docker/build-push-action@v2.7.0
|
uses: docker/build-push-action@v4.0.0
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
|
platforms: linux/amd64,linux/arm64
|
||||||
tags: |
|
tags: |
|
||||||
ghcr.io/${{ github.repository_owner }}/p2pool:latest
|
ghcr.io/${{ github.repository_owner }}/p2pool:latest
|
||||||
ghcr.io/${{ github.repository_owner }}/p2pool:${{ steps.get_tag.outputs.tag }}
|
ghcr.io/${{ github.repository_owner }}/p2pool:${{ steps.get_tag.outputs.tag }}
|
||||||
@@ -45,12 +57,3 @@ jobs:
|
|||||||
org.opencontainers.image.source=${{ github.event.repository.html_url }}
|
org.opencontainers.image.source=${{ github.event.repository.html_url }}
|
||||||
org.opencontainers.image.created=${{ steps.prep.outputs.created }}
|
org.opencontainers.image.created=${{ steps.prep.outputs.created }}
|
||||||
org.opencontainers.image.revision=${{ github.sha }}
|
org.opencontainers.image.revision=${{ github.sha }}
|
||||||
-
|
|
||||||
name: Scan new image and output results
|
|
||||||
uses: Azure/container-scan@v0
|
|
||||||
with:
|
|
||||||
image-name: ${{ secrets.DOCKER_USERNAME }}/p2pool:${{ steps.get_tag.outputs.tag }}
|
|
||||||
severity-threshold: HIGH
|
|
||||||
-
|
|
||||||
name: Image digest
|
|
||||||
run: echo ${{ steps.docker_build.outputs.digest }}
|
|
||||||
38
.github/workflows/update-image-on-push.yml
vendored
38
.github/workflows/update-image-on-push.yml
vendored
@@ -2,6 +2,8 @@ name: "Update image and push to Github Packages and Docker Hub when Dockerfile i
|
|||||||
# Run this workflow every time a new commit pushed to your repository
|
# Run this workflow every time a new commit pushed to your repository
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
paths:
|
paths:
|
||||||
- 'Dockerfile'
|
- 'Dockerfile'
|
||||||
jobs:
|
jobs:
|
||||||
@@ -9,34 +11,45 @@ jobs:
|
|||||||
name: "Rebuild Container with the latest base image"
|
name: "Rebuild Container with the latest base image"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
-
|
||||||
|
name: Prepare outputs
|
||||||
|
id: prep
|
||||||
|
run: |
|
||||||
|
echo "::set-output name=created::$(date -u +'%Y-%m-%dT%H:%M:%SZ')"
|
||||||
|
-
|
||||||
|
name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v2.1.0
|
||||||
|
with:
|
||||||
|
platforms: linux/arm64
|
||||||
-
|
-
|
||||||
name: Set up Docker Buildx
|
name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v1.6.0
|
uses: docker/setup-buildx-action@v2.5.0
|
||||||
-
|
-
|
||||||
name: Login to GitHub Container Registry
|
name: Login to GitHub Container Registry
|
||||||
uses: docker/login-action@v1.10.0
|
uses: docker/login-action@v2.1.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: Login to DockerHub
|
name: Login to DockerHub
|
||||||
uses: docker/login-action@v1.10.0
|
uses: docker/login-action@v2.1.0
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
- name: "Checkout repository"
|
- name: "Checkout repository"
|
||||||
uses: "actions/checkout@v2.3.4"
|
uses: "actions/checkout@v3"
|
||||||
-
|
-
|
||||||
name: "Get p2pool Release Tag"
|
name: "Get p2pool Release Tag"
|
||||||
id: get_tag
|
id: get_tag
|
||||||
run: echo "::set-output name=tag::$(awk -F "=" '/P2POOL_BRANCH=/ {print $2}' Dockerfile)"
|
run: echo "::set-output name=tag::$(awk -F "=" '/P2POOL_BRANCH=/ {print $2}' Dockerfile)"
|
||||||
-
|
-
|
||||||
name: Build and push to Docker Hub and Github Packages Docker Registry
|
name: Build and push to Docker Hub and GitHub Packages Docker Registry
|
||||||
id: docker_build
|
uses: docker/build-push-action@v4.0.0
|
||||||
uses: docker/build-push-action@v2.7.0
|
id: docker_build_push
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
|
platforms: linux/amd64,linux/arm64
|
||||||
tags: |
|
tags: |
|
||||||
ghcr.io/${{ github.repository_owner }}/p2pool:latest
|
ghcr.io/${{ github.repository_owner }}/p2pool:latest
|
||||||
ghcr.io/${{ github.repository_owner }}/p2pool:${{ steps.get_tag.outputs.tag }}
|
ghcr.io/${{ github.repository_owner }}/p2pool:${{ steps.get_tag.outputs.tag }}
|
||||||
@@ -46,12 +59,5 @@ jobs:
|
|||||||
org.opencontainers.image.source=${{ github.event.repository.html_url }}
|
org.opencontainers.image.source=${{ github.event.repository.html_url }}
|
||||||
org.opencontainers.image.created=${{ steps.prep.outputs.created }}
|
org.opencontainers.image.created=${{ steps.prep.outputs.created }}
|
||||||
org.opencontainers.image.revision=${{ github.sha }}
|
org.opencontainers.image.revision=${{ github.sha }}
|
||||||
-
|
cache-from: type=registry,ref=${{ secrets.DOCKER_USERNAME }}/simple-monerod:latest
|
||||||
name: Scan new image and output results
|
cache-to: type=inline
|
||||||
uses: Azure/container-scan@v0
|
|
||||||
with:
|
|
||||||
image-name: ${{ secrets.DOCKER_USERNAME }}/p2pool:${{ steps.get_tag.outputs.tag }}
|
|
||||||
severity-threshold: HIGH
|
|
||||||
-
|
|
||||||
name: Image digest
|
|
||||||
run: echo ${{ steps.docker_build.outputs.digest }}
|
|
||||||
|
|||||||
15
Dockerfile
15
Dockerfile
@@ -1,7 +1,7 @@
|
|||||||
ARG P2POOL_BRANCH=v1.3.1
|
ARG P2POOL_BRANCH=v3.3
|
||||||
|
|
||||||
# Select Ubuntu 20.04LTS for the build image base
|
# Select latest Ubuntu LTS for the build image base
|
||||||
FROM ubuntu:20.04 as build
|
FROM ubuntu:latest as build
|
||||||
LABEL author="sethforprivacy@protonmail.com" \
|
LABEL author="sethforprivacy@protonmail.com" \
|
||||||
maintainer="sethforprivacy@protonmail.com"
|
maintainer="sethforprivacy@protonmail.com"
|
||||||
|
|
||||||
@@ -10,7 +10,7 @@ RUN apt-get update \
|
|||||||
&& apt-get upgrade -y \
|
&& apt-get upgrade -y \
|
||||||
&& DEBIAN_FRONTEND=noninteractive apt-get -y install --no-install-recommends git \
|
&& DEBIAN_FRONTEND=noninteractive apt-get -y install --no-install-recommends git \
|
||||||
build-essential cmake libuv1-dev libzmq3-dev libsodium-dev libpgm-dev libnorm-dev \
|
build-essential cmake libuv1-dev libzmq3-dev libsodium-dev libpgm-dev libnorm-dev \
|
||||||
libgss-dev ca-certificates\
|
libgss-dev libcurl4-openssl-dev libidn2-0-dev ca-certificates \
|
||||||
&& apt-get clean \
|
&& apt-get clean \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
@@ -30,13 +30,14 @@ RUN git clone --recursive --branch ${P2POOL_BRANCH} https://github.com/SChernykh
|
|||||||
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 Ubuntu 20.04LTS for the image base
|
# Select latest Ubuntu LTS for the image base
|
||||||
FROM ubuntu:20.04
|
FROM ubuntu:latest
|
||||||
|
|
||||||
# Install remaining dependencies
|
# Install remaining dependencies
|
||||||
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 libpgm-dev libnorm-dev libgss-dev \
|
&& apt-get install --no-install-recommends -y libuv1-dev libzmq3-dev libsodium-dev \
|
||||||
|
libpgm-dev libnorm-dev libgss-dev libcurl4-openssl-dev libidn2-0-dev \
|
||||||
&& apt-get clean \
|
&& apt-get clean \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
version: '3.5'
|
version: '3.5'
|
||||||
services:
|
services:
|
||||||
monerod:
|
monerod:
|
||||||
image: sethsimmons/simple-monerod:p2pool-api-v0.17
|
image: sethsimmons/simple-monerod:latest
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
container_name: monerod
|
container_name: monerod
|
||||||
volumes:
|
volumes:
|
||||||
@@ -34,7 +34,7 @@ services:
|
|||||||
- 37889:37889
|
- 37889:37889
|
||||||
command: >-
|
command: >-
|
||||||
--wallet "468ydghFfthE3UTc53eF5MP9UyrMcUiAHP5kizVYJsej5XGaXBoAAEzUHCcUF7t3E3RrYAX8Rs1ujhBdcvMpZSbH8qkb55R"
|
--wallet "468ydghFfthE3UTc53eF5MP9UyrMcUiAHP5kizVYJsej5XGaXBoAAEzUHCcUF7t3E3RrYAX8Rs1ujhBdcvMpZSbH8qkb55R"
|
||||||
--stratum "0.0.0.0:3333" --p2p "0.0.0.0:37889"
|
--stratum "0.0.0.0:3333" --p2p "0.0.0.0:37889" --rpc-port "18089"
|
||||||
--addpeers "65.21.227.114:37889,node.sethforprivacy.com:37889" --host "monerod"
|
--addpeers "65.21.227.114:37889,node.sethforprivacy.com:37889" --host "monerod"
|
||||||
|
|
||||||
tor:
|
tor:
|
||||||
|
|||||||
Reference in New Issue
Block a user