Compare commits

..

1 Commits

Author SHA1 Message Date
af4175317b fixed docker build cache for arch-builder image
Some checks failed
CI / Build arch-builder docker images (push) Has been cancelled
2025-07-18 15:55:28 +08:00
28 changed files with 42 additions and 486 deletions

View File

@@ -31,7 +31,7 @@ jobs:
pull: true pull: true
tags: | tags: |
"gitea.woggioni.net/woggioni/arch-builder:base" "gitea.woggioni.net/woggioni/arch-builder:base"
cache-from: type=registry,ref=gitea.woggioni.net/woggioni/arch-builder:base-buildx cache-from: type=registry,ref=gitea.woggioni.net/woggioni/arch-builder:buildx
cache-to: type=registry,mode=max,compression=zstd,image-manifest=true,oci-mediatypes=true,ref=gitea.woggioni.net/woggioni/arch-builder:base-buildx cache-to: type=registry,mode=max,compression=zstd,image-manifest=true,oci-mediatypes=true,ref=gitea.woggioni.net/woggioni/arch-builder:base-buildx
target: base target: base
- -

View File

@@ -1,60 +0,0 @@
name: CI
on:
push:
branches: [ master ]
paths:
- 'bee-dashboard/**'
- '.gitea/workflows/build-bee-dashboard.yaml'
jobs:
"Build & deploy Cloudflare page":
runs-on: hostinger
steps:
- name: Checkout sources
uses: actions/checkout@v4
with:
path: docker-images
- name: Checkout bee-dashboard sources
run: /usr/sbin/git clone -b add-redistribution-stats --depth 1 https://github.com/woggioni/bee-dashboard.git src
- name: Execute build
run: cd src && npm install
- name: Copy _headers file
run: cp docker-images/bee-dashboard/_headers src/build
- name: Deploy to Cloudflare
run: npx wrangler pages deploy --project-name bee-dashboard --branch main src/build
env:
CLOUDFLARE_ACCOUNT_ID: ${{ vars.CLOUDFLARE_ACCOUNT_ID }}
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
"Build bee-dashboard docker images":
runs-on: hostinger
steps:
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3.4.0
with:
driver: docker-container
platforms: |
linux/amd64
linux/arm64
-
name: Login to Gitea container registry
uses: docker/login-action@v3
with:
registry: gitea.woggioni.net
username: woggioni
password: ${{ secrets.PUBLISHER_TOKEN }}
-
name: Build and push bee-dashboard images
uses: docker/build-push-action@v6
with:
platforms: |
linux/amd64
linux/arm64
context: "{{defaultContext}}:bee-dashboard"
push: true
pull: true
ssh: default=/home/luser/.ssh/id_ed25519
build-args: "VERSION=0.32.0"
tags: |
"gitea.woggioni.net/woggioni/bee-dashboard:0.32.0"
cache-from: type=registry,ref=gitea.woggioni.net/woggioni/bee-dashboard:buildx
cache-to: type=registry,mode=max,compression=zstd,image-manifest=true,oci-mediatypes=true,ref=gitea.woggioni.net/woggioni/bee-dashboard:buildx

View File

@@ -1,41 +0,0 @@
name: CI
on:
push:
branches: [ master ]
paths:
- 'dyndns/*'
- '.gitea/workflows/build-dyndns.yaml'
jobs:
"Build dyndns docker images":
runs-on: hostinger
steps:
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3.4.0
with:
driver: docker-container
platforms: |
linux/amd64
linux/arm64
-
name: Login to Gitea container registry
uses: docker/login-action@v3
with:
registry: gitea.woggioni.net
username: woggioni
password: ${{ secrets.PUBLISHER_TOKEN }}
-
name: Build and push dyndns images
uses: docker/build-push-action@v6
with:
context: "{{defaultContext}}:dyndns"
platforms: |
linux/amd64
linux/arm64
push: true
pull: true
tags: |
"gitea.woggioni.net/woggioni/dyndns:latest"
cache-from: type=registry,ref=gitea.woggioni.net/woggioni/dyndns:buildx
cache-to: type=registry,mode=max,compression=zstd,image-manifest=true,oci-mediatypes=true,ref=gitea.woggioni.net/woggioni/dyndns:buildx

View File

@@ -7,7 +7,7 @@ on:
- '.gitea/workflows/build-jupyter-python.yaml' - '.gitea/workflows/build-jupyter-python.yaml'
jobs: jobs:
"Build Jupyter python Docker images": "Build Jupyter python Docker images":
runs-on: hostinger runs-on: woryzen
steps: steps:
- -
name: Set up QEMU name: Set up QEMU

