mirror of
https://github.com/sethforprivacy/p2pool-docker.git
synced 2025-12-08 16:33:32 -05:00
Compare commits
95 Commits
v1.3.1
...
3a6722c4e5
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3a6722c4e5 | ||
|
|
89f515b778 | ||
|
|
ee12a4bc95 | ||
|
|
348aaa0098 | ||
|
|
9b53ff0c36 | ||
|
|
98a65ddd74 | ||
|
|
0705e29340 | ||
|
|
01946eff08 | ||
|
|
bd0bf4b7b3 | ||
|
|
a0879382ba | ||
|
|
cce61d8f0d | ||
|
|
6dd8d50d40 | ||
|
|
6ba1b74919 | ||
|
|
e6ea1b6004 | ||
|
|
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:
|
||||
build:
|
||||
name: Build
|
||||
runs-on: "ubuntu-18.04"
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Build an image from Dockerfile
|
||||
run: |
|
||||
@@ -32,6 +32,6 @@ jobs:
|
||||
severity: 'CRITICAL,HIGH'
|
||||
|
||||
- name: Upload Trivy scan results to GitHub Security tab
|
||||
uses: github/codeql-action/upload-sarif@v1
|
||||
uses: github/codeql-action/upload-sarif@v2
|
||||
with:
|
||||
sarif_file: 'trivy-results.sarif'
|
||||
|
||||
37
.github/workflows/update-base-image.yml
vendored
37
.github/workflows/update-base-image.yml
vendored
@@ -3,39 +3,51 @@ on:
|
||||
schedule:
|
||||
- cron: "0 12 * * 1" # Run every Monday at noon.
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
rebuild-container:
|
||||
name: "Rebuild Container with the latest base image"
|
||||
runs-on: ubuntu-latest
|
||||
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.2.0
|
||||
with:
|
||||
platforms: linux/arm64
|
||||
-
|
||||
name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1.6.0
|
||||
uses: docker/setup-buildx-action@v2.7.0
|
||||
-
|
||||
name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v1.10.0
|
||||
uses: docker/login-action@v2.2.0
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.repository_owner }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
-
|
||||
name: Login to DockerHub
|
||||
uses: docker/login-action@v1.10.0
|
||||
uses: docker/login-action@v2.2.0
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
- name: "Checkout repository"
|
||||
uses: "actions/checkout@v2.3.4"
|
||||
uses: "actions/checkout@v3"
|
||||
-
|
||||
name: "Get p2pool Release Tag"
|
||||
id: get_tag
|
||||
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@v2.7.0
|
||||
uses: docker/build-push-action@v4.1.1
|
||||
with:
|
||||
push: true
|
||||
platforms: linux/amd64,linux/arm64
|
||||
tags: |
|
||||
ghcr.io/${{ github.repository_owner }}/p2pool:latest
|
||||
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.created=${{ steps.prep.outputs.created }}
|
||||
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 }}
|
||||
42
.github/workflows/update-image-on-push.yml
vendored
42
.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
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- 'Dockerfile'
|
||||
jobs:
|
||||
@@ -9,34 +11,45 @@ jobs:
|
||||
name: "Rebuild Container with the latest base image"
|
||||
runs-on: ubuntu-latest
|
||||
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.2.0
|
||||
with:
|
||||
platforms: linux/arm64
|
||||
-
|
||||
name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1.6.0
|
||||
uses: docker/setup-buildx-action@v2.7.0
|
||||
-
|
||||
name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v1.10.0
|
||||
uses: docker/login-action@v2.2.0
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.repository_owner }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
-
|
||||
name: Login to DockerHub
|
||||
uses: docker/login-action@v1.10.0
|
||||
uses: docker/login-action@v2.2.0
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
- name: "Checkout repository"
|
||||
uses: "actions/checkout@v2.3.4"
|
||||
uses: "actions/checkout@v3"
|
||||
-
|
||||
name: "Get p2pool Release Tag"
|
||||
id: get_tag
|
||||
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
|
||||
id: docker_build
|
||||
uses: docker/build-push-action@v2.7.0
|
||||
-
|
||||
name: Build and push to Docker Hub and GitHub Packages Docker Registry
|
||||
uses: docker/build-push-action@v4.1.1
|
||||
id: docker_build_push
|
||||
with:
|
||||
push: true
|
||||
platforms: linux/amd64,linux/arm64
|
||||
tags: |
|
||||
ghcr.io/${{ github.repository_owner }}/p2pool:latest
|
||||
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.created=${{ steps.prep.outputs.created }}
|
||||
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 }}
|
||||
cache-from: type=registry,ref=${{ secrets.DOCKER_USERNAME }}/simple-monerod:latest
|
||||
cache-to: type=inline
|
||||
|
||||
15
Dockerfile
15
Dockerfile
@@ -1,7 +1,7 @@
|
||||
ARG P2POOL_BRANCH=v1.3.1
|
||||
ARG P2POOL_BRANCH=v3.4
|
||||
|
||||
# Select Ubuntu 20.04LTS for the build image base
|
||||
FROM ubuntu:20.04 as build
|
||||
# Select latest Ubuntu LTS for the build image base
|
||||
FROM ubuntu:latest as build
|
||||
LABEL author="sethforprivacy@protonmail.com" \
|
||||
maintainer="sethforprivacy@protonmail.com"
|
||||
|
||||
@@ -10,7 +10,7 @@ RUN apt-get update \
|
||||
&& apt-get upgrade -y \
|
||||
&& DEBIAN_FRONTEND=noninteractive apt-get -y install --no-install-recommends git \
|
||||
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 \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
@@ -30,13 +30,14 @@ RUN git clone --recursive --branch ${P2POOL_BRANCH} https://github.com/SChernykh
|
||||
ARG 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
|
||||
FROM ubuntu:20.04
|
||||
# Select latest Ubuntu LTS for the image base
|
||||
FROM ubuntu:latest
|
||||
|
||||
# Install remaining dependencies
|
||||
RUN apt-get update \
|
||||
&& 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 \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
version: '3.5'
|
||||
services:
|
||||
monerod:
|
||||
image: sethsimmons/simple-monerod:p2pool-api-v0.17
|
||||
image: sethsimmons/simple-monerod:latest
|
||||
restart: unless-stopped
|
||||
container_name: monerod
|
||||
volumes:
|
||||
@@ -34,7 +34,7 @@ services:
|
||||
- 37889:37889
|
||||
command: >-
|
||||
--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"
|
||||
|
||||
tor:
|
||||
|
||||
Reference in New Issue
Block a user