View File

@@ -7,7 +7,7 @@ on:
- '.gitea/workflows/build-nginx.yaml' - '.gitea/workflows/build-nginx.yaml'
jobs: jobs:
"Build nginx docker images": "Build nginx docker images":
runs-on: hostinger runs-on: woryzen
steps: steps:
- -
name: Set up Docker Buildx name: Set up Docker Buildx
@@ -25,44 +25,20 @@ jobs:
username: woggioni username: woggioni
password: ${{ secrets.PUBLISHER_TOKEN }} password: ${{ secrets.PUBLISHER_TOKEN }}
- -
name: Build and push nginx vanilla images name: Build and push nginx images
uses: docker/build-push-action@v6 uses: docker/build-push-action@v6
with: with:
context: "{{defaultContext}}:nginx" context: "{{defaultContext}}:nginx"
platforms: | platforms: |
linux/amd64 linux/amd64
linux/arm64
push: true push: true
pull: true pull: true
ssh: default=/home/luser/.ssh/id_ed25519
tags: | tags: |
"gitea.woggioni.net/woggioni/nginx:latest" "gitea.woggioni.net/woggioni/nginx:latest"
"gitea.woggioni.net/woggioni/nginx:v1.29.1" "gitea.woggioni.net/woggioni/nginx:v1.28.0"
secrets: | secrets: |
GIT_AUTH_TOKEN.github.com=${{ secrets.GH_ACCESS_TOKEN }} GIT_AUTH_TOKEN.github.com=${{ secrets.GH_ACCESS_TOKEN }}
build-args: | build-args: "NGINX_VERSION=1.28.0"
NGINX_VERSION=1.29.1 cache-from: type=registry,ref=gitea.woggioni.net/woggioni/nginx:buildx
NGINX_BRANCH=vanilla cache-to: type=registry,mode=max,compression=zstd,image-manifest=true,oci-mediatypes=true,ref=gitea.woggioni.net/woggioni/nginx:buildx
cache-from: type=registry,ref=gitea.woggioni.net/woggioni/nginx:buildx-vanilla
cache-to: type=registry,mode=max,compression=zstd,image-manifest=true,oci-mediatypes=true,ref=gitea.woggioni.net/woggioni/nginx:buildx-vanilla
-
name: Build and push nginx custom images
uses: docker/build-push-action@v6
with:
context: "{{defaultContext}}:nginx"
platforms: |
linux/amd64
linux/arm64
push: true
pull: true
ssh: default=/home/luser/.ssh/id_ed25519
tags: |
"gitea.woggioni.net/woggioni/nginx:woggioni"
"gitea.woggioni.net/woggioni/nginx:v1.29.1-woggioni"
secrets: |
GIT_AUTH_TOKEN.github.com=${{ secrets.GH_ACCESS_TOKEN }}
build-args: |
NGINX_VERSION=1.29.1
NGINX_BRANCH=woggioni
cache-from: type=registry,ref=gitea.woggioni.net/woggioni/nginx:buildx-woggioni
cache-to: type=registry,mode=max,compression=zstd,image-manifest=true,oci-mediatypes=true,ref=gitea.woggioni.net/woggioni/nginx:buildx-woggioni

View File

@@ -1,43 +0,0 @@
name: CI
on:
push:
branches: [ master ]
paths:
- 'rlevtree/*'
- '.gitea/workflows/build-rlevtree.yaml'
jobs:
"Build rlevtree docker images":
runs-on: woryzen
steps:
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3.4.0
with:
driver: docker-container
platforms: |
wasm/wasm
linux/amd64
linux/arm64
-
name: Login to Gitea container registry
uses: docker/login-action@v3
with:
registry: gitea.woggioni.net
username: woggioni
password: ${{ secrets.PUBLISHER_TOKEN }}
-
name: Build and push sserver-rust images
uses: docker/build-push-action@v6
with:
context: "{{defaultContext}}:rlevtree"
platforms: |
wasm/wasm
linux/amd64
linux/arm64
push: true
pull: true
tags: |
"gitea.woggioni.net/woggioni/rlevtree:latest"
cache-from: type=registry,ref=gitea.woggioni.net/woggioni/rlevtree:buildx
cache-to: type=registry,mode=max,compression=zstd,image-manifest=true,oci-mediatypes=true,ref=gitea.woggioni.net/woggioni/rlevtree:buildx

View File

@@ -1,41 +0,0 @@
name: CI
on:
push:
branches: [ master ]
paths:
- 'swarm-cli/*'
- '.gitea/workflows/build-swarm-cli.yaml'
jobs:
"Build swarm-cli docker images":
runs-on: woryzen
steps:
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3.4.0
with:
driver: docker-container
platforms: |
linux/amd64
linux/arm64
-
name: Login to Gitea container registry
uses: docker/login-action@v3
with:
registry: gitea.woggioni.net
username: woggioni
password: ${{ secrets.PUBLISHER_TOKEN }}
-
name: Build and push swarm-cli images
uses: docker/build-push-action@v6
with:
context: "{{defaultContext}}:swarm-cli"
platforms: |
linux/amd64
linux/arm64
push: true
pull: true
tags: |
"gitea.woggioni.net/woggioni/swarm-cli:latest"
cache-from: type=registry,ref=gitea.woggioni.net/woggioni/swarm-cli:buildx
cache-to: type=registry,mode=max,compression=zstd,image-manifest=true,oci-mediatypes=true,ref=gitea.woggioni.net/woggioni/swarm-cli:buildx

View File

@@ -7,7 +7,7 @@ on:
- '.gitea/workflows/build-wildfly.yaml' - '.gitea/workflows/build-wildfly.yaml'
jobs: jobs:
"Build wildfly docker images": "Build wildfly docker images":
runs-on: hostinger runs-on: woryzen
steps: steps:
- -
name: Set up Docker Buildx name: Set up Docker Buildx
@@ -30,8 +30,8 @@ jobs:
pull: true pull: true
tags: | tags: |
"gitea.woggioni.net/woggioni/wildfly:latest" "gitea.woggioni.net/woggioni/wildfly:latest"
"gitea.woggioni.net/woggioni/wildfly:37.0.1" "gitea.woggioni.net/woggioni/wildfly:33.0.1"
build-args: "VERSION=37.0.1" build-args: "VERSION=33.0.1"
cache-from: type=registry,ref=gitea.woggioni.net/woggioni/wildfly:buildx cache-from: type=registry,ref=gitea.woggioni.net/woggioni/wildfly:buildx
cache-to: type=registry,mode=max,compression=zstd,image-manifest=true,oci-mediatypes=true,ref=gitea.woggioni.net/woggioni/wildfly:buildx cache-to: type=registry,mode=max,compression=zstd,image-manifest=true,oci-mediatypes=true,ref=gitea.woggioni.net/woggioni/wildfly:buildx

View File

@@ -1,38 +0,0 @@
name: CI
on:
push:
branches: [ master ]
paths:
- 'xmrig/**'
- '.gitea/workflows/build-xmrig.yaml'
jobs:
"Build xmrig docker images":
runs-on: woryzen
steps:
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3.4.0
with:
driver: docker-container
-
name: Login to Gitea container registry
uses: docker/login-action@v3
with:
registry: gitea.woggioni.net
username: woggioni
password: ${{ secrets.PUBLISHER_TOKEN }}
-
name: Build and push xmrig images
uses: docker/build-push-action@v6
with:
context: "{{defaultContext}}:xmrig"
push: true
pull: true
ssh: default=/home/luser/.ssh/id_ed25519
tags: |
"gitea.woggioni.net/woggioni/xmrig:latest"
"gitea.woggioni.net/woggioni/xmrig:6.24.0"
build-args: "VERSION=6.24.0"
cache-from: type=registry,ref=gitea.woggioni.net/woggioni/xmrig:buildx
cache-to: type=registry,mode=max,compression=zstd,image-manifest=true,oci-mediatypes=true,ref=gitea.woggioni.net/woggioni/xmrig:buildx

View File

@@ -95,7 +95,6 @@ RUN --mount=type=cache,target=/var/cache/pacman pacman -S --noconfirm --needed \
protobuf protobuf
USER luser USER luser
WORKDIR /home/luser WORKDIR /home/luser
RUN rustup update
RUN rustup toolchain install stable-x86_64-unknown-linux-gnu --profile minimal RUN rustup toolchain install stable-x86_64-unknown-linux-gnu --profile minimal
RUN rustup component add rustfmt RUN rustup component add rustfmt
RUN rustup target add \ RUN rustup target add \
@@ -107,20 +106,16 @@ RUN rustup target add \
aarch64-unknown-linux-gnu \ aarch64-unknown-linux-gnu \
wasm32-unknown-unknown \ wasm32-unknown-unknown \
wasm32-wasip2 wasm32-wasip2
RUN rustup update
FROM base AS gitea_act_runner FROM base AS gitea_act_runner
RUN --mount=type=bind,source=woggioni.net.ca.pem,target=/root.pem trust anchor root.pem RUN --mount=type=cache,target=/var/cache/pacman pacman -S --noconfirm --needed nodejs npm docker docker-buildx btrfs-progs hidapi protobuf rustup llvm clang trunk emscripten
RUN --mount=type=cache,target=/var/cache/pacman pacman -S --noconfirm --needed nodejs npm docker docker-buildx btrfs-progs hidapi protobuf rustup llvm clang trunk emscripten sccache
RUN --mount=type=cache,target=/var/cache/pacman pacman -S --noconfirm --needed gitea-act-runner jdk21-graalvm-bin jdk23-graalvm-bin jdk21-graalvm-ce-bin jdk23-graalvm-ce-bin RUN --mount=type=cache,target=/var/cache/pacman pacman -S --noconfirm --needed gitea-act-runner jdk21-graalvm-bin jdk23-graalvm-bin jdk21-graalvm-ce-bin jdk23-graalvm-ce-bin
RUN --mount=type=bind,source=woggioni.net.ca.pem,target=/root.pem trust anchor root.pem
RUN usermod -a luser -G docker RUN usermod -a luser -G docker
USER luser USER luser
WORKDIR /home/luser
COPY --chown=1000:1000 config.toml /home/luser/.cargo/config.toml
COPY --chown=1000:1000 sccache_config.toml /home/luser/.config/sccache/config
RUN rustup update
RUN rustup toolchain install stable-x86_64-unknown-linux-gnu --profile minimal RUN rustup toolchain install stable-x86_64-unknown-linux-gnu --profile minimal
RUN rustup component add rustfmt RUN rustup component add rustfmt
RUN rustup component add clippy
RUN rustup target add \ RUN rustup target add \
x86_64-unknown-linux-musl \ x86_64-unknown-linux-musl \
x86_64-unknown-linux-gnu \ x86_64-unknown-linux-gnu \
@@ -130,8 +125,7 @@ RUN rustup target add \
aarch64-unknown-linux-gnu \ aarch64-unknown-linux-gnu \
wasm32-unknown-unknown \ wasm32-unknown-unknown \
wasm32-wasip2 wasm32-wasip2
RUN cargo install worker-build RUN npm install wrangler
RUN cargo install wasm-bindgen-cli
RUN npm install -D wrangler
ENV PATH="/home/luser/.local/bin:/home/luser/.cargo/bin:${PATH}" ENV PATH="/home/luser/.local/bin:/home/luser/.cargo/bin:${PATH}"
WORKDIR /home/luser
CMD ["/usr/lib/gitea/act_runner/act_runner", "daemon", "--config", "/var/lib/gitea/act_runner.yaml"] CMD ["/usr/lib/gitea/act_runner/act_runner", "daemon", "--config", "/var/lib/gitea/act_runner.yaml"]

View File

@@ -19,5 +19,5 @@ opt-level = 3
lto = true lto = true
strip = true strip = true
[build] #[build]
rustc-wrapper = "/usr/bin/sccache" #rustc-wrapper = "/usr/sbin/sccache"

View File

@@ -1,14 +0,0 @@
FROM alpine:3.22 AS base
RUN --mount=type=cache,target=/var/cache/apk apk add nodejs npm
FROM base AS build
ARG VERSION
RUN --mount=type=cache,target=/var/cache/apk apk add chromium
WORKDIR /src
#ADD git@github.com:ethersphere/bee-dashboard.git#v${VERSION} .
ADD git@github.com:woggioni/bee-dashboard.git#add-redistribution-stats .
RUN PUPPETEER_SKIP_DOWNLOAD=1 npm install
FROM gitea.woggioni.net/woggioni/nginx:v1.29.1 AS final
COPY --from=build /src/build /srv/http
COPY bee-dashboard.conf /etc/nginx/conf.d/bee-dashboard.conf

View File

@@ -1,2 +0,0 @@
/*
Content-Security-Policy: default-src 'self' 'unsafe-inline'; img-src 'self' data:; connect-src 'self' http://localhost:1633 https://xdai.fairdatasociety.org https://rpc.gnosis.gateway.fm https://rpc.gnosischain.com https://rpc.ankr.com;

View File

@@ -1,7 +0,0 @@
server {
listen 8080;
root /srv/http;
location / {
}
}

View File

@@ -1,12 +0,0 @@
FROM alpine:3.22
RUN --mount=type=cache,target=/var/cache/apk apk add python3 pipx
RUN addgroup -S dyndns
RUN adduser -D -S -h /var/lib/dyndns -G dyndns dyndns
ADD --chown=dyndns:dyndns pip.conf /var/lib/dyndns/.pip/pip.conf
USER dyndns
WORKDIR /var/lib/dyndns
RUN pipx install wdyndns
ENV PATH="/var/lib/dyndns/.local/bin:$PATH"

View File

@@ -1,3 +0,0 @@
[global]
index-url = https://gitea.woggioni.net/api/packages/woggioni/pypi/simple
extra-index-url = https://pypi.org/simple

View File

@@ -2,7 +2,7 @@ FROM debian:stable AS build
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt,sharing=locked \ --mount=type=cache,target=/var/lib/apt,sharing=locked \
apt update &&\ apt update &&\
apt install -y python3 python3-dev pipx gcc g++ libffi-dev cargo cmake autoconf swig ninja-build patchelf meson python3-faiss adduser apt install -y python3 python3-dev pipx gcc g++ libffi-dev cargo cmake autoconf swig ninja-build patchelf meson python3-faiss
RUN adduser -u 1000 --system --shell /bin/sh --home /home/jovyan jovyan RUN adduser -u 1000 --system --shell /bin/sh --home /home/jovyan jovyan
USER jovyan USER jovyan
WORKDIR /home/jovyan WORKDIR /home/jovyan
@@ -29,7 +29,7 @@ FROM debian:stable
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt,sharing=locked \ --mount=type=cache,target=/var/lib/apt,sharing=locked \
apt update &&\ apt update &&\
apt install -y python3 adduser apt install -y python3
RUN adduser -u 1000 --system --shell /bin/sh --home /home/jovyan jovyan RUN adduser -u 1000 --system --shell /bin/sh --home /home/jovyan jovyan
USER jovyan USER jovyan
COPY --from=build /home/jovyan /home/jovyan COPY --from=build /home/jovyan /home/jovyan

View File

@@ -1,8 +1,8 @@
ARG NGINX_BRANCH=vanilla
FROM alpine:latest AS base FROM alpine:latest AS base
FROM alpine:latest AS build_stage_1 FROM alpine:latest AS build
ARG NGINX_VERSION LIBRESSL_VERSION=4.1.0 ARG NGINX_VERSION LIBRESSL_VERSION=4.0.0
ENV NGINX_VERSION=${NGINX_VERSION} ENV NGINX_VERSION=${NGINX_VERSION}
RUN --mount=type=cache,target=/var/cache/apk apk update RUN --mount=type=cache,target=/var/cache/apk apk update
RUN --mount=type=cache,target=/var/cache/apk apk add \ RUN --mount=type=cache,target=/var/cache/apk apk add \
@@ -40,10 +40,14 @@ RUN --mount=type=cache,target=/var/cache/apk apk add \
RUN adduser -D luser RUN adduser -D luser
USER luser USER luser
WORKDIR /home/luser WORKDIR /home/luser
# ADD --chown=luser:luser https://boringssl.googlesource.com/boringssl.git boringssl
# RUN grep -qxF 'SET_TARGET_PROPERTIES(crypto PROPERTIES SOVERSION 1)' boringssl/crypto/CMakeLists.txt || echo -e '\nSET_TARGET_PROPERTIES(crypto PROPERTIES SOVERSION 1)' >> boringssl/crypto/CMakeLists.txt
# RUN grep -qxF 'SET_TARGET_PROPERTIES(ssl PROPERTIES SOVERSION 1)' boringssl/ssl/CMakeLists.txt || echo -e '\nSET_TARGET_PROPERTIES(ssl PROPERTIES SOVERSION 1)' >> boringssl/ssl/CMakeLists.txt
# RUN mkdir -p boringssl/build
# RUN cmake -G Ninja -B boringssl/build -S boringssl -DCMAKE_BUILD_TYPE=Release
# RUN cmake --build boringssl/build
#RUN git clone --depth 1 --branch v4.0.0 https://github.com/libressl/portable.git libressl #RUN git clone --depth 1 --branch v4.0.0 https://github.com/libressl/portable.git libressl
#RUN git clone --depth 1 --branch v4.0.0 https://github.com/libressl/portable.git libressl
#ADD --chown=luser:luser git@github.com:libressl/portable.git#v${LIBRESSL_VERSION} libressl
ADD --chown=luser:luser https://cdn.openbsd.org/pub/OpenBSD/LibreSSL/libressl-${LIBRESSL_VERSION}.tar.gz libressl.tgz ADD --chown=luser:luser https://cdn.openbsd.org/pub/OpenBSD/LibreSSL/libressl-${LIBRESSL_VERSION}.tar.gz libressl.tgz
RUN tar -xzf libressl.tgz && mv libressl-${LIBRESSL_VERSION} libressl && rm libressl.tgz RUN tar -xzf libressl.tgz && mv libressl-${LIBRESSL_VERSION} libressl && rm libressl.tgz
RUN mkdir -p libressl/build RUN mkdir -p libressl/build
@@ -57,15 +61,7 @@ RUN cmake -G Ninja -B libressl/build -S libressl \
-DBUILD_SHARED_LIBS=OFF -DBUILD_SHARED_LIBS=OFF
RUN cmake --build libressl/build RUN cmake --build libressl/build
FROM build_stage_1 AS build_stage_2_vanilla
ARG NGINX_VERSION
ADD --chown=luser:luser https://github.com/nginx/nginx.git#release-${NGINX_VERSION} /nginx ADD --chown=luser:luser https://github.com/nginx/nginx.git#release-${NGINX_VERSION} /nginx
FROM build_stage_1 AS build_stage_2_woggioni
ARG NGINX_VERSION
ADD --chown=luser:luser git@github.com:woggioni/nginx.git#release-${NGINX_VERSION} /nginx
FROM build_stage_2_${NGINX_BRANCH} AS build
ADD --chown=luser:luser https://github.com/openresty/headers-more-nginx-module.git /ngx_headers_more ADD --chown=luser:luser https://github.com/openresty/headers-more-nginx-module.git /ngx_headers_more
ADD --chown=luser:luser https://github.com/google/ngx_brotli.git /ngx_brotli ADD --chown=luser:luser https://github.com/google/ngx_brotli.git /ngx_brotli
USER root USER root
@@ -95,10 +91,8 @@ RUN --mount=type=cache,target=/var/cache/apk \
(cd nginx && sh /install.sh) (cd nginx && sh /install.sh)
RUN --mount=type=cache,target=/var/cache/apk apk del .install_deps RUN --mount=type=cache,target=/var/cache/apk apk del .install_deps
COPY --from=build /home/luser/libressl/openssl.cnf /etc/ssl/openssl.cnf
COPY conf/nginx.conf /etc/nginx/nginx.conf COPY conf/nginx.conf /etc/nginx/nginx.conf
COPY conf/nginx.vh.no-default.conf /etc/nginx/conf.d/default.conf COPY conf/nginx.vh.no-default.conf /etc/nginx/conf.d/default.conf
COPY conf/dhparam /etc/nginx/dhparam
LABEL description="NGINX Docker built top of LibreSSL" \ LABEL description="NGINX Docker built top of LibreSSL" \
maintainer="Walter Oggioni <oggioni.walter@gmail.com>" \ maintainer="Walter Oggioni <oggioni.walter@gmail.com>" \

View File

@@ -1,8 +0,0 @@
-----BEGIN DH PARAMETERS-----
MIIBCAKCAQEA//////////+t+FRYortKmq/cViAnPTzx2LnFg84tNpWp4TZBFGQz
+8yTnc4kmz75fS/jY2MMddj2gbICrsRhetPfHtXV/WVhJDP1H18GbtCFY2VVPe0a
87VXE15/V8k1mE8McODmi3fipona8+/och3xWKE2rec1MKzKT0g6eXq8CrGCsyT7
YdEIqUuyyOP7uWrat2DX9GgdT0Kj3jlN9K5W7edjcrsZCwenyO4KbXCeAvzhzffi
7MA0BM0oNC9hkXL+nOmFg/+OTxIy7vKBg8P+OxtMb61zO7X8vC7CIAXFjvGDfRaD
ssbzSibBsu/6iGtCOGEoXJf//////////wIBAg==
-----END DH PARAMETERS-----

View File

@@ -40,15 +40,13 @@ http {
keepalive_disable msie6; keepalive_disable msie6;
# intermediate configuration ssl_protocols TLSv1.3;
ssl_protocols TLSv1.2 TLSv1.3; ssl_ecdh_curve X25519:P-521:P-384;
ssl_ecdh_curve X25519:prime256v1:secp384r1; ssl_ciphers TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-CHACHA20-POLY1305:DHE-RSA-CAMELLIA256-SHA256:DHE-RSA-CAMELLIA256-SHA:AES256-GCM-SHA384:AES256-SHA256:AES256-SHA:CAMELLIA256-SHA256:CAMELLIA256-SHA:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-CAMELLIA128-SHA256:DHE-RSA-CAMELLIA128-SHA:AES128-GCM-SHA256:AES128-SHA256:AES128-SHA:CAMELLIA128-SHA256:CAMELLIA128-SHA;
ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384; ssl_prefer_server_ciphers on;
ssl_prefer_server_ciphers off; ssl_session_cache shared:SSL:1m;
ssl_session_timeout 1h;
# see also ssl_session_ticket_key alternative to stateful session cache
ssl_session_timeout 1d;
ssl_session_cache shared:MozSSL:10m; # about 40000 sessions
ssl_session_tickets off; ssl_session_tickets off;
http2 on; http2 on;

View File

@@ -1,3 +0,0 @@
FROM scratch
ADD benchmark.wasm /benchmark.wasm
CMD ["/benchmark.wasm"]

Binary file not shown.

View File

@@ -1,14 +0,0 @@
FROM alpine:3.22
RUN --mount=type=cache,target=/var/cache/apk apk update
RUN --mount=type=cache,target=/var/cache/apk apk add nodejs npm nushell curl
RUN npm install --global @ethersphere/swarm-cli
RUN addgroup -S ethswarm
RUN adduser -D -S -h /var/lib/ethswarm -s /usr/bin/nu -G ethswarm ethswarm
ADD --chown=ethswarm:ethswarm config.nu /var/lib/ethswarm/.config/nushell/config.nu
USER ethswarm
WORKDIR /var/lib/ethswarm
ENTRYPOINT ["/usr/bin/nu"]

View File

@@ -1,40 +0,0 @@
# config.nu
#
# Installed by:
# version = "0.104.1"
#
# This file is used to override default Nushell settings, define
# (or import) custom commands, or run any other startup tasks.
# See https://www.nushell.sh/book/configuration.html
#
# This file is loaded after env.nu and before login.nu
#
# You can open this file in your default editor using:
# config nu
#
# See `help config nu` for more options
#
# You can remove these comments if you want or leave
# them for future reference.
use std/util "path add"
path add ($env.HOME | path join "bin")
path add ($env.HOME | path join ".local/bin")
path add ($env.HOME | path join ".cargo/bin")
$env.config.show_banner = false
$env.config.history.max_size = 10000
$env.PROMPT_COMMAND = { ||
let username = id -u -n
let hostname = sys host | get hostname
let current_dir = (pwd)
$"($username)@($hostname) ($current_dir)"
}
def --env mkcd [p: string] {
mkdir $p
cd $p
}

View File

@@ -7,7 +7,6 @@ RUN echo " -> Removing unneeded .bat and .ps1 files..." &&\
install -d -m 755 "/opt/" &&\ install -d -m 755 "/opt/" &&\
tar -xf wildfly-${VERSION}.Final.tar.gz &&\ tar -xf wildfly-${VERSION}.Final.tar.gz &&\
cp -R "wildfly-${VERSION}.Final" "/opt/wildfly" &&\ cp -R "wildfly-${VERSION}.Final" "/opt/wildfly" &&\
rm /opt/wildfly/bin/standalone.conf &&\
cd "wildfly-${VERSION}.Final/docs/contrib/scripts/systemd" &&\ cd "wildfly-${VERSION}.Final/docs/contrib/scripts/systemd" &&\
echo " -> Creating wildfly.conf (environment settings)..." &&\ echo " -> Creating wildfly.conf (environment settings)..." &&\
install -D -t "/opt/wildfly/etc/wildfly" -m 644 wildfly.conf &&\ install -D -t "/opt/wildfly/etc/wildfly" -m 644 wildfly.conf &&\
@@ -15,24 +14,15 @@ RUN echo " -> Removing unneeded .bat and .ps1 files..." &&\
install -D -t "/opt/wildfly/bin" -m 755 launch.sh &&\ install -D -t "/opt/wildfly/bin" -m 755 launch.sh &&\
chmod -R u=rwX,g=rwX,o=rX "/opt/wildfly" chmod -R u=rwX,g=rwX,o=rX "/opt/wildfly"
FROM archlinux:latest AS release FROM eclipse-temurin:23-jre-alpine AS release
RUN pacman-key --init RUN adduser wildfly -u 1000 --system -s /bin/sh -h /opt/wildfly
RUN pacman-key --refresh-keys
RUN curl --retry 3 -OJ https://gitea.woggioni.net/api/packages/woggioni/arch/repository.key
RUN pacman-key --add repository.key
RUN pacman-key --lsign-key 0D28BF66FDB45D18D8EBEE5D4C91DADCD00B3F77
RUN --mount=type=bind,source=pacman-gitea-repository.conf,target=pacman-gitea-repository.conf cat pacman-gitea-repository.conf >> /etc/pacman.conf
RUN --mount=type=cache,target=/var/cache/pacman pacman -Syu --noconfirm
RUN --mount=type=cache,target=/var/cache/pacman pacman -S --noconfirm jre21-openjdk
RUN useradd wildfly -u 1000 --system -s /bin/sh -d /opt/wildfly
COPY --from=build /opt/wildfly /opt/wildfly COPY --from=build /opt/wildfly /opt/wildfly
RUN install -d -m 755 -o wildfly /opt/wildfly/standalone/log RUN install -d -m 755 -o wildfly /opt/wildfly/standalone/log
RUN install -d -m 755 -o wildfly /opt/wildfly/standalone/data RUN install -d -m 755 -o wildfly /opt/wildfly/standalone/data
RUN install -d -m 755 -o wildfly /opt/wildfly/standalone/tmp RUN install -d -m 755 -o wildfly /opt/wildfly/standalone/tmp
RUN install -d -m 755 -o wildfly /opt/wildfly/standalone/deployments RUN install -d -m 755 -o wildfly /opt/wildfly/standalone/deployments
RUN chown -R wildfly /opt/wildfly/standalone/configuration RUN chown -R wildfly /opt/wildfly/standalone/configuration
VOLUME ["/opt/wildfly/standalone/tmp", "/opt/wildfly/standalone/data", "/opt/wildfly/standalone/log"] VOLUME ["/opt/wildfly/standalone/deployments", "/opt/wildfly/standalone/tmp", "/opt/wildfly/standalone/data", "/opt/wildfly/standalone/log"]
USER wildfly USER wildfly
WORKDIR /opt/wildfly WORKDIR /opt/wildfly
ENV LAUNCH_JBOSS_IN_BACKGROUND=true ENV LAUNCH_JBOSS_IN_BACKGROUND=true

View File

@@ -1,4 +0,0 @@
[woggioni.gitea.woggioni.net]
SigLevel = Required
Server = https://gitea.woggioni.net/api/packages/woggioni/arch/default/x86_64

View File

@@ -1,15 +0,0 @@
diff --git a/src/donate.h b/src/donate.h
index 206b1b8f..14cdf9ea 100644
--- a/src/donate.h
+++ b/src/donate.h
@@ -37,8 +37,8 @@
* If you plan on changing donations to 0%, please consider making a one-off donation to my wallet:
* XMR: 48edfHu7V9Z84YzzMa6fUueoELZ9ZRXq9VetWzYGzKt52XU5xvqgzYnDK9URnRoJMk1j8nLwEVsaSWJ4fhdUyZijBGUicoD
*/
-constexpr const int kDefaultDonateLevel = 1;
-constexpr const int kMinimumDonateLevel = 1;
+constexpr const int kDefaultDonateLevel = 0;
+constexpr const int kMinimumDonateLevel = 0;
#endif // XMRIG_DONATE_H

View File

@@ -1,51 +0,0 @@
FROM alpine:3.22 AS base
FROM base AS build
ARG VERSION
RUN --mount=type=cache,target=/var/cache/apk apk add gcc g++ musl-dev cmake ninja hwloc-dev libuv-dev openssl-dev git upx
RUN adduser -D -S -h /home/luser luser
WORKDIR /home/luser
USER luser
ADD --chown=luser:luser git@github.com:xmrig/xmrig.git#v${VERSION} xmrig
ADD 001-remove-donation.patch .
RUN mkdir build
WORKDIR xmrig
RUN git apply /home/luser/001-remove-donation.patch
WORKDIR /home/luser
RUN cmake -G Ninja -S xmrig -B build -DCMAKE_BUILD_TYPE=Release \
-DWITH_VAES=TRUE \
-DWITH_RANDOMX=ON \
-DWITH_OPENCL=OFF \
-DWITH_MSR=ON \
-DWITH_CUDA=OFF \
-DWITH_BENCHMARK=OFF \
-DWITH_HWLOC=ON \
-DWITH_HTTP=ON \
-DWITH_SSE41=ON \
-DWITH_AVX2=ON \
-DWITH_ASM=ON \
-DWITH_ARGON2=ON \
-DWITH_ADL=ON \
-DWITH_CN_PICO=ON \
-DWITH_CN_LITE=ON \
-DWITH_CN_HEAVY=ON \
-DWITH_CN_FEMTO=ON \
-DWITH_GHOSTRIDER=ON \
-DWITH_KAWPOW=ON \
-DWITH_ENV_VARS=ON \
-DWITH_RANDOMX=ON
WORKDIR build
RUN ninja
RUN strip -s xmrig
RUN upx -6 xmrig
FROM base AS release
RUN --mount=type=cache,target=/var/cache/apk apk add hwloc libuv openssl
COPY --from=build /home/luser/build/xmrig /usr/local/bin/xmrig
RUN adduser -D -S -h /var/lib/xmrig xmrig
WORKDIR /var/lib/xmrig
USER xmrig
ENTRYPOINT ["/usr/local/bin/xmrig"]