Compare commits
92 Commits
2f96ac363c
...
master
Author | SHA1 | Date | |
---|---|---|---|
b7800f5f0a
|
|||
558591b3d8
|
|||
d633e64180
|
|||
9e7b5c1657
|
|||
5dad514ef4
|
|||
93b67958b9
|
|||
69abf17453
|
|||
75a2d71eab
|
|||
94e2d4ee85
|
|||
e6e2cd331f
|
|||
aaefd685c0
|
|||
e1234495f1
|
|||
28dbece797
|
|||
08952e074e
|
|||
a3e83bf911
|
|||
41a803e4c0
|
|||
ab0ceb2fd7
|
|||
30614158c4
|
|||
4149f86d63
|
|||
34dd0c63e8
|
|||
263d267ac9
|
|||
721923a0ca
|
|||
14948a13e1
|
|||
1267957343
|
|||
51b88a9c49
|
|||
aa1bfcd930
|
|||
8bbe188c86
|
|||
4a5a1ca2c2
|
|||
27a2b85864
|
|||
45b2ba1c25
|
|||
76d1dccc79
|
|||
f3a6d31b1b
|
|||
e62ccd8047
|
|||
a7136a0a0c
|
|||
cf7808488d
|
|||
88713271f7
|
|||
03de7f737a
|
|||
ca5eaa07f6
|
|||
a2511b32e8
|
|||
8b0c982b25
|
|||
90d382be33
|
|||
4b3cf99dc3
|
|||
2c583c08e2
|
|||
907b9a2c1a
|
|||
94c474031e
|
|||
d49736eb2d
|
|||
ac9f368826
|
|||
705e10572a
|
|||
690ba888fa
|
|||
fb0d98868c
|
|||
ced38a9191
|
|||
2cd390176f
|
|||
f06729a944
|
|||
33b98de4d5
|
|||
a65a014d89
|
|||
ed6f53fa75
|
|||
c021a92d14
|
|||
748835c03d
|
|||
36166b97ab
|
|||
3e011f551d
|
|||
6ebbf4840a
|
|||
7cc175d93e
|
|||
1bad8d3b82
|
|||
3a99aef5c5
|
|||
8c596b3a71
|
|||
db5220482a
|
|||
b6ded49e96
|
|||
7e09efc32e
|
|||
6fa839a908
|
|||
f58b5a54eb
|
|||
26ec8a1178
|
|||
0c1c8d1fa8
|
|||
157a1d38e1
|
|||
e301e31aaa
|
|||
d449ec330a
|
|||
00657673d1
|
|||
ff71e27b19
|
|||
cbc9db6d30
|
|||
a1828141be
|
|||
1d46af91b9
|
|||
1eadffb158
|
|||
8115b6e35e
|
|||
80c4ff92aa
|
|||
1127677eaa
|
|||
f5f4ae4a6e
|
|||
160c2c26a3
|
|||
87583e8870
|
|||
99a8b2d591
|
|||
12f90a0dbc
|
|||
369b1dfffc
|
|||
4314cfb2aa
|
|||
22eeb783b8
|
@@ -3,7 +3,7 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
paths:
|
paths:
|
||||||
- 'arch-builder/*'
|
- 'arch-builder/**'
|
||||||
- '.gitea/workflows/build-arch-builder.yaml'
|
- '.gitea/workflows/build-arch-builder.yaml'
|
||||||
jobs:
|
jobs:
|
||||||
"Build arch-builder docker images":
|
"Build arch-builder docker images":
|
||||||
@@ -31,8 +31,8 @@ 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:buildx
|
cache-from: type=registry,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: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
|
||||||
-
|
-
|
||||||
name: Build and push arch-builder kernel images
|
name: Build and push arch-builder kernel images
|
||||||
@@ -44,8 +44,8 @@ jobs:
|
|||||||
pull: true
|
pull: true
|
||||||
tags: |
|
tags: |
|
||||||
"gitea.woggioni.net/woggioni/arch-builder:kernel"
|
"gitea.woggioni.net/woggioni/arch-builder:kernel"
|
||||||
cache-from: type=registry,ref=gitea.woggioni.net/woggioni/arch-builder:buildx
|
cache-from: type=registry,ref=gitea.woggioni.net/woggioni/arch-builder:kernel-buildx
|
||||||
cache-to: type=registry,mode=max,compression=zstd,image-manifest=true,oci-mediatypes=true,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:kernel-buildx
|
||||||
target: kernel
|
target: kernel
|
||||||
-
|
-
|
||||||
name: Build and push arch-builder rust images
|
name: Build and push arch-builder rust images
|
||||||
@@ -57,8 +57,8 @@ jobs:
|
|||||||
pull: true
|
pull: true
|
||||||
tags: |
|
tags: |
|
||||||
"gitea.woggioni.net/woggioni/arch-builder:rust"
|
"gitea.woggioni.net/woggioni/arch-builder:rust"
|
||||||
cache-from: type=registry,ref=gitea.woggioni.net/woggioni/arch-builder:buildx
|
cache-from: type=registry,ref=gitea.woggioni.net/woggioni/arch-builder:rust-buildx
|
||||||
cache-to: type=registry,mode=max,compression=zstd,image-manifest=true,oci-mediatypes=true,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:rust-buildx
|
||||||
target: rust
|
target: rust
|
||||||
-
|
-
|
||||||
name: Build and push arch-builder rust full images
|
name: Build and push arch-builder rust full images
|
||||||
@@ -70,11 +70,11 @@ jobs:
|
|||||||
pull: true
|
pull: true
|
||||||
tags: |
|
tags: |
|
||||||
"gitea.woggioni.net/woggioni/arch-builder:rust-full"
|
"gitea.woggioni.net/woggioni/arch-builder:rust-full"
|
||||||
cache-from: type=registry,ref=gitea.woggioni.net/woggioni/arch-builder:buildx
|
cache-from: type=registry,ref=gitea.woggioni.net/woggioni/arch-builder:rust-full-buildx
|
||||||
cache-to: type=registry,mode=max,compression=zstd,image-manifest=true,oci-mediatypes=true,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:rust-full-buildx
|
||||||
target: rust-full
|
target: rust-full
|
||||||
-
|
-
|
||||||
name: Build and push arch-builder rust images
|
name: Build and push arch-builder gitea_act_runner images
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
context: "{{defaultContext}}:arch-builder"
|
context: "{{defaultContext}}:arch-builder"
|
||||||
@@ -82,8 +82,7 @@ jobs:
|
|||||||
push: true
|
push: true
|
||||||
pull: true
|
pull: true
|
||||||
tags: |
|
tags: |
|
||||||
"gitea.woggioni.net/woggioni/arch-builder:rust-full-rootless"
|
"gitea.woggioni.net/woggioni/arch-builder:gitea_act_runner"
|
||||||
"gitea.woggioni.net/woggioni/arch-builder:latest"
|
cache-from: type=registry,ref=gitea.woggioni.net/woggioni/arch-builder:gitea-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:gitea-buildx
|
||||||
cache-to: type=registry,mode=max,compression=zstd,image-manifest=true,oci-mediatypes=true,ref=gitea.woggioni.net/woggioni/arch-builder:buildx
|
target: gitea_act_runner
|
||||||
target: rust-full-rootless
|
|
||||||
|
60
.gitea/workflows/build-bee-dashboard.yaml
Normal file
60
.gitea/workflows/build-bee-dashboard.yaml
Normal file
@@ -0,0 +1,60 @@
|
|||||||
|
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
|
41
.gitea/workflows/build-dyndns.yaml
Normal file
41
.gitea/workflows/build-dyndns.yaml
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
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
|
||||||
|
|
@@ -3,11 +3,11 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
paths:
|
paths:
|
||||||
- 'jenkins-agent/*'
|
- 'jenkins-agent/**'
|
||||||
- '.gitea/workflows/build-jenkins-agent.yaml'
|
- '.gitea/workflows/build-jenkins-agent.yaml'
|
||||||
jobs:
|
jobs:
|
||||||
"Build jenkins-agent docker images":
|
"Build jenkins-agent docker images":
|
||||||
runs-on: woryzen
|
runs-on: hostinger
|
||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Set up Docker Buildx
|
name: Set up Docker Buildx
|
||||||
|
@@ -26,12 +26,12 @@ jobs:
|
|||||||
password: ${{ secrets.PUBLISHER_TOKEN }}
|
password: ${{ secrets.PUBLISHER_TOKEN }}
|
||||||
-
|
-
|
||||||
name: Build and push jupyter-ganymede image
|
name: Build and push jupyter-ganymede image
|
||||||
uses: docker/build-push-action@v5.3.0
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
context: "{{defaultContext}}:jupyter-ganymede"
|
context: "{{defaultContext}}:jupyter-ganymede"
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
push: true
|
push: true
|
||||||
pull: true
|
pull: true
|
||||||
tags: gitea.woggioni.net/woggioni/jupyter-ganymede:latest
|
tags: gitea.woggioni.net/woggioni/jupyter-ganymede:latest
|
||||||
cache-from: type=registry,ref=gitea.woggioni.net/woggioni/jupyter-ganymede:buildx
|
cache-from: type=local,src=/home/luser/.cache/buildx
|
||||||
cache-to: type=registry,mode=max,compression=zstd,image-manifest=true,oci-mediatypes=true,ref=gitea.woggioni.net/woggioni/jupyter-ganymede:buildx
|
cache-to: type=local,dest=/home/luser/.cache/buildx,mode=max
|
||||||
|
@@ -3,11 +3,11 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
paths:
|
paths:
|
||||||
- 'jupyter-python/*'
|
- 'jupyter-python/**'
|
||||||
- '.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: woryzen
|
runs-on: hostinger
|
||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Set up QEMU
|
name: Set up QEMU
|
||||||
|
37
.gitea/workflows/build-jupyterhub.yaml
Normal file
37
.gitea/workflows/build-jupyterhub.yaml
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
name: CI
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ master ]
|
||||||
|
paths:
|
||||||
|
- 'jupyterhub/**'
|
||||||
|
- '.gitea/workflows/build-jupyterhub.yaml'
|
||||||
|
jobs:
|
||||||
|
"Build jupyterhub 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 jupyterhub images
|
||||||
|
uses: docker/build-push-action@v6
|
||||||
|
with:
|
||||||
|
context: "{{defaultContext}}:jupyterhub"
|
||||||
|
push: true
|
||||||
|
pull: true
|
||||||
|
tags: |
|
||||||
|
"gitea.woggioni.net/woggioni/jupyterhub:latest"
|
||||||
|
"gitea.woggioni.net/woggioni/jupyterhub:5.3.0"
|
||||||
|
build-args: "VERSION=5.3.0"
|
||||||
|
cache-from: type=registry,ref=gitea.woggioni.net/woggioni/jupyterhub:buildx
|
||||||
|
cache-to: type=registry,mode=max,compression=zstd,image-manifest=true,oci-mediatypes=true,ref=gitea.woggioni.net/woggioni/jupyterhub:buildx
|
||||||
|
|
68
.gitea/workflows/build-nginx.yaml
Normal file
68
.gitea/workflows/build-nginx.yaml
Normal file
@@ -0,0 +1,68 @@
|
|||||||
|
name: CI
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ master ]
|
||||||
|
paths:
|
||||||
|
- 'nginx/**'
|
||||||
|
- '.gitea/workflows/build-nginx.yaml'
|
||||||
|
jobs:
|
||||||
|
"Build nginx 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 nginx vanilla 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:latest"
|
||||||
|
"gitea.woggioni.net/woggioni/nginx:v1.29.1"
|
||||||
|
secrets: |
|
||||||
|
GIT_AUTH_TOKEN.github.com=${{ secrets.GH_ACCESS_TOKEN }}
|
||||||
|
build-args: |
|
||||||
|
NGINX_VERSION=1.29.1
|
||||||
|
NGINX_BRANCH=vanilla
|
||||||
|
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
|
37
.gitea/workflows/build-pgvector.yaml
Normal file
37
.gitea/workflows/build-pgvector.yaml
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
name: CI
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ master ]
|
||||||
|
paths:
|
||||||
|
- 'pgvector/**'
|
||||||
|
- '.gitea/workflows/build-pgvector.yaml'
|
||||||
|
jobs:
|
||||||
|
"Build wildfly docker images":
|
||||||
|
runs-on: hostinger
|
||||||
|
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 pgvector images
|
||||||
|
uses: docker/build-push-action@v6
|
||||||
|
with:
|
||||||
|
context: "{{defaultContext}}:pgvector"
|
||||||
|
push: true
|
||||||
|
pull: true
|
||||||
|
tags: |
|
||||||
|
"gitea.woggioni.net/woggioni/pgvector:latest"
|
||||||
|
"gitea.woggioni.net/woggioni/pgvector:0.8.0-pg17"
|
||||||
|
build-args: "PG_VERSION=17"
|
||||||
|
cache-from: type=registry,ref=gitea.woggioni.net/woggioni/pgvector:buildx
|
||||||
|
cache-to: type=registry,mode=max,compression=zstd,image-manifest=true,oci-mediatypes=true,ref=gitea.woggioni.net/woggioni/pgvector:buildx
|
||||||
|
|
43
.gitea/workflows/build-rlevtree.yaml
Normal file
43
.gitea/workflows/build-rlevtree.yaml
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
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
|
||||||
|
|
@@ -36,8 +36,8 @@ jobs:
|
|||||||
pull: true
|
pull: true
|
||||||
tags: |
|
tags: |
|
||||||
"gitea.woggioni.net/woggioni/sserver-rust:latest"
|
"gitea.woggioni.net/woggioni/sserver-rust:latest"
|
||||||
"gitea.woggioni.net/woggioni/sserver-rust:v1.20.4"
|
"gitea.woggioni.net/woggioni/sserver-rust:v1.23.5"
|
||||||
build-args: "VERSION=1.20.4"
|
build-args: "VERSION=1.23.5"
|
||||||
cache-from: type=registry,ref=gitea.woggioni.net/woggioni/sserver-rust:buildx
|
cache-from: type=registry,ref=gitea.woggioni.net/woggioni/sserver-rust:buildx
|
||||||
cache-to: type=registry,mode=max,compression=zstd,image-manifest=true,oci-mediatypes=true,ref=gitea.woggioni.net/woggioni/sserver-rust:buildx
|
cache-to: type=registry,mode=max,compression=zstd,image-manifest=true,oci-mediatypes=true,ref=gitea.woggioni.net/woggioni/sserver-rust:buildx
|
||||||
|
|
||||||
|
41
.gitea/workflows/build-swarm-cli.yaml
Normal file
41
.gitea/workflows/build-swarm-cli.yaml
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
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
|
||||||
|
|
37
.gitea/workflows/build-wildfly.yaml
Normal file
37
.gitea/workflows/build-wildfly.yaml
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
name: CI
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ master ]
|
||||||
|
paths:
|
||||||
|
- 'wildfly/**'
|
||||||
|
- '.gitea/workflows/build-wildfly.yaml'
|
||||||
|
jobs:
|
||||||
|
"Build wildfly docker images":
|
||||||
|
runs-on: hostinger
|
||||||
|
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 wildfly images
|
||||||
|
uses: docker/build-push-action@v6
|
||||||
|
with:
|
||||||
|
context: "{{defaultContext}}:wildfly"
|
||||||
|
push: true
|
||||||
|
pull: true
|
||||||
|
tags: |
|
||||||
|
"gitea.woggioni.net/woggioni/wildfly:latest"
|
||||||
|
"gitea.woggioni.net/woggioni/wildfly:37.0.1"
|
||||||
|
build-args: "VERSION=37.0.1"
|
||||||
|
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
|
||||||
|
|
38
.gitea/workflows/build-xmrig.yaml
Normal file
38
.gitea/workflows/build-xmrig.yaml
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
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
|
||||||
|
|
@@ -4,38 +4,42 @@ COPY mirrorlist /etc/pacman.d/mirrolist
|
|||||||
|
|
||||||
RUN pacman-key --init
|
RUN pacman-key --init
|
||||||
RUN pacman-key --refresh-keys
|
RUN pacman-key --refresh-keys
|
||||||
RUN pacman -Syu --noconfirm
|
|
||||||
RUN pacman -S --noconfirm --needed curl rustup
|
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 rm repository.key
|
||||||
|
RUN --mount=type=cache,target=/var/cache/pacman pacman -Syu --noconfirm
|
||||||
|
RUN --mount=type=cache,target=/var/cache/pacman pacman -S --noconfirm --needed \
|
||||||
|
curl \
|
||||||
|
aarch64-unknown-linux-musl-gcc x86_64-unknown-linux-musl-gcc \
|
||||||
|
arm-unknown-linux-musleabihf-gcc \
|
||||||
|
arm-unknown-linux-musleabi-gcc \
|
||||||
|
x86_64-unknown-linux-musl-gcc \
|
||||||
|
x86_64-w64-mingw32-gcc \
|
||||||
|
aarch64-unknown-linux-musl-gcc x86_64-unknown-linux-musl-zlib \
|
||||||
|
arm-unknown-linux-musleabihf-zlib \
|
||||||
|
arm-unknown-linux-musleabi-zlib \
|
||||||
|
x86_64-unknown-linux-musl-zlib \
|
||||||
|
x86_64-w64-mingw32-zlib
|
||||||
|
|
||||||
|
|
||||||
RUN mkdir downloads
|
RUN mkdir downloads
|
||||||
RUN curl --retry 3 https://gitea.woggioni.net/api/packages/woggioni/generic/aarch64-unknown-linux-musl-gcc/13.2.0/aarch64-unknown-linux-musl-gcc-13.2.0-1-x86_64.pkg.tar.zst \
|
|
||||||
-o downloads/aarch64-unknown-linux-musl-gcc-13.2.0-1-x86_64.pkg.tar.zst
|
|
||||||
RUN ln -s /opt/x-tools/aarch64-unknown-linux-musl/bin/aarch64-unknown-linux-musl-gcc /usr/local/bin/aarch64-linux-musl-gcc
|
RUN ln -s /opt/x-tools/aarch64-unknown-linux-musl/bin/aarch64-unknown-linux-musl-gcc /usr/local/bin/aarch64-linux-musl-gcc
|
||||||
|
RUN ln -s /opt/x-tools/x86_64-unknown-linux-musl/bin/x86_64-unknown-linux-musl-gcc /usr/local/bin/x86_64-linux-musl-gcc
|
||||||
RUN curl --retry 3 https://gitea.woggioni.net/api/packages/woggioni/generic/x86_64-unknown-linux-musl-gcc/13.2.0/x86_64-unknown-linux-musl-gcc-13.2.0-1-x86_64.pkg.tar.zst \
|
|
||||||
-o downloads/x86_64-unknown-linux-musl-gcc-13.2.0-1-x86_64.pkg.tar.zst
|
|
||||||
RUN ln -s /opt/x-tools/x86_64-woggioni-linux-musl/bin/x86_64-woggioni-linux-musl-gcc /usr/local/bin/x86_64-linux-musl-gcc
|
|
||||||
|
|
||||||
RUN curl --retry 3 https://gitea.woggioni.net/api/packages/woggioni/generic/arm-unknown-linux-musleabihf-gcc/13.2.0/arm-unknown-linux-musleabihf-gcc-13.2.0-1-x86_64.pkg.tar.zst \
|
|
||||||
-o downloads/arm-unknown-linux-musleabihf-gcc-13.2.0-1-x86_64.pkg.tar.zst
|
|
||||||
RUN ln -s /opt/x-tools/arm-unknown-linux-musleabihf/bin/arm-unknown-linux-musleabihf-gcc /usr/local/bin/arm-linux-musleabihf-gcc
|
RUN ln -s /opt/x-tools/arm-unknown-linux-musleabihf/bin/arm-unknown-linux-musleabihf-gcc /usr/local/bin/arm-linux-musleabihf-gcc
|
||||||
|
|
||||||
RUN curl --retry 3 https://gitea.woggioni.net/api/packages/woggioni/generic/arm-unknown-linux-musleabi-gcc/13.2.0/arm-unknown-linux-musleabi-gcc-13.2.0-1-x86_64.pkg.tar.zst \
|
|
||||||
-o downloads/arm-unknown-linux-musleabi-gcc-13.2.0-1-x86_64.pkg.tar.zst
|
|
||||||
RUN ln -s /opt/x-tools/arm-unknown-linux-musleabihf/bin/arm-unknown-linux-musleabi-gcc /usr/local/bin/arm-linux-musleabi-gcc
|
RUN ln -s /opt/x-tools/arm-unknown-linux-musleabihf/bin/arm-unknown-linux-musleabi-gcc /usr/local/bin/arm-linux-musleabi-gcc
|
||||||
|
|
||||||
RUN curl --retry 3 https://gitea.woggioni.net/api/packages/woggioni/generic/x86_64-w64-mingw32-gcc/13.2.0/x86_64-w64-mingw32-gcc-13.2.0-1-x86_64.pkg.tar.zst \
|
|
||||||
-o downloads/x86_64-w64-mingw32-gcc-13.2.0-1-x86_64.pkg.tar.zst
|
|
||||||
RUN ln -s /opt/x-tools/x86_64-w64-mingw32/bin/x86_64-w64-mingw32-gcc /usr/local/bin/x86_64-pc-windows-gnu-gcc
|
RUN ln -s /opt/x-tools/x86_64-w64-mingw32/bin/x86_64-w64-mingw32-gcc /usr/local/bin/x86_64-pc-windows-gnu-gcc
|
||||||
|
|
||||||
RUN pacman -U downloads/*.pkg.tar.* --noconfirm
|
|
||||||
RUN rm -rf downloads
|
|
||||||
|
|
||||||
COPY makepkg/* /etc/
|
COPY makepkg/* /etc/
|
||||||
|
|
||||||
RUN useradd luser -G users -u 1000 -s /bin/bash -m -d /home/luser
|
RUN useradd luser -G users -u 1000 -s /bin/bash -m -d /home/luser
|
||||||
|
|
||||||
RUN pacman -S --noconfirm --needed \
|
RUN --mount=type=cache,target=/var/cache/pacman pacman -S --noconfirm --needed \
|
||||||
git \
|
git \
|
||||||
cmake \
|
cmake \
|
||||||
base-devel \
|
base-devel \
|
||||||
@@ -50,7 +54,7 @@ RUN pacman -S --noconfirm --needed \
|
|||||||
upx
|
upx
|
||||||
|
|
||||||
FROM base AS kernel
|
FROM base AS kernel
|
||||||
RUN pacman -S --noconfirm --needed \
|
RUN --mount=type=cache,target=/var/cache/pacman pacman -S --noconfirm --needed \
|
||||||
jre21-openjdk \
|
jre21-openjdk \
|
||||||
bc \
|
bc \
|
||||||
cpio \
|
cpio \
|
||||||
@@ -67,32 +71,67 @@ RUN pacman -S --noconfirm --needed \
|
|||||||
python-sphinx \
|
python-sphinx \
|
||||||
python-yaml \
|
python-yaml \
|
||||||
openssh \
|
openssh \
|
||||||
|
rust \
|
||||||
|
rust-src \
|
||||||
|
rust-bindgen \
|
||||||
texlive-latexextra
|
texlive-latexextra
|
||||||
USER luser
|
USER luser
|
||||||
WORKDIR /home/luser
|
WORKDIR /home/luser
|
||||||
|
|
||||||
FROM base AS rust
|
FROM base AS rust
|
||||||
RUN mkdir -p /etc/cargo
|
RUN mkdir -p /etc/cargo
|
||||||
COPY config.toml /.cargo/
|
COPY --chown=1000:1000 config.toml /home/luser/.cargo/config.toml
|
||||||
RUN pacman -S --noconfirm --needed \
|
COPY --chown=1000:1000 sccache_config.toml /home/luser/.config/sccache/config
|
||||||
|
RUN --mount=type=cache,target=/var/cache/pacman pacman -S --noconfirm --needed \
|
||||||
rustup \
|
rustup \
|
||||||
|
trunk \
|
||||||
|
sccache \
|
||||||
llvm \
|
llvm \
|
||||||
clang
|
clang
|
||||||
|
|
||||||
FROM rust AS rust-full
|
FROM rust AS rust-full
|
||||||
RUN pacman -S --noconfirm --needed \
|
RUN --mount=type=cache,target=/var/cache/pacman pacman -S --noconfirm --needed \
|
||||||
hidapi \
|
hidapi \
|
||||||
protobuf
|
protobuf
|
||||||
|
|
||||||
FROM rust-full AS rust-full-rootless
|
|
||||||
USER luser
|
USER luser
|
||||||
WORKDIR /home/luser
|
WORKDIR /home/luser
|
||||||
RUN mkdir .cargo
|
RUN rustup update
|
||||||
RUN rustup toolchain install stable-x86_64-unknown-linux-gnu
|
RUN rustup toolchain install stable-x86_64-unknown-linux-gnu --profile minimal
|
||||||
|
RUN rustup component add rustfmt
|
||||||
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 \
|
||||||
wasm32-wasi \
|
|
||||||
armv7-unknown-linux-musleabihf \
|
armv7-unknown-linux-musleabihf \
|
||||||
arm-unknown-linux-musleabi \
|
arm-unknown-linux-musleabi \
|
||||||
aarch64-unknown-linux-musl \
|
aarch64-unknown-linux-musl \
|
||||||
aarch64-unknown-linux-gnu
|
aarch64-unknown-linux-gnu \
|
||||||
|
wasm32-unknown-unknown \
|
||||||
|
wasm32-wasip2
|
||||||
|
|
||||||
|
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 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 usermod -a luser -G docker
|
||||||
|
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 component add rustfmt
|
||||||
|
RUN rustup component add clippy
|
||||||
|
RUN rustup target add \
|
||||||
|
x86_64-unknown-linux-musl \
|
||||||
|
x86_64-unknown-linux-gnu \
|
||||||
|
armv7-unknown-linux-musleabihf \
|
||||||
|
arm-unknown-linux-musleabi \
|
||||||
|
aarch64-unknown-linux-musl \
|
||||||
|
aarch64-unknown-linux-gnu \
|
||||||
|
wasm32-unknown-unknown \
|
||||||
|
wasm32-wasip2
|
||||||
|
RUN cargo install worker-build
|
||||||
|
RUN cargo install wasm-bindgen-cli
|
||||||
|
RUN npm install -D wrangler
|
||||||
|
ENV PATH="/home/luser/.local/bin:/home/luser/.cargo/bin:${PATH}"
|
||||||
|
CMD ["/usr/lib/gitea/act_runner/act_runner", "daemon", "--config", "/var/lib/gitea/act_runner.yaml"]
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
[target.aarch64-unknown-linux-musl]
|
[target.aarch64-unknown-linux-musl]
|
||||||
linker = "/opt/x-tools/aarch64-unknown-linux-musl/bin/aarch64-unknown-linux-musl-ld"
|
linker = "/opt/x-tools/aarch64-unknown-linux-musl/bin/aarch64-unknown-linux-musl-ld"
|
||||||
[target.x86_64-unknown-linux-musl]
|
[target.x86_64-unknown-linux-musl]
|
||||||
linker = "/opt/x-tools/x86_64-woggioni-linux-musl/bin/x86_64-woggioni-linux-musl-ld"
|
linker = "/opt/x-tools/x86_64-unknown-linux-musl/bin/x86_64-unknown-linux-musl-ld"
|
||||||
[target.x86_64-pc-windows-gnu]
|
[target.x86_64-pc-windows-gnu]
|
||||||
linker = "/opt/x-tools/x86_64-w64-mingw32/bin/x86_64-w64-mingw32-gcc"
|
linker = "/opt/x-tools/x86_64-w64-mingw32/bin/x86_64-w64-mingw32-gcc"
|
||||||
[target.armv7-unknown-linux-musleabihf]
|
[target.armv7-unknown-linux-musleabihf]
|
||||||
@@ -14,5 +14,10 @@ index = "sparse+https://gitea.woggioni.net/api/packages/woggioni/cargo/"
|
|||||||
[net]
|
[net]
|
||||||
git-fetch-with-cli = true
|
git-fetch-with-cli = true
|
||||||
|
|
||||||
#[build]
|
[profile.release]
|
||||||
#rustc-wrapper = "/usr/bin/sccache"
|
opt-level = 3
|
||||||
|
lto = true
|
||||||
|
strip = true
|
||||||
|
|
||||||
|
[build]
|
||||||
|
rustc-wrapper = "/usr/bin/sccache"
|
||||||
|
@@ -43,11 +43,13 @@ CFLAGS="-march=armv8-a -O3 -pipe -fstack-protector-strong -fno-plt -fexceptions
|
|||||||
-fstack-clash-protection \
|
-fstack-clash-protection \
|
||||||
-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer"
|
-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer"
|
||||||
CXXFLAGS="$CFLAGS -Wp,-D_GLIBCXX_ASSERTIONS"
|
CXXFLAGS="$CFLAGS -Wp,-D_GLIBCXX_ASSERTIONS"
|
||||||
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now"
|
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now \
|
||||||
|
-Wl,-z,pack-relative-relocs"
|
||||||
LTOFLAGS="-flto=auto"
|
LTOFLAGS="-flto=auto"
|
||||||
|
|
||||||
#RUSTFLAGS="-C opt-level=2"
|
#RUSTFLAGS="-C opt-level=2"
|
||||||
#-- Make Flags: change this for DistCC/SMP systems
|
#-- Make Flags: change this for DistCC/SMP systems
|
||||||
MAKEFLAGS="-j16"
|
MAKEFLAGS="--jobs=$(nproc)"
|
||||||
#-- Debugging flags
|
#-- Debugging flags
|
||||||
DEBUG_CFLAGS="-g -fvar-tracking-assignments"
|
DEBUG_CFLAGS="-g -fvar-tracking-assignments"
|
||||||
DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"
|
DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"
|
||||||
@@ -93,7 +95,7 @@ BUILDENV=(!distcc color ccache check !sign)
|
|||||||
#-- debug: Add debugging flags as specified in DEBUG_* variables
|
#-- debug: Add debugging flags as specified in DEBUG_* variables
|
||||||
#-- lto: Add compile flags for building with link time optimization
|
#-- lto: Add compile flags for building with link time optimization
|
||||||
#
|
#
|
||||||
OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug !lto)
|
OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug lto)
|
||||||
|
|
||||||
#-- File integrity checks to use. Valid: md5, sha1, sha224, sha256, sha384, sha512, b2
|
#-- File integrity checks to use. Valid: md5, sha1, sha224, sha256, sha384, sha512, b2
|
||||||
INTEGRITY_CHECK=(sha256)
|
INTEGRITY_CHECK=(sha256)
|
||||||
@@ -137,8 +139,8 @@ DBGSRCDIR="/usr/src/debug"
|
|||||||
#
|
#
|
||||||
COMPRESSGZ=(gzip -c -f -n)
|
COMPRESSGZ=(gzip -c -f -n)
|
||||||
COMPRESSBZ2=(bzip2 -c -f)
|
COMPRESSBZ2=(bzip2 -c -f)
|
||||||
COMPRESSXZ=(xz -c -z -)
|
COMPRESSXZ=(xz -9 -c -z -)
|
||||||
COMPRESSZST=(zstd -c -z -q -)
|
COMPRESSZST=(zstd -14 -c -T0 -)
|
||||||
COMPRESSLRZ=(lrzip -q)
|
COMPRESSLRZ=(lrzip -q)
|
||||||
COMPRESSLZO=(lzop -q)
|
COMPRESSLZO=(lzop -q)
|
||||||
COMPRESSZ=(compress -c -f)
|
COMPRESSZ=(compress -c -f)
|
||||||
|
@@ -40,11 +40,13 @@ CHOST="x86_64-pc-linux-gnu"
|
|||||||
#CPPFLAGS=""
|
#CPPFLAGS=""
|
||||||
CFLAGS="-march=armv7-a+simd -mfloat-abi=hard -mfpu=vfpv3-d16 -O3 -pipe -fstack-protector-strong -fno-plt"
|
CFLAGS="-march=armv7-a+simd -mfloat-abi=hard -mfpu=vfpv3-d16 -O3 -pipe -fstack-protector-strong -fno-plt"
|
||||||
CXXFLAGS="$CFLAGS -Wp,-D_GLIBCXX_ASSERTIONS"
|
CXXFLAGS="$CFLAGS -Wp,-D_GLIBCXX_ASSERTIONS"
|
||||||
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now"
|
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now \
|
||||||
|
-Wl,-z,pack-relative-relocs"
|
||||||
LTOFLAGS="-flto=auto"
|
LTOFLAGS="-flto=auto"
|
||||||
|
|
||||||
#RUSTFLAGS="-C opt-level=2"
|
#RUSTFLAGS="-C opt-level=2"
|
||||||
#-- Make Flags: change this for DistCC/SMP systems
|
#-- Make Flags: change this for DistCC/SMP systems
|
||||||
MAKEFLAGS="-j16"
|
MAKEFLAGS="--jobs=$(nproc)"
|
||||||
#-- Debugging flags
|
#-- Debugging flags
|
||||||
DEBUG_CFLAGS="-g -fvar-tracking-assignments"
|
DEBUG_CFLAGS="-g -fvar-tracking-assignments"
|
||||||
DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"
|
DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"
|
||||||
@@ -90,7 +92,7 @@ BUILDENV=(!distcc color ccache check !sign)
|
|||||||
#-- debug: Add debugging flags as specified in DEBUG_* variables
|
#-- debug: Add debugging flags as specified in DEBUG_* variables
|
||||||
#-- lto: Add compile flags for building with link time optimization
|
#-- lto: Add compile flags for building with link time optimization
|
||||||
#
|
#
|
||||||
OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug !lto)
|
OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug lto)
|
||||||
|
|
||||||
#-- File integrity checks to use. Valid: md5, sha1, sha224, sha256, sha384, sha512, b2
|
#-- File integrity checks to use. Valid: md5, sha1, sha224, sha256, sha384, sha512, b2
|
||||||
INTEGRITY_CHECK=(sha256)
|
INTEGRITY_CHECK=(sha256)
|
||||||
@@ -134,8 +136,8 @@ DBGSRCDIR="/usr/src/debug"
|
|||||||
#
|
#
|
||||||
COMPRESSGZ=(gzip -c -f -n)
|
COMPRESSGZ=(gzip -c -f -n)
|
||||||
COMPRESSBZ2=(bzip2 -c -f)
|
COMPRESSBZ2=(bzip2 -c -f)
|
||||||
COMPRESSXZ=(xz -c -z -)
|
COMPRESSXZ=(xz -9 -c -z -)
|
||||||
COMPRESSZST=(zstd -c -z -q -)
|
COMPRESSZST=(zstd -14 -c -T0 -)
|
||||||
COMPRESSLRZ=(lrzip -q)
|
COMPRESSLRZ=(lrzip -q)
|
||||||
COMPRESSLZO=(lzop -q)
|
COMPRESSLZO=(lzop -q)
|
||||||
COMPRESSZ=(compress -c -f)
|
COMPRESSZ=(compress -c -f)
|
||||||
|
153
arch-builder/makepkg/makepkg-atom.conf
Normal file
153
arch-builder/makepkg/makepkg-atom.conf
Normal file
@@ -0,0 +1,153 @@
|
|||||||
|
#!/hint/bash
|
||||||
|
#
|
||||||
|
# /etc/makepkg.conf
|
||||||
|
#
|
||||||
|
|
||||||
|
#########################################################################
|
||||||
|
# SOURCE ACQUISITION
|
||||||
|
#########################################################################
|
||||||
|
#
|
||||||
|
#-- The download utilities that makepkg should use to acquire sources
|
||||||
|
# Format: 'protocol::agent'
|
||||||
|
DLAGENTS=('file::/usr/bin/curl -gqC - -o %o %u'
|
||||||
|
'ftp::/usr/bin/curl -gqfC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u'
|
||||||
|
'http::/usr/bin/curl -gqb "" -fLC - --retry 3 --retry-delay 3 -o %o %u'
|
||||||
|
'https::/usr/bin/curl -gqb "" -fLC - --retry 3 --retry-delay 3 -o %o %u'
|
||||||
|
'rsync::/usr/bin/rsync --no-motd -z %u %o'
|
||||||
|
'scp::/usr/bin/scp -C %u %o')
|
||||||
|
|
||||||
|
# Other common tools:
|
||||||
|
# /usr/bin/snarf
|
||||||
|
# /usr/bin/lftpget -c
|
||||||
|
# /usr/bin/wget
|
||||||
|
|
||||||
|
#-- The package required by makepkg to download VCS sources
|
||||||
|
# Format: 'protocol::package'
|
||||||
|
VCSCLIENTS=('bzr::bzr'
|
||||||
|
'git::git'
|
||||||
|
'hg::mercurial'
|
||||||
|
'svn::subversion')
|
||||||
|
|
||||||
|
#########################################################################
|
||||||
|
# ARCHITECTURE, COMPILE FLAGS
|
||||||
|
#########################################################################
|
||||||
|
#
|
||||||
|
CARCH="x86_64"
|
||||||
|
CHOST="x86_64-pc-linux-gnu"
|
||||||
|
|
||||||
|
#-- Compiler and Linker Flags
|
||||||
|
#CPPFLAGS=""
|
||||||
|
CFLAGS="-march=atom -mtune=atom -O3 -pipe -fno-plt -fexceptions \
|
||||||
|
-Wp,-D_FORTIFY_SOURCE=2,-D_GLIBCXX_ASSERTIONS \
|
||||||
|
-Wformat -Werror=format-security \
|
||||||
|
-fstack-clash-protection -fcf-protection"
|
||||||
|
CXXFLAGS="$CFLAGS"
|
||||||
|
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now \
|
||||||
|
-Wl,-z,pack-relative-relocs"
|
||||||
|
LTOFLAGS="-flto=auto"
|
||||||
|
|
||||||
|
#RUSTFLAGS="-C opt-level=2"
|
||||||
|
#-- Make Flags: change this for DistCC/SMP systems
|
||||||
|
MAKEFLAGS="--jobs=$(nproc)"
|
||||||
|
#-- Debugging flags
|
||||||
|
DEBUG_CFLAGS="-g -fvar-tracking-assignments"
|
||||||
|
DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"
|
||||||
|
#DEBUG_RUSTFLAGS="-C debuginfo=2"
|
||||||
|
|
||||||
|
#########################################################################
|
||||||
|
# BUILD ENVIRONMENT
|
||||||
|
#########################################################################
|
||||||
|
#
|
||||||
|
# Defaults: BUILDENV=(!distcc !color !ccache check !sign)
|
||||||
|
# A negated environment option will do the opposite of the comments below.
|
||||||
|
#
|
||||||
|
#-- distcc: Use the Distributed C/C++/ObjC compiler
|
||||||
|
#-- color: Colorize output messages
|
||||||
|
#-- ccache: Use ccache to cache compilation
|
||||||
|
#-- check: Run the check() function if present in the PKGBUILD
|
||||||
|
#-- sign: Generate PGP signature file
|
||||||
|
#
|
||||||
|
BUILDENV=(!distcc color ccache check !sign)
|
||||||
|
#
|
||||||
|
#-- If using DistCC, your MAKEFLAGS will also need modification. In addition,
|
||||||
|
#-- specify a space-delimited list of hosts running in the DistCC cluster.
|
||||||
|
#DISTCC_HOSTS=""
|
||||||
|
#
|
||||||
|
#-- Specify a directory for package building.
|
||||||
|
#BUILDDIR=/tmp/makepkg
|
||||||
|
|
||||||
|
#########################################################################
|
||||||
|
# GLOBAL PACKAGE OPTIONS
|
||||||
|
# These are default values for the options=() settings
|
||||||
|
#########################################################################
|
||||||
|
#
|
||||||
|
# Default: OPTIONS=(!strip docs libtool staticlibs emptydirs !zipman !purge !debug)
|
||||||
|
# A negated option will do the opposite of the comments below.
|
||||||
|
#
|
||||||
|
#-- strip: Strip symbols from binaries/libraries
|
||||||
|
#-- docs: Save doc directories specified by DOC_DIRS
|
||||||
|
#-- libtool: Leave libtool (.la) files in packages
|
||||||
|
#-- staticlibs: Leave static library (.a) files in packages
|
||||||
|
#-- emptydirs: Leave empty directories in packages
|
||||||
|
#-- zipman: Compress manual (man and info) pages in MAN_DIRS with gzip
|
||||||
|
#-- purge: Remove files specified by PURGE_TARGETS
|
||||||
|
#-- debug: Add debugging flags as specified in DEBUG_* variables
|
||||||
|
#
|
||||||
|
OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug lto)
|
||||||
|
|
||||||
|
#-- File integrity checks to use. Valid: md5, sha1, sha224, sha256, sha384, sha512, b2
|
||||||
|
INTEGRITY_CHECK=(md5)
|
||||||
|
#-- Options to be used when stripping binaries. See `man strip' for details.
|
||||||
|
STRIP_BINARIES="--strip-all"
|
||||||
|
#-- Options to be used when stripping shared libraries. See `man strip' for details.
|
||||||
|
STRIP_SHARED="--strip-unneeded"
|
||||||
|
#-- Options to be used when stripping static libraries. See `man strip' for details.
|
||||||
|
STRIP_STATIC="--strip-debug"
|
||||||
|
#-- Manual (man and info) directories to compress (if zipman is specified)
|
||||||
|
MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
|
||||||
|
#-- Doc directories to remove (if !docs is specified)
|
||||||
|
DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
|
||||||
|
#-- Files to be removed from all packages (if purge is specified)
|
||||||
|
PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
|
||||||
|
#-- Directory to store source code in for debug packages
|
||||||
|
DBGSRCDIR="/usr/src/debug"
|
||||||
|
|
||||||
|
#########################################################################
|
||||||
|
# PACKAGE OUTPUT
|
||||||
|
#########################################################################
|
||||||
|
#
|
||||||
|
# Default: put built package and cached source in build directory
|
||||||
|
#
|
||||||
|
#-- Destination: specify a fixed directory where all packages will be placed
|
||||||
|
#PKGDEST=/home/packages
|
||||||
|
#-- Source cache: specify a fixed directory where source files will be cached
|
||||||
|
#SRCDEST=/home/sources
|
||||||
|
#-- Source packages: specify a fixed directory where all src packages will be placed
|
||||||
|
#SRCPKGDEST=/home/srcpackages
|
||||||
|
#-- Log files: specify a fixed directory where all log files will be placed
|
||||||
|
#LOGDEST=/home/makepkglogs
|
||||||
|
#-- Packager: name/email of the person or organization building packages
|
||||||
|
#PACKAGER="John Doe <john@doe.com>"
|
||||||
|
#-- Specify a key to use for package signing
|
||||||
|
#GPGKEY=""
|
||||||
|
|
||||||
|
#########################################################################
|
||||||
|
# COMPRESSION DEFAULTS
|
||||||
|
#########################################################################
|
||||||
|
#
|
||||||
|
COMPRESSGZ=(gzip -c -f -n)
|
||||||
|
COMPRESSBZ2=(bzip2 -c -f)
|
||||||
|
COMPRESSXZ=(xz -9 -c -z -)
|
||||||
|
COMPRESSZST=(zstd -14 -c -T0 -)
|
||||||
|
COMPRESSLRZ=(lrzip -q)
|
||||||
|
COMPRESSLZO=(lzop -q)
|
||||||
|
COMPRESSZ=(compress -c -f)
|
||||||
|
COMPRESSLZ4=(lz4 -q)
|
||||||
|
COMPRESSLZ=(lzip -c -f)
|
||||||
|
|
||||||
|
#########################################################################
|
||||||
|
# EXTENSION DEFAULTS
|
||||||
|
#########################################################################
|
||||||
|
#
|
||||||
|
PKGEXT='.pkg.tar.zst'
|
||||||
|
SRCEXT='.src.tar.gz'
|
153
arch-builder/makepkg/makepkg-goldmont.conf
Normal file
153
arch-builder/makepkg/makepkg-goldmont.conf
Normal file
@@ -0,0 +1,153 @@
|
|||||||
|
#!/hint/bash
|
||||||
|
#
|
||||||
|
# /etc/makepkg.conf
|
||||||
|
#
|
||||||
|
|
||||||
|
#########################################################################
|
||||||
|
# SOURCE ACQUISITION
|
||||||
|
#########################################################################
|
||||||
|
#
|
||||||
|
#-- The download utilities that makepkg should use to acquire sources
|
||||||
|
# Format: 'protocol::agent'
|
||||||
|
DLAGENTS=('file::/usr/bin/curl -gqC - -o %o %u'
|
||||||
|
'ftp::/usr/bin/curl -gqfC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u'
|
||||||
|
'http::/usr/bin/curl -gqb "" -fLC - --retry 3 --retry-delay 3 -o %o %u'
|
||||||
|
'https::/usr/bin/curl -gqb "" -fLC - --retry 3 --retry-delay 3 -o %o %u'
|
||||||
|
'rsync::/usr/bin/rsync --no-motd -z %u %o'
|
||||||
|
'scp::/usr/bin/scp -C %u %o')
|
||||||
|
|
||||||
|
# Other common tools:
|
||||||
|
# /usr/bin/snarf
|
||||||
|
# /usr/bin/lftpget -c
|
||||||
|
# /usr/bin/wget
|
||||||
|
|
||||||
|
#-- The package required by makepkg to download VCS sources
|
||||||
|
# Format: 'protocol::package'
|
||||||
|
VCSCLIENTS=('bzr::bzr'
|
||||||
|
'git::git'
|
||||||
|
'hg::mercurial'
|
||||||
|
'svn::subversion')
|
||||||
|
|
||||||
|
#########################################################################
|
||||||
|
# ARCHITECTURE, COMPILE FLAGS
|
||||||
|
#########################################################################
|
||||||
|
#
|
||||||
|
CARCH="x86_64"
|
||||||
|
CHOST="x86_64-pc-linux-gnu"
|
||||||
|
|
||||||
|
#-- Compiler and Linker Flags
|
||||||
|
#CPPFLAGS=""
|
||||||
|
CFLAGS="-march=goldmont -mtune=goldmont -O3 -pipe -fno-plt -fexceptions \
|
||||||
|
-Wp,-D_FORTIFY_SOURCE=2,-D_GLIBCXX_ASSERTIONS \
|
||||||
|
-Wformat -Werror=format-security \
|
||||||
|
-fstack-clash-protection -fcf-protection"
|
||||||
|
CXXFLAGS="$CFLAGS"
|
||||||
|
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now \
|
||||||
|
-Wl,-z,pack-relative-relocs"
|
||||||
|
LTOFLAGS="-flto=auto"
|
||||||
|
|
||||||
|
#RUSTFLAGS="-C opt-level=2"
|
||||||
|
#-- Make Flags: change this for DistCC/SMP systems
|
||||||
|
MAKEFLAGS="--jobs=$(nproc)"
|
||||||
|
#-- Debugging flags
|
||||||
|
DEBUG_CFLAGS="-g -fvar-tracking-assignments"
|
||||||
|
DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"
|
||||||
|
#DEBUG_RUSTFLAGS="-C debuginfo=2"
|
||||||
|
|
||||||
|
#########################################################################
|
||||||
|
# BUILD ENVIRONMENT
|
||||||
|
#########################################################################
|
||||||
|
#
|
||||||
|
# Defaults: BUILDENV=(!distcc !color !ccache check !sign)
|
||||||
|
# A negated environment option will do the opposite of the comments below.
|
||||||
|
#
|
||||||
|
#-- distcc: Use the Distributed C/C++/ObjC compiler
|
||||||
|
#-- color: Colorize output messages
|
||||||
|
#-- ccache: Use ccache to cache compilation
|
||||||
|
#-- check: Run the check() function if present in the PKGBUILD
|
||||||
|
#-- sign: Generate PGP signature file
|
||||||
|
#
|
||||||
|
BUILDENV=(!distcc color ccache check !sign)
|
||||||
|
#
|
||||||
|
#-- If using DistCC, your MAKEFLAGS will also need modification. In addition,
|
||||||
|
#-- specify a space-delimited list of hosts running in the DistCC cluster.
|
||||||
|
#DISTCC_HOSTS=""
|
||||||
|
#
|
||||||
|
#-- Specify a directory for package building.
|
||||||
|
#BUILDDIR=/tmp/makepkg
|
||||||
|
|
||||||
|
#########################################################################
|
||||||
|
# GLOBAL PACKAGE OPTIONS
|
||||||
|
# These are default values for the options=() settings
|
||||||
|
#########################################################################
|
||||||
|
#
|
||||||
|
# Default: OPTIONS=(!strip docs libtool staticlibs emptydirs !zipman !purge !debug)
|
||||||
|
# A negated option will do the opposite of the comments below.
|
||||||
|
#
|
||||||
|
#-- strip: Strip symbols from binaries/libraries
|
||||||
|
#-- docs: Save doc directories specified by DOC_DIRS
|
||||||
|
#-- libtool: Leave libtool (.la) files in packages
|
||||||
|
#-- staticlibs: Leave static library (.a) files in packages
|
||||||
|
#-- emptydirs: Leave empty directories in packages
|
||||||
|
#-- zipman: Compress manual (man and info) pages in MAN_DIRS with gzip
|
||||||
|
#-- purge: Remove files specified by PURGE_TARGETS
|
||||||
|
#-- debug: Add debugging flags as specified in DEBUG_* variables
|
||||||
|
#
|
||||||
|
OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug lto)
|
||||||
|
|
||||||
|
#-- File integrity checks to use. Valid: md5, sha1, sha224, sha256, sha384, sha512, b2
|
||||||
|
INTEGRITY_CHECK=(md5)
|
||||||
|
#-- Options to be used when stripping binaries. See `man strip' for details.
|
||||||
|
STRIP_BINARIES="--strip-all"
|
||||||
|
#-- Options to be used when stripping shared libraries. See `man strip' for details.
|
||||||
|
STRIP_SHARED="--strip-unneeded"
|
||||||
|
#-- Options to be used when stripping static libraries. See `man strip' for details.
|
||||||
|
STRIP_STATIC="--strip-debug"
|
||||||
|
#-- Manual (man and info) directories to compress (if zipman is specified)
|
||||||
|
MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
|
||||||
|
#-- Doc directories to remove (if !docs is specified)
|
||||||
|
DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
|
||||||
|
#-- Files to be removed from all packages (if purge is specified)
|
||||||
|
PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
|
||||||
|
#-- Directory to store source code in for debug packages
|
||||||
|
DBGSRCDIR="/usr/src/debug"
|
||||||
|
|
||||||
|
#########################################################################
|
||||||
|
# PACKAGE OUTPUT
|
||||||
|
#########################################################################
|
||||||
|
#
|
||||||
|
# Default: put built package and cached source in build directory
|
||||||
|
#
|
||||||
|
#-- Destination: specify a fixed directory where all packages will be placed
|
||||||
|
#PKGDEST=/home/packages
|
||||||
|
#-- Source cache: specify a fixed directory where source files will be cached
|
||||||
|
#SRCDEST=/home/sources
|
||||||
|
#-- Source packages: specify a fixed directory where all src packages will be placed
|
||||||
|
#SRCPKGDEST=/home/srcpackages
|
||||||
|
#-- Log files: specify a fixed directory where all log files will be placed
|
||||||
|
#LOGDEST=/home/makepkglogs
|
||||||
|
#-- Packager: name/email of the person or organization building packages
|
||||||
|
#PACKAGER="John Doe <john@doe.com>"
|
||||||
|
#-- Specify a key to use for package signing
|
||||||
|
#GPGKEY=""
|
||||||
|
|
||||||
|
#########################################################################
|
||||||
|
# COMPRESSION DEFAULTS
|
||||||
|
#########################################################################
|
||||||
|
#
|
||||||
|
COMPRESSGZ=(gzip -c -f -n)
|
||||||
|
COMPRESSBZ2=(bzip2 -c -f)
|
||||||
|
COMPRESSXZ=(xz -9 -c -z -)
|
||||||
|
COMPRESSZST=(zstd -14 -c -T0 -)
|
||||||
|
COMPRESSLRZ=(lrzip -q)
|
||||||
|
COMPRESSLZO=(lzop -q)
|
||||||
|
COMPRESSZ=(compress -c -f)
|
||||||
|
COMPRESSLZ4=(lz4 -q)
|
||||||
|
COMPRESSLZ=(lzip -c -f)
|
||||||
|
|
||||||
|
#########################################################################
|
||||||
|
# EXTENSION DEFAULTS
|
||||||
|
#########################################################################
|
||||||
|
#
|
||||||
|
PKGEXT='.pkg.tar.zst'
|
||||||
|
SRCEXT='.src.tar.gz'
|
@@ -39,9 +39,12 @@ CHOST="x86_64-pc-linux-gnu"
|
|||||||
CPPFLAGS="-D_FORTIFY_SOURCE=2"
|
CPPFLAGS="-D_FORTIFY_SOURCE=2"
|
||||||
CFLAGS="-march=native -mtune=native -O3 -pipe -fstack-protector-strong"
|
CFLAGS="-march=native -mtune=native -O3 -pipe -fstack-protector-strong"
|
||||||
CXXFLAGS="-march=native -mtune=native -O3 -pipe -fstack-protector-strong"
|
CXXFLAGS="-march=native -mtune=native -O3 -pipe -fstack-protector-strong"
|
||||||
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro"
|
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now \
|
||||||
|
-Wl,-z,pack-relative-relocs"
|
||||||
|
LTOFLAGS="-flto=auto"
|
||||||
|
|
||||||
#-- Make Flags: change this for DistCC/SMP systems
|
#-- Make Flags: change this for DistCC/SMP systems
|
||||||
MAKEFLAGS="-j32"
|
MAKEFLAGS="--jobs=$(nproc)"
|
||||||
#-- Debugging flags
|
#-- Debugging flags
|
||||||
DEBUG_CFLAGS="-g -fvar-tracking-assignments"
|
DEBUG_CFLAGS="-g -fvar-tracking-assignments"
|
||||||
DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"
|
DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"
|
||||||
@@ -83,11 +86,9 @@ BUILDENV=(!distcc color ccache check !sign)
|
|||||||
#-- emptydirs: Leave empty directories in packages
|
#-- emptydirs: Leave empty directories in packages
|
||||||
#-- zipman: Compress manual (man and info) pages in MAN_DIRS with gzip
|
#-- zipman: Compress manual (man and info) pages in MAN_DIRS with gzip
|
||||||
#-- purge: Remove files specified by PURGE_TARGETS
|
#-- purge: Remove files specified by PURGE_TARGETS
|
||||||
#-- upx: Compress binary executable files using UPX
|
|
||||||
#-- optipng: Optimize PNG images with optipng
|
|
||||||
#-- debug: Add debugging flags as specified in DEBUG_* variables
|
#-- debug: Add debugging flags as specified in DEBUG_* variables
|
||||||
#
|
#
|
||||||
OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !optipng !upx !debug)
|
OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug lto)
|
||||||
|
|
||||||
#-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512
|
#-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512
|
||||||
INTEGRITY_CHECK=(md5)
|
INTEGRITY_CHECK=(md5)
|
||||||
@@ -129,10 +130,13 @@ PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
|
|||||||
#
|
#
|
||||||
COMPRESSGZ=(gzip -c -f -n)
|
COMPRESSGZ=(gzip -c -f -n)
|
||||||
COMPRESSBZ2=(bzip2 -c -f)
|
COMPRESSBZ2=(bzip2 -c -f)
|
||||||
COMPRESSXZ=(xz -c -z -)
|
COMPRESSXZ=(xz -9 -c -z -)
|
||||||
|
COMPRESSZST=(zstd -14 -c -T0 -)
|
||||||
COMPRESSLRZ=(lrzip -q)
|
COMPRESSLRZ=(lrzip -q)
|
||||||
COMPRESSLZO=(lzop -q)
|
COMPRESSLZO=(lzop -q)
|
||||||
COMPRESSZ=(compress -c -f)
|
COMPRESSZ=(compress -c -f)
|
||||||
|
COMPRESSLZ4=(lz4 -q)
|
||||||
|
COMPRESSLZ=(lzip -c -f)
|
||||||
|
|
||||||
#########################################################################
|
#########################################################################
|
||||||
# EXTENSION DEFAULTS
|
# EXTENSION DEFAULTS
|
||||||
@@ -141,7 +145,7 @@ COMPRESSZ=(compress -c -f)
|
|||||||
# WARNING: Do NOT modify these variables unless you know what you are
|
# WARNING: Do NOT modify these variables unless you know what you are
|
||||||
# doing.
|
# doing.
|
||||||
#
|
#
|
||||||
PKGEXT='.pkg.tar.lzo'
|
PKGEXT='.pkg.tar.zst'
|
||||||
SRCEXT='.src.tar.gz'
|
SRCEXT='.src.tar.gz'
|
||||||
|
|
||||||
# vim: set ft=sh ts=2 sw=2 et:
|
# vim: set ft=sh ts=2 sw=2 et:
|
||||||
|
@@ -42,10 +42,13 @@ CFLAGS="-march=sandybridge -mtune=sandybridge -O3 -pipe -fno-plt -fexceptions \
|
|||||||
-Wformat -Werror=format-security \
|
-Wformat -Werror=format-security \
|
||||||
-fstack-clash-protection -fcf-protection"
|
-fstack-clash-protection -fcf-protection"
|
||||||
CXXFLAGS="$CFLAGS"
|
CXXFLAGS="$CFLAGS"
|
||||||
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now"
|
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now \
|
||||||
|
-Wl,-z,pack-relative-relocs"
|
||||||
|
LTOFLAGS="-flto=auto"
|
||||||
|
|
||||||
#RUSTFLAGS="-C opt-level=2"
|
#RUSTFLAGS="-C opt-level=2"
|
||||||
#-- Make Flags: change this for DistCC/SMP systems
|
#-- Make Flags: change this for DistCC/SMP systems
|
||||||
MAKEFLAGS="-j32"
|
MAKEFLAGS="--jobs=$(nproc)"
|
||||||
#-- Debugging flags
|
#-- Debugging flags
|
||||||
DEBUG_CFLAGS="-g -fvar-tracking-assignments"
|
DEBUG_CFLAGS="-g -fvar-tracking-assignments"
|
||||||
DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"
|
DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"
|
||||||
@@ -90,7 +93,7 @@ BUILDENV=(!distcc color ccache check !sign)
|
|||||||
#-- purge: Remove files specified by PURGE_TARGETS
|
#-- purge: Remove files specified by PURGE_TARGETS
|
||||||
#-- debug: Add debugging flags as specified in DEBUG_* variables
|
#-- debug: Add debugging flags as specified in DEBUG_* variables
|
||||||
#
|
#
|
||||||
OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug)
|
OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug lto)
|
||||||
|
|
||||||
#-- File integrity checks to use. Valid: md5, sha1, sha224, sha256, sha384, sha512, b2
|
#-- File integrity checks to use. Valid: md5, sha1, sha224, sha256, sha384, sha512, b2
|
||||||
INTEGRITY_CHECK=(md5)
|
INTEGRITY_CHECK=(md5)
|
||||||
@@ -134,8 +137,8 @@ DBGSRCDIR="/usr/src/debug"
|
|||||||
#
|
#
|
||||||
COMPRESSGZ=(gzip -c -f -n)
|
COMPRESSGZ=(gzip -c -f -n)
|
||||||
COMPRESSBZ2=(bzip2 -c -f)
|
COMPRESSBZ2=(bzip2 -c -f)
|
||||||
COMPRESSXZ=(xz -c -z -)
|
COMPRESSXZ=(xz -9 -c -z -)
|
||||||
COMPRESSZST=(zstd -c -z -q -)
|
COMPRESSZST=(zstd -14 -c -T0 -)
|
||||||
COMPRESSLRZ=(lrzip -q)
|
COMPRESSLRZ=(lrzip -q)
|
||||||
COMPRESSLZO=(lzop -q)
|
COMPRESSLZO=(lzop -q)
|
||||||
COMPRESSZ=(compress -c -f)
|
COMPRESSZ=(compress -c -f)
|
||||||
@@ -146,5 +149,5 @@ COMPRESSLZ=(lzip -c -f)
|
|||||||
# EXTENSION DEFAULTS
|
# EXTENSION DEFAULTS
|
||||||
#########################################################################
|
#########################################################################
|
||||||
#
|
#
|
||||||
PKGEXT='.pkg.tar.lzo'
|
PKGEXT='.pkg.tar.zst'
|
||||||
SRCEXT='.src.tar.gz'
|
SRCEXT='.src.tar.gz'
|
||||||
|
@@ -42,10 +42,13 @@ CFLAGS="-march=silvermont -mtune=silvermont -O3 -pipe -fno-plt -fexceptions \
|
|||||||
-Wformat -Werror=format-security \
|
-Wformat -Werror=format-security \
|
||||||
-fstack-clash-protection -fcf-protection"
|
-fstack-clash-protection -fcf-protection"
|
||||||
CXXFLAGS="$CFLAGS"
|
CXXFLAGS="$CFLAGS"
|
||||||
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now"
|
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now \
|
||||||
|
-Wl,-z,pack-relative-relocs"
|
||||||
|
LTOFLAGS="-flto=auto"
|
||||||
|
|
||||||
#RUSTFLAGS="-C opt-level=2"
|
#RUSTFLAGS="-C opt-level=2"
|
||||||
#-- Make Flags: change this for DistCC/SMP systems
|
#-- Make Flags: change this for DistCC/SMP systems
|
||||||
MAKEFLAGS="-j32"
|
MAKEFLAGS="--jobs=$(nproc)"
|
||||||
#-- Debugging flags
|
#-- Debugging flags
|
||||||
DEBUG_CFLAGS="-g -fvar-tracking-assignments"
|
DEBUG_CFLAGS="-g -fvar-tracking-assignments"
|
||||||
DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"
|
DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"
|
||||||
@@ -90,7 +93,7 @@ BUILDENV=(!distcc color ccache check !sign)
|
|||||||
#-- purge: Remove files specified by PURGE_TARGETS
|
#-- purge: Remove files specified by PURGE_TARGETS
|
||||||
#-- debug: Add debugging flags as specified in DEBUG_* variables
|
#-- debug: Add debugging flags as specified in DEBUG_* variables
|
||||||
#
|
#
|
||||||
OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug)
|
OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug lto)
|
||||||
|
|
||||||
#-- File integrity checks to use. Valid: md5, sha1, sha224, sha256, sha384, sha512, b2
|
#-- File integrity checks to use. Valid: md5, sha1, sha224, sha256, sha384, sha512, b2
|
||||||
INTEGRITY_CHECK=(md5)
|
INTEGRITY_CHECK=(md5)
|
||||||
@@ -134,8 +137,8 @@ DBGSRCDIR="/usr/src/debug"
|
|||||||
#
|
#
|
||||||
COMPRESSGZ=(gzip -c -f -n)
|
COMPRESSGZ=(gzip -c -f -n)
|
||||||
COMPRESSBZ2=(bzip2 -c -f)
|
COMPRESSBZ2=(bzip2 -c -f)
|
||||||
COMPRESSXZ=(xz -c -z -)
|
COMPRESSXZ=(xz -9 -c -z -)
|
||||||
COMPRESSZST=(zstd -c -z -q -)
|
COMPRESSZST=(zstd -14 -c -T0 -)
|
||||||
COMPRESSLRZ=(lrzip -q)
|
COMPRESSLRZ=(lrzip -q)
|
||||||
COMPRESSLZO=(lzop -q)
|
COMPRESSLZO=(lzop -q)
|
||||||
COMPRESSZ=(compress -c -f)
|
COMPRESSZ=(compress -c -f)
|
||||||
@@ -146,5 +149,5 @@ COMPRESSLZ=(lzip -c -f)
|
|||||||
# EXTENSION DEFAULTS
|
# EXTENSION DEFAULTS
|
||||||
#########################################################################
|
#########################################################################
|
||||||
#
|
#
|
||||||
PKGEXT='.pkg.tar.lzo'
|
PKGEXT='.pkg.tar.zst'
|
||||||
SRCEXT='.src.tar.gz'
|
SRCEXT='.src.tar.gz'
|
||||||
|
@@ -42,10 +42,13 @@ CFLAGS="-march=skylake -mtune=skylake -O3 -pipe -fno-plt -fexceptions \
|
|||||||
-Wformat -Werror=format-security \
|
-Wformat -Werror=format-security \
|
||||||
-fstack-clash-protection -fcf-protection"
|
-fstack-clash-protection -fcf-protection"
|
||||||
CXXFLAGS="$CFLAGS"
|
CXXFLAGS="$CFLAGS"
|
||||||
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now"
|
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now \
|
||||||
|
-Wl,-z,pack-relative-relocs"
|
||||||
|
LTOFLAGS="-flto=auto"
|
||||||
|
|
||||||
#RUSTFLAGS="-C opt-level=2"
|
#RUSTFLAGS="-C opt-level=2"
|
||||||
#-- Make Flags: change this for DistCC/SMP systems
|
#-- Make Flags: change this for DistCC/SMP systems
|
||||||
MAKEFLAGS="-j32"
|
MAKEFLAGS="--jobs=$(nproc)"
|
||||||
#-- Debugging flags
|
#-- Debugging flags
|
||||||
DEBUG_CFLAGS="-g -fvar-tracking-assignments"
|
DEBUG_CFLAGS="-g -fvar-tracking-assignments"
|
||||||
DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"
|
DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"
|
||||||
@@ -90,7 +93,7 @@ BUILDENV=(!distcc color ccache check !sign)
|
|||||||
#-- purge: Remove files specified by PURGE_TARGETS
|
#-- purge: Remove files specified by PURGE_TARGETS
|
||||||
#-- debug: Add debugging flags as specified in DEBUG_* variables
|
#-- debug: Add debugging flags as specified in DEBUG_* variables
|
||||||
#
|
#
|
||||||
OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug)
|
OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug lto)
|
||||||
|
|
||||||
#-- File integrity checks to use. Valid: md5, sha1, sha224, sha256, sha384, sha512, b2
|
#-- File integrity checks to use. Valid: md5, sha1, sha224, sha256, sha384, sha512, b2
|
||||||
INTEGRITY_CHECK=(md5)
|
INTEGRITY_CHECK=(md5)
|
||||||
@@ -134,8 +137,8 @@ DBGSRCDIR="/usr/src/debug"
|
|||||||
#
|
#
|
||||||
COMPRESSGZ=(gzip -c -f -n)
|
COMPRESSGZ=(gzip -c -f -n)
|
||||||
COMPRESSBZ2=(bzip2 -c -f)
|
COMPRESSBZ2=(bzip2 -c -f)
|
||||||
COMPRESSXZ=(xz -c -z -)
|
COMPRESSXZ=(xz -9 -c -z -)
|
||||||
COMPRESSZST=(zstd -c -z -q -)
|
COMPRESSZST=(zstd -14 -c -T0 -)
|
||||||
COMPRESSLRZ=(lrzip -q)
|
COMPRESSLRZ=(lrzip -q)
|
||||||
COMPRESSLZO=(lzop -q)
|
COMPRESSLZO=(lzop -q)
|
||||||
COMPRESSZ=(compress -c -f)
|
COMPRESSZ=(compress -c -f)
|
||||||
@@ -146,5 +149,5 @@ COMPRESSLZ=(lzip -c -f)
|
|||||||
# EXTENSION DEFAULTS
|
# EXTENSION DEFAULTS
|
||||||
#########################################################################
|
#########################################################################
|
||||||
#
|
#
|
||||||
PKGEXT='.pkg.tar.lzo'
|
PKGEXT='.pkg.tar.zst'
|
||||||
SRCEXT='.src.tar.gz'
|
SRCEXT='.src.tar.gz'
|
||||||
|
@@ -42,10 +42,13 @@ CFLAGS="-march=tigerlake -mtune=tigerlake -O3 -pipe -fno-plt -fexceptions \
|
|||||||
-Wformat -Werror=format-security \
|
-Wformat -Werror=format-security \
|
||||||
-fstack-clash-protection -fcf-protection"
|
-fstack-clash-protection -fcf-protection"
|
||||||
CXXFLAGS="$CFLAGS"
|
CXXFLAGS="$CFLAGS"
|
||||||
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now"
|
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now \
|
||||||
|
-Wl,-z,pack-relative-relocs"
|
||||||
|
LTOFLAGS="-flto=auto"
|
||||||
|
|
||||||
#RUSTFLAGS="-C opt-level=2"
|
#RUSTFLAGS="-C opt-level=2"
|
||||||
#-- Make Flags: change this for DistCC/SMP systems
|
#-- Make Flags: change this for DistCC/SMP systems
|
||||||
MAKEFLAGS="-j32"
|
MAKEFLAGS="--jobs=$(nproc)"
|
||||||
#-- Debugging flags
|
#-- Debugging flags
|
||||||
DEBUG_CFLAGS="-g -fvar-tracking-assignments"
|
DEBUG_CFLAGS="-g -fvar-tracking-assignments"
|
||||||
DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"
|
DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"
|
||||||
@@ -90,7 +93,7 @@ BUILDENV=(!distcc color ccache check !sign)
|
|||||||
#-- purge: Remove files specified by PURGE_TARGETS
|
#-- purge: Remove files specified by PURGE_TARGETS
|
||||||
#-- debug: Add debugging flags as specified in DEBUG_* variables
|
#-- debug: Add debugging flags as specified in DEBUG_* variables
|
||||||
#
|
#
|
||||||
OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug)
|
OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug lto)
|
||||||
|
|
||||||
#-- File integrity checks to use. Valid: md5, sha1, sha224, sha256, sha384, sha512, b2
|
#-- File integrity checks to use. Valid: md5, sha1, sha224, sha256, sha384, sha512, b2
|
||||||
INTEGRITY_CHECK=(md5)
|
INTEGRITY_CHECK=(md5)
|
||||||
@@ -134,8 +137,8 @@ DBGSRCDIR="/usr/src/debug"
|
|||||||
#
|
#
|
||||||
COMPRESSGZ=(gzip -c -f -n)
|
COMPRESSGZ=(gzip -c -f -n)
|
||||||
COMPRESSBZ2=(bzip2 -c -f)
|
COMPRESSBZ2=(bzip2 -c -f)
|
||||||
COMPRESSXZ=(xz -c -z -)
|
COMPRESSXZ=(xz -9 -c -z -)
|
||||||
COMPRESSZST=(zstd -c -z -q -)
|
COMPRESSZST=(zstd -14 -c -T0 -)
|
||||||
COMPRESSLRZ=(lrzip -q)
|
COMPRESSLRZ=(lrzip -q)
|
||||||
COMPRESSLZO=(lzop -q)
|
COMPRESSLZO=(lzop -q)
|
||||||
COMPRESSZ=(compress -c -f)
|
COMPRESSZ=(compress -c -f)
|
||||||
@@ -146,5 +149,5 @@ COMPRESSLZ=(lzip -c -f)
|
|||||||
# EXTENSION DEFAULTS
|
# EXTENSION DEFAULTS
|
||||||
#########################################################################
|
#########################################################################
|
||||||
#
|
#
|
||||||
PKGEXT='.pkg.tar.lzo'
|
PKGEXT='.pkg.tar.zst'
|
||||||
SRCEXT='.src.tar.gz'
|
SRCEXT='.src.tar.gz'
|
||||||
|
@@ -42,10 +42,14 @@ CFLAGS="-march=znver1 -mtune=znver1 -O3 -pipe -fno-plt -fexceptions \
|
|||||||
-Wformat -Werror=format-security \
|
-Wformat -Werror=format-security \
|
||||||
-fstack-clash-protection -fcf-protection"
|
-fstack-clash-protection -fcf-protection"
|
||||||
CXXFLAGS="$CFLAGS"
|
CXXFLAGS="$CFLAGS"
|
||||||
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now"
|
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now \
|
||||||
|
-Wl,-z,pack-relative-relocs"
|
||||||
|
LTOFLAGS="-flto=auto"
|
||||||
|
|
||||||
#RUSTFLAGS="-C opt-level=2"
|
#RUSTFLAGS="-C opt-level=2"
|
||||||
#-- Make Flags: change this for DistCC/SMP systems
|
#-- Make Flags: change this for DistCC/SMP systems
|
||||||
MAKEFLAGS="-j32"
|
MAKEFLAGS="--jobs=$(nproc)"
|
||||||
|
|
||||||
#-- Debugging flags
|
#-- Debugging flags
|
||||||
DEBUG_CFLAGS="-g -fvar-tracking-assignments"
|
DEBUG_CFLAGS="-g -fvar-tracking-assignments"
|
||||||
DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"
|
DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"
|
||||||
@@ -90,7 +94,7 @@ BUILDENV=(!distcc color ccache check !sign)
|
|||||||
#-- purge: Remove files specified by PURGE_TARGETS
|
#-- purge: Remove files specified by PURGE_TARGETS
|
||||||
#-- debug: Add debugging flags as specified in DEBUG_* variables
|
#-- debug: Add debugging flags as specified in DEBUG_* variables
|
||||||
#
|
#
|
||||||
OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug)
|
OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug lto)
|
||||||
|
|
||||||
#-- File integrity checks to use. Valid: md5, sha1, sha224, sha256, sha384, sha512, b2
|
#-- File integrity checks to use. Valid: md5, sha1, sha224, sha256, sha384, sha512, b2
|
||||||
INTEGRITY_CHECK=(md5)
|
INTEGRITY_CHECK=(md5)
|
||||||
@@ -134,8 +138,8 @@ DBGSRCDIR="/usr/src/debug"
|
|||||||
#
|
#
|
||||||
COMPRESSGZ=(gzip -c -f -n)
|
COMPRESSGZ=(gzip -c -f -n)
|
||||||
COMPRESSBZ2=(bzip2 -c -f)
|
COMPRESSBZ2=(bzip2 -c -f)
|
||||||
COMPRESSXZ=(xz -c -z -)
|
COMPRESSXZ=(xz -9 -c -z -)
|
||||||
COMPRESSZST=(zstd -c -z -q -)
|
COMPRESSZST=(zstd -14 -c -T0 -)
|
||||||
COMPRESSLRZ=(lrzip -q)
|
COMPRESSLRZ=(lrzip -q)
|
||||||
COMPRESSLZO=(lzop -q)
|
COMPRESSLZO=(lzop -q)
|
||||||
COMPRESSZ=(compress -c -f)
|
COMPRESSZ=(compress -c -f)
|
||||||
@@ -146,5 +150,5 @@ COMPRESSLZ=(lzip -c -f)
|
|||||||
# EXTENSION DEFAULTS
|
# EXTENSION DEFAULTS
|
||||||
#########################################################################
|
#########################################################################
|
||||||
#
|
#
|
||||||
PKGEXT='.pkg.tar.lzo'
|
PKGEXT='.pkg.tar.zst'
|
||||||
SRCEXT='.src.tar.gz'
|
SRCEXT='.src.tar.gz'
|
||||||
|
@@ -42,10 +42,13 @@ CFLAGS="-march=znver2 -mtune=znver2 -O3 -pipe -fno-plt -fexceptions \
|
|||||||
-Wformat -Werror=format-security \
|
-Wformat -Werror=format-security \
|
||||||
-fstack-clash-protection -fcf-protection"
|
-fstack-clash-protection -fcf-protection"
|
||||||
CXXFLAGS="$CFLAGS"
|
CXXFLAGS="$CFLAGS"
|
||||||
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now"
|
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now \
|
||||||
|
-Wl,-z,pack-relative-relocs"
|
||||||
|
LTOFLAGS="-flto=auto"
|
||||||
|
|
||||||
#RUSTFLAGS="-C opt-level=2"
|
#RUSTFLAGS="-C opt-level=2"
|
||||||
#-- Make Flags: change this for DistCC/SMP systems
|
#-- Make Flags: change this for DistCC/SMP systems
|
||||||
MAKEFLAGS="-j32"
|
MAKEFLAGS="--jobs=$(nproc)"
|
||||||
#-- Debugging flags
|
#-- Debugging flags
|
||||||
DEBUG_CFLAGS="-g -fvar-tracking-assignments"
|
DEBUG_CFLAGS="-g -fvar-tracking-assignments"
|
||||||
DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"
|
DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"
|
||||||
@@ -90,7 +93,7 @@ BUILDENV=(!distcc color ccache check !sign)
|
|||||||
#-- purge: Remove files specified by PURGE_TARGETS
|
#-- purge: Remove files specified by PURGE_TARGETS
|
||||||
#-- debug: Add debugging flags as specified in DEBUG_* variables
|
#-- debug: Add debugging flags as specified in DEBUG_* variables
|
||||||
#
|
#
|
||||||
OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug)
|
OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug lto)
|
||||||
|
|
||||||
#-- File integrity checks to use. Valid: md5, sha1, sha224, sha256, sha384, sha512, b2
|
#-- File integrity checks to use. Valid: md5, sha1, sha224, sha256, sha384, sha512, b2
|
||||||
INTEGRITY_CHECK=(md5)
|
INTEGRITY_CHECK=(md5)
|
||||||
@@ -134,8 +137,8 @@ DBGSRCDIR="/usr/src/debug"
|
|||||||
#
|
#
|
||||||
COMPRESSGZ=(gzip -c -f -n)
|
COMPRESSGZ=(gzip -c -f -n)
|
||||||
COMPRESSBZ2=(bzip2 -c -f)
|
COMPRESSBZ2=(bzip2 -c -f)
|
||||||
COMPRESSXZ=(xz -c -z -)
|
COMPRESSXZ=(xz -9 -c -z -)
|
||||||
COMPRESSZST=(zstd -c -z -q -)
|
COMPRESSZST=(zstd -14 -c -T0 -)
|
||||||
COMPRESSLRZ=(lrzip -q)
|
COMPRESSLRZ=(lrzip -q)
|
||||||
COMPRESSLZO=(lzop -q)
|
COMPRESSLZO=(lzop -q)
|
||||||
COMPRESSZ=(compress -c -f)
|
COMPRESSZ=(compress -c -f)
|
||||||
@@ -146,5 +149,5 @@ COMPRESSLZ=(lzip -c -f)
|
|||||||
# EXTENSION DEFAULTS
|
# EXTENSION DEFAULTS
|
||||||
#########################################################################
|
#########################################################################
|
||||||
#
|
#
|
||||||
PKGEXT='.pkg.tar.lzo'
|
PKGEXT='.pkg.tar.zst'
|
||||||
SRCEXT='.src.tar.gz'
|
SRCEXT='.src.tar.gz'
|
||||||
|
@@ -42,10 +42,14 @@ CFLAGS="-march=znver3 -mtune=znver3 -O3 -pipe -fno-plt -fexceptions \
|
|||||||
-Wformat -Werror=format-security \
|
-Wformat -Werror=format-security \
|
||||||
-fstack-clash-protection -fcf-protection"
|
-fstack-clash-protection -fcf-protection"
|
||||||
CXXFLAGS="$CFLAGS"
|
CXXFLAGS="$CFLAGS"
|
||||||
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now"
|
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now \
|
||||||
|
-Wl,-z,pack-relative-relocs"
|
||||||
|
LTOFLAGS="-flto=auto"
|
||||||
|
|
||||||
#RUSTFLAGS="-C opt-level=2"
|
#RUSTFLAGS="-C opt-level=2"
|
||||||
#-- Make Flags: change this for DistCC/SMP systems
|
#-- Make Flags: change this for DistCC/SMP systems
|
||||||
MAKEFLAGS="-j32"
|
MAKEFLAGS="--jobs=$(nproc)"
|
||||||
|
|
||||||
#-- Debugging flags
|
#-- Debugging flags
|
||||||
DEBUG_CFLAGS="-g -fvar-tracking-assignments"
|
DEBUG_CFLAGS="-g -fvar-tracking-assignments"
|
||||||
DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"
|
DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"
|
||||||
@@ -90,7 +94,7 @@ BUILDENV=(!distcc color ccache check !sign)
|
|||||||
#-- purge: Remove files specified by PURGE_TARGETS
|
#-- purge: Remove files specified by PURGE_TARGETS
|
||||||
#-- debug: Add debugging flags as specified in DEBUG_* variables
|
#-- debug: Add debugging flags as specified in DEBUG_* variables
|
||||||
#
|
#
|
||||||
OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug)
|
OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug lto)
|
||||||
|
|
||||||
#-- File integrity checks to use. Valid: md5, sha1, sha224, sha256, sha384, sha512, b2
|
#-- File integrity checks to use. Valid: md5, sha1, sha224, sha256, sha384, sha512, b2
|
||||||
INTEGRITY_CHECK=(md5)
|
INTEGRITY_CHECK=(md5)
|
||||||
@@ -134,8 +138,8 @@ DBGSRCDIR="/usr/src/debug"
|
|||||||
#
|
#
|
||||||
COMPRESSGZ=(gzip -c -f -n)
|
COMPRESSGZ=(gzip -c -f -n)
|
||||||
COMPRESSBZ2=(bzip2 -c -f)
|
COMPRESSBZ2=(bzip2 -c -f)
|
||||||
COMPRESSXZ=(xz -c -z -)
|
COMPRESSXZ=(xz -9 -c -z -)
|
||||||
COMPRESSZST=(zstd -c -z -q -)
|
COMPRESSZST=(zstd -14 -c -T0 -)
|
||||||
COMPRESSLRZ=(lrzip -q)
|
COMPRESSLRZ=(lrzip -q)
|
||||||
COMPRESSLZO=(lzop -q)
|
COMPRESSLZO=(lzop -q)
|
||||||
COMPRESSZ=(compress -c -f)
|
COMPRESSZ=(compress -c -f)
|
||||||
@@ -146,5 +150,5 @@ COMPRESSLZ=(lzip -c -f)
|
|||||||
# EXTENSION DEFAULTS
|
# EXTENSION DEFAULTS
|
||||||
#########################################################################
|
#########################################################################
|
||||||
#
|
#
|
||||||
PKGEXT='.pkg.tar.lzo'
|
PKGEXT='.pkg.tar.zst'
|
||||||
SRCEXT='.src.tar.gz'
|
SRCEXT='.src.tar.gz'
|
||||||
|
153
arch-builder/makepkg/makepkg-znver5.conf
Normal file
153
arch-builder/makepkg/makepkg-znver5.conf
Normal file
@@ -0,0 +1,153 @@
|
|||||||
|
#!/hint/bash
|
||||||
|
#
|
||||||
|
# /etc/makepkg.conf
|
||||||
|
#
|
||||||
|
|
||||||
|
#########################################################################
|
||||||
|
# SOURCE ACQUISITION
|
||||||
|
#########################################################################
|
||||||
|
#
|
||||||
|
#-- The download utilities that makepkg should use to acquire sources
|
||||||
|
# Format: 'protocol::agent'
|
||||||
|
DLAGENTS=('file::/usr/bin/curl -gqC - -o %o %u'
|
||||||
|
'ftp::/usr/bin/curl -gqfC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u'
|
||||||
|
'http::/usr/bin/curl -gqb "" -fLC - --retry 3 --retry-delay 3 -o %o %u'
|
||||||
|
'https::/usr/bin/curl -gqb "" -fLC - --retry 3 --retry-delay 3 -o %o %u'
|
||||||
|
'rsync::/usr/bin/rsync --no-motd -z %u %o'
|
||||||
|
'scp::/usr/bin/scp -C %u %o')
|
||||||
|
|
||||||
|
# Other common tools:
|
||||||
|
# /usr/bin/snarf
|
||||||
|
# /usr/bin/lftpget -c
|
||||||
|
# /usr/bin/wget
|
||||||
|
|
||||||
|
#-- The package required by makepkg to download VCS sources
|
||||||
|
# Format: 'protocol::package'
|
||||||
|
VCSCLIENTS=('bzr::bzr'
|
||||||
|
'git::git'
|
||||||
|
'hg::mercurial'
|
||||||
|
'svn::subversion')
|
||||||
|
|
||||||
|
#########################################################################
|
||||||
|
# ARCHITECTURE, COMPILE FLAGS
|
||||||
|
#########################################################################
|
||||||
|
#
|
||||||
|
CARCH="x86_64"
|
||||||
|
CHOST="x86_64-pc-linux-gnu"
|
||||||
|
|
||||||
|
#-- Compiler and Linker Flags
|
||||||
|
#CPPFLAGS=""
|
||||||
|
CFLAGS="-march=znver5 -mtune=znver5 -O3 -pipe -fno-plt -fexceptions \
|
||||||
|
-Wp,-D_FORTIFY_SOURCE=2,-D_GLIBCXX_ASSERTIONS \
|
||||||
|
-Wformat -Werror=format-security \
|
||||||
|
-fstack-clash-protection -fcf-protection"
|
||||||
|
CXXFLAGS="$CFLAGS"
|
||||||
|
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now \
|
||||||
|
-Wl,-z,pack-relative-relocs"
|
||||||
|
LTOFLAGS="-flto=auto"
|
||||||
|
|
||||||
|
#RUSTFLAGS="-C opt-level=2"
|
||||||
|
#-- Make Flags: change this for DistCC/SMP systems
|
||||||
|
MAKEFLAGS="--jobs=$(nproc)"
|
||||||
|
#-- Debugging flags
|
||||||
|
DEBUG_CFLAGS="-g -fvar-tracking-assignments"
|
||||||
|
DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"
|
||||||
|
#DEBUG_RUSTFLAGS="-C debuginfo=2"
|
||||||
|
|
||||||
|
#########################################################################
|
||||||
|
# BUILD ENVIRONMENT
|
||||||
|
#########################################################################
|
||||||
|
#
|
||||||
|
# Defaults: BUILDENV=(!distcc !color !ccache check !sign)
|
||||||
|
# A negated environment option will do the opposite of the comments below.
|
||||||
|
#
|
||||||
|
#-- distcc: Use the Distributed C/C++/ObjC compiler
|
||||||
|
#-- color: Colorize output messages
|
||||||
|
#-- ccache: Use ccache to cache compilation
|
||||||
|
#-- check: Run the check() function if present in the PKGBUILD
|
||||||
|
#-- sign: Generate PGP signature file
|
||||||
|
#
|
||||||
|
BUILDENV=(!distcc color ccache check !sign)
|
||||||
|
#
|
||||||
|
#-- If using DistCC, your MAKEFLAGS will also need modification. In addition,
|
||||||
|
#-- specify a space-delimited list of hosts running in the DistCC cluster.
|
||||||
|
#DISTCC_HOSTS=""
|
||||||
|
#
|
||||||
|
#-- Specify a directory for package building.
|
||||||
|
#BUILDDIR=/tmp/makepkg
|
||||||
|
|
||||||
|
#########################################################################
|
||||||
|
# GLOBAL PACKAGE OPTIONS
|
||||||
|
# These are default values for the options=() settings
|
||||||
|
#########################################################################
|
||||||
|
#
|
||||||
|
# Default: OPTIONS=(!strip docs libtool staticlibs emptydirs !zipman !purge !debug)
|
||||||
|
# A negated option will do the opposite of the comments below.
|
||||||
|
#
|
||||||
|
#-- strip: Strip symbols from binaries/libraries
|
||||||
|
#-- docs: Save doc directories specified by DOC_DIRS
|
||||||
|
#-- libtool: Leave libtool (.la) files in packages
|
||||||
|
#-- staticlibs: Leave static library (.a) files in packages
|
||||||
|
#-- emptydirs: Leave empty directories in packages
|
||||||
|
#-- zipman: Compress manual (man and info) pages in MAN_DIRS with gzip
|
||||||
|
#-- purge: Remove files specified by PURGE_TARGETS
|
||||||
|
#-- debug: Add debugging flags as specified in DEBUG_* variables
|
||||||
|
#
|
||||||
|
OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug lto)
|
||||||
|
|
||||||
|
#-- File integrity checks to use. Valid: md5, sha1, sha224, sha256, sha384, sha512, b2
|
||||||
|
INTEGRITY_CHECK=(md5)
|
||||||
|
#-- Options to be used when stripping binaries. See `man strip' for details.
|
||||||
|
STRIP_BINARIES="--strip-all"
|
||||||
|
#-- Options to be used when stripping shared libraries. See `man strip' for details.
|
||||||
|
STRIP_SHARED="--strip-unneeded"
|
||||||
|
#-- Options to be used when stripping static libraries. See `man strip' for details.
|
||||||
|
STRIP_STATIC="--strip-debug"
|
||||||
|
#-- Manual (man and info) directories to compress (if zipman is specified)
|
||||||
|
MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
|
||||||
|
#-- Doc directories to remove (if !docs is specified)
|
||||||
|
DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
|
||||||
|
#-- Files to be removed from all packages (if purge is specified)
|
||||||
|
PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
|
||||||
|
#-- Directory to store source code in for debug packages
|
||||||
|
DBGSRCDIR="/usr/src/debug"
|
||||||
|
|
||||||
|
#########################################################################
|
||||||
|
# PACKAGE OUTPUT
|
||||||
|
#########################################################################
|
||||||
|
#
|
||||||
|
# Default: put built package and cached source in build directory
|
||||||
|
#
|
||||||
|
#-- Destination: specify a fixed directory where all packages will be placed
|
||||||
|
#PKGDEST=/home/packages
|
||||||
|
#-- Source cache: specify a fixed directory where source files will be cached
|
||||||
|
#SRCDEST=/home/sources
|
||||||
|
#-- Source packages: specify a fixed directory where all src packages will be placed
|
||||||
|
#SRCPKGDEST=/home/srcpackages
|
||||||
|
#-- Log files: specify a fixed directory where all log files will be placed
|
||||||
|
#LOGDEST=/home/makepkglogs
|
||||||
|
#-- Packager: name/email of the person or organization building packages
|
||||||
|
#PACKAGER="John Doe <john@doe.com>"
|
||||||
|
#-- Specify a key to use for package signing
|
||||||
|
#GPGKEY=""
|
||||||
|
|
||||||
|
#########################################################################
|
||||||
|
# COMPRESSION DEFAULTS
|
||||||
|
#########################################################################
|
||||||
|
#
|
||||||
|
COMPRESSGZ=(gzip -c -f -n)
|
||||||
|
COMPRESSBZ2=(bzip2 -c -f)
|
||||||
|
COMPRESSXZ=(xz -9 -c -z -)
|
||||||
|
COMPRESSZST=(zstd -14 -c -T0 -)
|
||||||
|
COMPRESSLRZ=(lrzip -q)
|
||||||
|
COMPRESSLZO=(lzop -q)
|
||||||
|
COMPRESSZ=(compress -c -f)
|
||||||
|
COMPRESSLZ4=(lz4 -q)
|
||||||
|
COMPRESSLZ=(lzip -c -f)
|
||||||
|
|
||||||
|
#########################################################################
|
||||||
|
# EXTENSION DEFAULTS
|
||||||
|
#########################################################################
|
||||||
|
#
|
||||||
|
PKGEXT='.pkg.tar.zst'
|
||||||
|
SRCEXT='.src.tar.gz'
|
154
arch-builder/makepkg/makepkg.conf
Normal file
154
arch-builder/makepkg/makepkg.conf
Normal file
@@ -0,0 +1,154 @@
|
|||||||
|
#
|
||||||
|
# /etc/makepkg.conf
|
||||||
|
#
|
||||||
|
|
||||||
|
#########################################################################
|
||||||
|
# SOURCE ACQUISITION
|
||||||
|
#########################################################################
|
||||||
|
#
|
||||||
|
#-- The download utilities that makepkg should use to acquire sources
|
||||||
|
# Format: 'protocol::agent'
|
||||||
|
DLAGENTS=('file::/usr/bin/curl -qgC - -o %o %u'
|
||||||
|
'ftp::/usr/bin/curl -qgfC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u'
|
||||||
|
'http::/usr/bin/curl -qgb "" -fLC - --retry 3 --retry-delay 3 -o %o %u'
|
||||||
|
'https::/usr/bin/curl -qgb "" -fLC - --retry 3 --retry-delay 3 -o %o %u'
|
||||||
|
'rsync::/usr/bin/rsync --no-motd -z %u %o'
|
||||||
|
'scp::/usr/bin/scp -C %u %o')
|
||||||
|
|
||||||
|
# Other common tools:
|
||||||
|
# /usr/bin/snarf
|
||||||
|
# /usr/bin/lftpget -c
|
||||||
|
# /usr/bin/wget
|
||||||
|
|
||||||
|
#-- The package required by makepkg to download VCS sources
|
||||||
|
# Format: 'protocol::package'
|
||||||
|
VCSCLIENTS=('bzr::breezy'
|
||||||
|
'fossil::fossil'
|
||||||
|
'git::git'
|
||||||
|
'hg::mercurial'
|
||||||
|
'svn::subversion')
|
||||||
|
|
||||||
|
|
||||||
|
#########################################################################
|
||||||
|
# ARCHITECTURE, COMPILE FLAGS
|
||||||
|
#########################################################################
|
||||||
|
#
|
||||||
|
CARCH="x86_64"
|
||||||
|
CHOST="x86_64-pc-linux-gnu"
|
||||||
|
|
||||||
|
#-- Compiler and Linker Flags
|
||||||
|
# -march (or -mcpu) builds exclusively for an architecture
|
||||||
|
# -mtune optimizes for an architecture, but builds for whole processor family
|
||||||
|
CPPFLAGS="-D_FORTIFY_SOURCE=2"
|
||||||
|
CFLAGS="-march=x86-64 -mtune=generic -O3 -pipe -fstack-protector-strong"
|
||||||
|
CXXFLAGS="-march=x86-64 -mtune=generic -O3 -pipe -fstack-protector-strong"
|
||||||
|
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now \
|
||||||
|
-Wl,-z,pack-relative-relocs"
|
||||||
|
LTOFLAGS="-flto=auto"
|
||||||
|
#-- Make Flags: change this for DistCC/SMP systems
|
||||||
|
MAKEFLAGS="--jobs=$(nproc)"
|
||||||
|
#-- Debugging flags
|
||||||
|
DEBUG_CFLAGS="-g -fvar-tracking-assignments"
|
||||||
|
DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"
|
||||||
|
|
||||||
|
#########################################################################
|
||||||
|
# BUILD ENVIRONMENT
|
||||||
|
#########################################################################
|
||||||
|
#
|
||||||
|
# Defaults: BUILDENV=(!distcc color !ccache check !sign)
|
||||||
|
# A negated environment option will do the opposite of the comments below.
|
||||||
|
#
|
||||||
|
#-- distcc: Use the Distributed C/C++/ObjC compiler
|
||||||
|
#-- color: Colorize output messages
|
||||||
|
#-- ccache: Use ccache to cache compilation
|
||||||
|
#-- check: Run the check() function if present in the PKGBUILD
|
||||||
|
#-- sign: Generate PGP signature file
|
||||||
|
#
|
||||||
|
BUILDENV=(!distcc color ccache check !sign)
|
||||||
|
#
|
||||||
|
#-- If using DistCC, your MAKEFLAGS will also need modification. In addition,
|
||||||
|
#-- specify a space-delimited list of hosts running in the DistCC cluster.
|
||||||
|
#DISTCC_HOSTS=""
|
||||||
|
#
|
||||||
|
#-- Specify a directory for package building.
|
||||||
|
#BUILDDIR=/tmp/makepkg
|
||||||
|
|
||||||
|
#########################################################################
|
||||||
|
# GLOBAL PACKAGE OPTIONS
|
||||||
|
# These are default values for the options=() settings
|
||||||
|
#########################################################################
|
||||||
|
#
|
||||||
|
# Default: OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !optipng !upx !debug)
|
||||||
|
# A negated option will do the opposite of the comments below.
|
||||||
|
#
|
||||||
|
#-- strip: Strip symbols from binaries/libraries
|
||||||
|
#-- docs: Save doc directories specified by DOC_DIRS
|
||||||
|
#-- libtool: Leave libtool (.la) files in packages
|
||||||
|
#-- staticlibs: Leave static library (.a) files in packages
|
||||||
|
#-- emptydirs: Leave empty directories in packages
|
||||||
|
#-- zipman: Compress manual (man and info) pages in MAN_DIRS with gzip
|
||||||
|
#-- purge: Remove files specified by PURGE_TARGETS
|
||||||
|
#-- debug: Add debugging flags as specified in DEBUG_* variables
|
||||||
|
#
|
||||||
|
OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug lto)
|
||||||
|
|
||||||
|
#-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512
|
||||||
|
INTEGRITY_CHECK=(md5)
|
||||||
|
#-- Options to be used when stripping binaries. See `man strip' for details.
|
||||||
|
STRIP_BINARIES="--strip-all"
|
||||||
|
#-- Options to be used when stripping shared libraries. See `man strip' for details.
|
||||||
|
STRIP_SHARED="--strip-unneeded"
|
||||||
|
#-- Options to be used when stripping static libraries. See `man strip' for details.
|
||||||
|
STRIP_STATIC="--strip-debug"
|
||||||
|
#-- Manual (man and info) directories to compress (if zipman is specified)
|
||||||
|
MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
|
||||||
|
#-- Doc directories to remove (if !docs is specified)
|
||||||
|
DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
|
||||||
|
#-- Files to be removed from all packages (if purge is specified)
|
||||||
|
PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
|
||||||
|
|
||||||
|
#########################################################################
|
||||||
|
# PACKAGE OUTPUT
|
||||||
|
#########################################################################
|
||||||
|
#
|
||||||
|
# Default: put built package and cached source in build directory
|
||||||
|
#
|
||||||
|
#-- Destination: specify a fixed directory where all packages will be placed
|
||||||
|
#PKGDEST=/home/packages
|
||||||
|
#-- Source cache: specify a fixed directory where source files will be cached
|
||||||
|
#SRCDEST=/home/sources
|
||||||
|
#-- Source packages: specify a fixed directory where all src packages will be placed
|
||||||
|
#SRCPKGDEST=/home/srcpackages
|
||||||
|
#-- Log files: specify a fixed directory where all log files will be placed
|
||||||
|
#LOGDEST=/home/makepkglogs
|
||||||
|
#-- Packager: name/email of the person or organization building packages
|
||||||
|
#PACKAGER="John Doe <john@doe.com>"
|
||||||
|
#-- Specify a key to use for package signing
|
||||||
|
#GPGKEY=""
|
||||||
|
|
||||||
|
#########################################################################
|
||||||
|
# COMPRESSION DEFAULTS
|
||||||
|
#########################################################################
|
||||||
|
#
|
||||||
|
COMPRESSGZ=(gzip -c -f -n)
|
||||||
|
COMPRESSBZ2=(bzip2 -c -f)
|
||||||
|
COMPRESSXZ=(xz -9 -c -z -)
|
||||||
|
COMPRESSZST=(zstd -14 -c -T0 -)
|
||||||
|
COMPRESSLRZ=(lrzip -q)
|
||||||
|
COMPRESSLZO=(lzop -q)
|
||||||
|
COMPRESSZ=(compress -c -f)
|
||||||
|
COMPRESSLZ4=(lz4 -q)
|
||||||
|
COMPRESSLZ=(lzip -c -f)
|
||||||
|
|
||||||
|
|
||||||
|
#########################################################################
|
||||||
|
# EXTENSION DEFAULTS
|
||||||
|
#########################################################################
|
||||||
|
#
|
||||||
|
# WARNING: Do NOT modify these variables unless you know what you are
|
||||||
|
# doing.
|
||||||
|
#
|
||||||
|
PKGEXT='.pkg.tar.zst'
|
||||||
|
SRCEXT='.src.tar.gz'
|
||||||
|
|
||||||
|
# vim: set ft=sh ts=2 sw=2 et:
|
4
arch-builder/pacman-gitea-repository.conf
Normal file
4
arch-builder/pacman-gitea-repository.conf
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
|
||||||
|
[woggioni.gitea.woggioni.net]
|
||||||
|
SigLevel = Required
|
||||||
|
Server = https://gitea.woggioni.net/api/packages/woggioni/arch/default/x86_64
|
3
arch-builder/sccache_config.toml
Normal file
3
arch-builder/sccache_config.toml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
[cache.disk]
|
||||||
|
dir = "/home/luser/.cache/sccache"
|
||||||
|
size = 12884901888 # 12 GiBytes
|
19
arch-builder/woggioni.net.ca.pem
Normal file
19
arch-builder/woggioni.net.ca.pem
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
-----BEGIN CERTIFICATE-----
|
||||||
|
MIIDADCCAmKgAwIBAgIIO2L7XtRN+bwwCgYIKoZIzj0EAwQwgYUxCzAJBgNVBAYT
|
||||||
|
AklUMRAwDgYDVQQDEwdSb290IENBMQswCQYDVQQrEwJXTzERMA8GA1UEQRMId29n
|
||||||
|
Z2lvbmkxITAfBgNVBA0TGFdhbHRlciBPZ2dpb25pJ3MgUm9vdCBDQTEPMA0GA1UE
|
||||||
|
KhMGV2FsdGVyMRAwDgYDVQQEEwdPZ2dpb25pMCAXDTIzMDMwNDA3MjkwMFoYDzIw
|
||||||
|
ODgxMDI1MDIwMDAwWjCBhTELMAkGA1UEBhMCSVQxEDAOBgNVBAMTB1Jvb3QgQ0Ex
|
||||||
|
CzAJBgNVBCsTAldPMREwDwYDVQRBEwh3b2dnaW9uaTEhMB8GA1UEDRMYV2FsdGVy
|
||||||
|
IE9nZ2lvbmkncyBSb290IENBMQ8wDQYDVQQqEwZXYWx0ZXIxEDAOBgNVBAQTB09n
|
||||||
|
Z2lvbmkwgZswEAYHKoZIzj0CAQYFK4EEACMDgYYABAAnz0lcWZvbLHOiguC/Ax7B
|
||||||
|
ZI85vd2OT/YqDCYPnQtOsQPgUNrun/3tR9s0/W4XH8294mZplg373a0KOawaKzqz
|
||||||
|
tQEK5JXLQABYs/iCJpWVDGWgEZIOBAxhW5UHlpvCDIPYk2D12wijJ0Gd8oLdnu8H
|
||||||
|
rnNegYqs5r9uWrNcWjnWBoVj3qN1MHMwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4E
|
||||||
|
FgQUcjx/Fuwuncxwt3F3LqoXI27rOiUwCwYDVR0PBAQDAgEGMDQGCCsGAQUFBwEB
|
||||||
|
BCgwJjAkBggrBgEFBQcwAYYYaHR0cDovL3dvZ2dpb25pLm5ldC9vY3NwMAoGCCqG
|
||||||
|
SM49BAMEA4GLADCBhwJBerGRivjCvA9e/UVs0qjpgKLlE2+uTGONUcLWUErxEqsJ
|
||||||
|
Mr+MQPJoqJo43JvAFC/vB2xAXr+ZwR0Tc0fRSyxN3C8CQgH5/kFPPnISpzEXxks4
|
||||||
|
hfDiOG/Kc8FhhNU07dNIrhWJxh5HcD+deItcEmSRSeMQtVjrbSv1/HydJ8jLSh49
|
||||||
|
7gL5cA==
|
||||||
|
-----END CERTIFICATE-----
|
14
bee-dashboard/Dockerfile
Normal file
14
bee-dashboard/Dockerfile
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
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
|
2
bee-dashboard/_headers
Normal file
2
bee-dashboard/_headers
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
/*
|
||||||
|
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;
|
7
bee-dashboard/bee-dashboard.conf
Normal file
7
bee-dashboard/bee-dashboard.conf
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
server {
|
||||||
|
listen 8080;
|
||||||
|
root /srv/http;
|
||||||
|
location / {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
12
dyndns/Dockerfile
Normal file
12
dyndns/Dockerfile
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
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"
|
3
dyndns/pip.conf
Normal file
3
dyndns/pip.conf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
[global]
|
||||||
|
index-url = https://gitea.woggioni.net/api/packages/woggioni/pypi/simple
|
||||||
|
extra-index-url = https://pypi.org/simple
|
@@ -1,25 +1,40 @@
|
|||||||
FROM alpine:3.19 AS build
|
FROM alpine:3.21 AS build-base
|
||||||
RUN --mount=type=cache,target=/var/cache/apk/,sharing=locked \
|
RUN --mount=type=cache,target=/var/cache/apk/,sharing=locked \
|
||||||
apk update &&\
|
apk update &&\
|
||||||
apk add python3 python3-dev openjdk21-jre pipx gcc g++ musl-dev linux-headers which curl libffi-dev
|
apk add python3 python3-dev pipx gcc g++ musl-dev linux-headers which curl libffi-dev git
|
||||||
RUN curl -O https://repo1.maven.org/maven2/dev/hcf/ganymede/ganymede/2.1.2.20230910/ganymede-2.1.2.20230910.jar
|
|
||||||
RUN adduser jovyan -u 1000 --system -s /bin/sh -h /home/jovyan
|
RUN adduser jovyan -u 1000 --system -s /bin/sh -h /home/jovyan
|
||||||
|
|
||||||
|
FROM build-base AS java-build
|
||||||
|
RUN --mount=type=cache,target=/var/cache/apk/,sharing=locked \
|
||||||
|
apk add openjdk11-jdk maven
|
||||||
|
USER jovyan
|
||||||
|
WORKDIR /home/jovyan
|
||||||
|
#RUN curl -O https://repo1.maven.org/maven2/dev/hcf/ganymede/ganymede/2.1.2.20230910/ganymede-2.1.2.20230910.jar
|
||||||
|
#ADD --chown=jovyan:jovyan https://github.com/allen-ball/ganymede.git ganymede
|
||||||
|
RUN git clone https://github.com/allen-ball/ganymede.git ganymede
|
||||||
|
WORKDIR /home/jovyan/ganymede
|
||||||
|
RUN --mount=type=cache,target=/home/jovyan/.m2/,uid=1000,gid=1000,sharing=locked mvn -Dmaven.test.skip=true -q package
|
||||||
|
|
||||||
|
FROM build-base AS python-build
|
||||||
|
RUN --mount=type=cache,target=/var/cache/apk/,sharing=locked \
|
||||||
|
apk add openjdk21-jre
|
||||||
USER jovyan
|
USER jovyan
|
||||||
WORKDIR /home/jovyan
|
WORKDIR /home/jovyan
|
||||||
RUN python -m venv venv
|
RUN python -m venv venv
|
||||||
RUN venv/bin/pip install jupyter-core
|
RUN --mount=type=cache,target=/home/jovyan/.cache/pip,uid=1000,gid=1000 venv/bin/pip install jupyter-core
|
||||||
RUN venv/bin/pip install notebook==5.7.16
|
RUN --mount=type=cache,target=/home/jovyan/.cache/pip,uid=1000,gid=1000 venv/bin/pip install notebook jupyterlab
|
||||||
ENV PATH="/home/jovyan/venv/bin/:$PATH"
|
ENV PATH="/home/jovyan/venv/bin/:$PATH"
|
||||||
RUN java -jar /ganymede-2.1.2.20230910.jar -i --copy-jar=true
|
RUN --mount=type=bind,from=java-build,src=/home/jovyan/ganymede/ganymede/target/ganymede-2.1.3-SNAPSHOT.jar,target=/home/jovyan/ganymede.jar\
|
||||||
RUN venv/bin/pip install jupyterhub
|
java -jar /home/jovyan/ganymede.jar -i --copy-jar=true
|
||||||
|
RUN --mount=type=cache,target=/home/jovyan/.cache/pip,uid=1000,gid=1000 venv/bin/pip install jupyterhub
|
||||||
|
|
||||||
FROM alpine:3.19
|
FROM alpine:3.21
|
||||||
RUN --mount=type=cache,target=/var/cache/apk/,sharing=locked \
|
RUN --mount=type=cache,target=/var/cache/apk/,sharing=locked \
|
||||||
apk update &&\
|
apk update &&\
|
||||||
apk add python3 openjdk21-jre
|
apk add python3 openjdk21-jre
|
||||||
RUN adduser jovyan -u 1000 --system -s /bin/sh -h /home/jovyan
|
RUN adduser jovyan -u 1000 --system -s /bin/sh -h /home/jovyan
|
||||||
USER jovyan
|
USER jovyan
|
||||||
COPY --from=build /home/jovyan /home/jovyan
|
COPY --from=python-build /home/jovyan /home/jovyan
|
||||||
COPY jupyter_server_config.py docker_healthcheck.py /etc/jupyter/
|
COPY jupyter_server_config.py docker_healthcheck.py /etc/jupyter/
|
||||||
COPY start-notebook.py start-singleuser.py /usr/local/bin/
|
COPY start-notebook.py start-singleuser.py /usr/local/bin/
|
||||||
RUN mkdir /home/jovyan/work
|
RUN mkdir /home/jovyan/work
|
||||||
|
@@ -2,25 +2,25 @@ 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
|
apt install -y python3 python3-dev pipx gcc g++ libffi-dev cargo cmake autoconf swig ninja-build patchelf meson python3-faiss adduser
|
||||||
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
|
||||||
RUN python3 -m venv venv
|
RUN python3 -m venv venv
|
||||||
RUN venv/bin/pip install solders
|
RUN --mount=type=cache,target=/home/jovyan/.cache/pip,uid=1000,gid=1000 venv/bin/pip install solders
|
||||||
RUN venv/bin/pip install solana
|
RUN --mount=type=cache,target=/home/jovyan/.cache/pip,uid=1000,gid=1000 venv/bin/pip install solana
|
||||||
RUN venv/bin/pip install numpy
|
RUN --mount=type=cache,target=/home/jovyan/.cache/pip,uid=1000,gid=1000 venv/bin/pip install numpy
|
||||||
RUN venv/bin/pip install matplotlib
|
RUN --mount=type=cache,target=/home/jovyan/.cache/pip,uid=1000,gid=1000 venv/bin/pip install matplotlib
|
||||||
RUN venv/bin/pip install jupyter-core
|
RUN --mount=type=cache,target=/home/jovyan/.cache/pip,uid=1000,gid=1000 venv/bin/pip install jupyter-core
|
||||||
RUN venv/bin/pip install jupyterhub
|
RUN --mount=type=cache,target=/home/jovyan/.cache/pip,uid=1000,gid=1000 venv/bin/pip install jupyterhub
|
||||||
RUN venv/bin/pip install jupyterlab
|
RUN --mount=type=cache,target=/home/jovyan/.cache/pip,uid=1000,gid=1000 venv/bin/pip install jupyterlab
|
||||||
RUN venv/bin/pip install notebook
|
RUN --mount=type=cache,target=/home/jovyan/.cache/pip,uid=1000,gid=1000 venv/bin/pip install notebook
|
||||||
RUN venv/bin/pip install ipywidgets
|
RUN --mount=type=cache,target=/home/jovyan/.cache/pip,uid=1000,gid=1000 venv/bin/pip install ipywidgets
|
||||||
RUN venv/bin/pip install jupyterlab-lsp
|
RUN --mount=type=cache,target=/home/jovyan/.cache/pip,uid=1000,gid=1000 venv/bin/pip install jupyterlab-lsp
|
||||||
RUN venv/bin/pip install python-lsp-server[yapf,rope,pyflakes]
|
RUN --mount=type=cache,target=/home/jovyan/.cache/pip,uid=1000,gid=1000 venv/bin/pip install python-lsp-server[yapf,rope,pyflakes]
|
||||||
# RUN venv/bin/pip install --no-binary :all: faiss-cpu
|
# RUN venv/bin/pip install --no-binary :all: faiss-cpu
|
||||||
RUN venv/bin/pip install jupyter-ai
|
RUN --mount=type=cache,target=/home/jovyan/.cache/pip,uid=1000,gid=1000 venv/bin/pip install jupyter-ai
|
||||||
RUN venv/bin/pip install langchain-openai
|
RUN --mount=type=cache,target=/home/jovyan/.cache/pip,uid=1000,gid=1000 venv/bin/pip install langchain-openai langchain_ollama
|
||||||
|
|
||||||
#RUN venv/bin/pip install pylsp-mypy
|
#RUN venv/bin/pip install pylsp-mypy
|
||||||
ENV PATH="/home/jovyan/venv/bin/:$PATH"
|
ENV PATH="/home/jovyan/venv/bin/:$PATH"
|
||||||
@@ -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
|
apt install -y python3 adduser
|
||||||
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
|
||||||
|
31
jupyterhub/Dockerfile
Normal file
31
jupyterhub/Dockerfile
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
FROM alpine:latest AS base
|
||||||
|
|
||||||
|
ARG VERSION
|
||||||
|
|
||||||
|
RUN --mount=type=cache,target=/var/cache/apk apk update
|
||||||
|
RUN --mount=type=cache,target=/var/cache/apk apk add python3 nodejs libcurl
|
||||||
|
|
||||||
|
RUN adduser -D -u 1000 jupyterhub
|
||||||
|
RUN mkdir -p /var/lib/jupyterhub
|
||||||
|
RUN chown jupyterhub:jupyterhub /var/lib/jupyterhub
|
||||||
|
|
||||||
|
FROM base AS build
|
||||||
|
USER root
|
||||||
|
RUN --mount=type=cache,target=/var/cache/apk apk add npm curl-dev gcc musl-dev python3-dev
|
||||||
|
RUN --mount=type=cache,target=/home/jupyterhub/.cache/pip npm install -g configurable-http-proxy
|
||||||
|
USER jupyterhub
|
||||||
|
WORKDIR /var/lib/jupyterhub
|
||||||
|
RUN python3 -m venv .
|
||||||
|
RUN --mount=type=cache,target=/home/jupyterhub/.cache/pip ./bin/pip install "jupyterhub==${VERSION}" jupyterhub_idle_culler dockerspawner psycopg2-binary oauthenticator pycurl
|
||||||
|
|
||||||
|
|
||||||
|
FROM base AS release
|
||||||
|
USER root
|
||||||
|
COPY --from=build /usr/local/lib/node_modules /usr/local/lib/node_modules
|
||||||
|
RUN ln -s ../lib/node_modules/configurable-http-proxy/bin/configurable-http-proxy /usr/local/bin/configurable-http-proxy
|
||||||
|
COPY --from=build /var/lib/jupyterhub /var/lib/jupyterhub
|
||||||
|
USER jupyterhub
|
||||||
|
WORKDIR /home/jupyterhub
|
||||||
|
ENV PATH="/var/lib/jupyterhub/bin/:$PATH"
|
||||||
|
EXPOSE 43080
|
||||||
|
ENTRYPOINT ["jupyterhub"]
|
112
nginx/Dockerfile
Normal file
112
nginx/Dockerfile
Normal file
@@ -0,0 +1,112 @@
|
|||||||
|
ARG NGINX_BRANCH=vanilla
|
||||||
|
FROM alpine:latest AS base
|
||||||
|
|
||||||
|
FROM alpine:latest AS build_stage_1
|
||||||
|
ARG NGINX_VERSION LIBRESSL_VERSION=4.1.0
|
||||||
|
ENV NGINX_VERSION=${NGINX_VERSION}
|
||||||
|
RUN --mount=type=cache,target=/var/cache/apk apk update
|
||||||
|
RUN --mount=type=cache,target=/var/cache/apk apk add \
|
||||||
|
autoconf \
|
||||||
|
automake \
|
||||||
|
bind-tools \
|
||||||
|
binutils \
|
||||||
|
build-base \
|
||||||
|
ca-certificates \
|
||||||
|
cmake \
|
||||||
|
curl \
|
||||||
|
gcc \
|
||||||
|
gd-dev \
|
||||||
|
geoip-dev \
|
||||||
|
git \
|
||||||
|
gnupg \
|
||||||
|
go \
|
||||||
|
libc-dev \
|
||||||
|
libgcc \
|
||||||
|
libstdc++ \
|
||||||
|
libtool \
|
||||||
|
libxslt-dev \
|
||||||
|
linux-headers \
|
||||||
|
make \
|
||||||
|
ninja \
|
||||||
|
pcre \
|
||||||
|
pcre-dev \
|
||||||
|
perl-dev \
|
||||||
|
su-exec \
|
||||||
|
tar \
|
||||||
|
tzdata \
|
||||||
|
zlib \
|
||||||
|
zlib-dev \
|
||||||
|
mercurial
|
||||||
|
RUN adduser -D luser
|
||||||
|
USER luser
|
||||||
|
WORKDIR /home/luser
|
||||||
|
|
||||||
|
#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
|
||||||
|
RUN tar -xzf libressl.tgz && mv libressl-${LIBRESSL_VERSION} libressl && rm libressl.tgz
|
||||||
|
RUN mkdir -p libressl/build
|
||||||
|
RUN cmake -G Ninja -B libressl/build -S libressl \
|
||||||
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
|
-DLIBRESSL_APPS=OFF \
|
||||||
|
-DLIBRESSL_SKIP_INSTALL=ON \
|
||||||
|
-DENABLE_ASM=OFF \
|
||||||
|
-DENABLE_NC=OFF \
|
||||||
|
-DLIBRESSL_TESTS=OFF \
|
||||||
|
-DBUILD_SHARED_LIBS=OFF
|
||||||
|
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
|
||||||
|
|
||||||
|
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/google/ngx_brotli.git /ngx_brotli
|
||||||
|
USER root
|
||||||
|
WORKDIR /
|
||||||
|
RUN hg clone http://hg.nginx.org/njs /njs
|
||||||
|
RUN chown luser:luser -R /njs
|
||||||
|
USER luser
|
||||||
|
WORKDIR /home/luser
|
||||||
|
ADD --chown=luser:luser --chmod=755 ./build.sh ./build.sh
|
||||||
|
RUN ./build.sh
|
||||||
|
|
||||||
|
|
||||||
|
FROM base AS release
|
||||||
|
ARG VERSION
|
||||||
|
ENV NGINX_VERSION=${VERSION}
|
||||||
|
|
||||||
|
RUN addgroup -S nginx
|
||||||
|
RUN adduser -D -S -h /var/cache/nginx -s /sbin/nologin -G nginx nginx
|
||||||
|
|
||||||
|
RUN --mount=type=cache,target=/var/cache/apk apk add --virtual .install_deps make perl-dev gettext binutils
|
||||||
|
RUN --mount=type=cache,target=/var/cache/apk \
|
||||||
|
--mount=type=bind,from=build,source=/nginx,target=/nginx \
|
||||||
|
--mount=type=bind,from=build,source=/ngx_headers_more,target=/ngx_headers_more \
|
||||||
|
--mount=type=bind,from=build,source=/ngx_brotli,target=/ngx_brotli \
|
||||||
|
--mount=type=bind,from=build,source=/njs,target=/njs \
|
||||||
|
--mount=type=bind,source=install.sh,target=/install.sh \
|
||||||
|
(cd nginx && sh /install.sh)
|
||||||
|
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.vh.no-default.conf /etc/nginx/conf.d/default.conf
|
||||||
|
COPY conf/dhparam /etc/nginx/dhparam
|
||||||
|
|
||||||
|
LABEL description="NGINX Docker built top of LibreSSL" \
|
||||||
|
maintainer="Walter Oggioni <oggioni.walter@gmail.com>" \
|
||||||
|
openssl="LibreSSL" \
|
||||||
|
nginx="nginx ${NGINX_VERSION}"
|
||||||
|
|
||||||
|
EXPOSE 80 443 443/udp
|
||||||
|
|
||||||
|
STOPSIGNAL SIGTERM
|
||||||
|
|
||||||
|
CMD ["nginx", "-g", "daemon off;"]
|
59
nginx/build.sh
Normal file
59
nginx/build.sh
Normal file
@@ -0,0 +1,59 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
CONFIG='
|
||||||
|
--prefix=/etc/nginx
|
||||||
|
--sbin-path=/usr/sbin/nginx
|
||||||
|
--modules-path=/usr/lib/nginx/modules
|
||||||
|
--conf-path=/etc/nginx/nginx.conf
|
||||||
|
--error-log-path=/var/log/nginx/error.log
|
||||||
|
--http-log-path=/var/log/nginx/access.log
|
||||||
|
--pid-path=/var/run/nginx.pid
|
||||||
|
--lock-path=/var/run/nginx.lock
|
||||||
|
--http-client-body-temp-path=/var/cache/nginx/client_temp
|
||||||
|
--http-proxy-temp-path=/var/cache/nginx/proxy_temp
|
||||||
|
--http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp
|
||||||
|
--http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp
|
||||||
|
--http-scgi-temp-path=/var/cache/nginx/scgi_temp
|
||||||
|
--user=nginx
|
||||||
|
--group=nginx
|
||||||
|
--with-http_ssl_module
|
||||||
|
--with-http_realip_module
|
||||||
|
--with-http_addition_module
|
||||||
|
--with-http_sub_module
|
||||||
|
--with-http_dav_module
|
||||||
|
--with-http_flv_module
|
||||||
|
--with-http_mp4_module
|
||||||
|
--with-http_gunzip_module
|
||||||
|
--with-http_gzip_static_module
|
||||||
|
--with-http_random_index_module
|
||||||
|
--with-http_secure_link_module
|
||||||
|
--with-http_stub_status_module
|
||||||
|
--with-http_auth_request_module
|
||||||
|
--with-http_xslt_module=dynamic
|
||||||
|
--with-http_geoip_module=dynamic
|
||||||
|
--with-threads
|
||||||
|
--with-stream
|
||||||
|
--with-stream_ssl_module
|
||||||
|
--with-stream_ssl_preread_module
|
||||||
|
--with-stream_realip_module
|
||||||
|
--with-stream_geoip_module=dynamic
|
||||||
|
--with-http_slice_module
|
||||||
|
--with-mail
|
||||||
|
--with-mail_ssl_module
|
||||||
|
--with-compat
|
||||||
|
--with-file-aio
|
||||||
|
--with-http_v2_module
|
||||||
|
--with-http_v3_module
|
||||||
|
--add-dynamic-module=/ngx_headers_more
|
||||||
|
--add-dynamic-module=/ngx_brotli
|
||||||
|
--add-dynamic-module=/njs/nginx
|
||||||
|
'
|
||||||
|
|
||||||
|
cd /nginx
|
||||||
|
|
||||||
|
auto/configure $CONFIG \
|
||||||
|
--with-cc-opt="-I/home/luser/libressl/build/include" \
|
||||||
|
--with-ld-opt="-lstdc++ -L/home/luser/libressl/build/ssl -L/home/luser/libressl/build/crypto"
|
||||||
|
make -j$(nproc)
|
8
nginx/conf/dhparam
Normal file
8
nginx/conf/dhparam
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
-----BEGIN DH PARAMETERS-----
|
||||||
|
MIIBCAKCAQEA//////////+t+FRYortKmq/cViAnPTzx2LnFg84tNpWp4TZBFGQz
|
||||||
|
+8yTnc4kmz75fS/jY2MMddj2gbICrsRhetPfHtXV/WVhJDP1H18GbtCFY2VVPe0a
|
||||||
|
87VXE15/V8k1mE8McODmi3fipona8+/och3xWKE2rec1MKzKT0g6eXq8CrGCsyT7
|
||||||
|
YdEIqUuyyOP7uWrat2DX9GgdT0Kj3jlN9K5W7edjcrsZCwenyO4KbXCeAvzhzffi
|
||||||
|
7MA0BM0oNC9hkXL+nOmFg/+OTxIy7vKBg8P+OxtMb61zO7X8vC7CIAXFjvGDfRaD
|
||||||
|
ssbzSibBsu/6iGtCOGEoXJf//////////wIBAg==
|
||||||
|
-----END DH PARAMETERS-----
|
128
nginx/conf/nginx.conf
Normal file
128
nginx/conf/nginx.conf
Normal file
@@ -0,0 +1,128 @@
|
|||||||
|
|
||||||
|
load_module modules/ngx_http_xslt_filter_module.so;
|
||||||
|
#load_module modules/ngx_http_image_filter_module.so;
|
||||||
|
load_module modules/ngx_http_geoip_module.so;
|
||||||
|
#load_module modules/ngx_http_perl_module.so;
|
||||||
|
load_module modules/ngx_stream_geoip_module.so;
|
||||||
|
load_module modules/ngx_http_headers_more_filter_module.so;
|
||||||
|
load_module modules/ngx_http_brotli_static_module.so;
|
||||||
|
load_module modules/ngx_http_brotli_filter_module.so;
|
||||||
|
#load_module modules/ngx_http_js_module.so;
|
||||||
|
|
||||||
|
user nginx;
|
||||||
|
worker_processes 1;
|
||||||
|
|
||||||
|
error_log /var/log/nginx/error.log warn;
|
||||||
|
pid /var/run/nginx.pid;
|
||||||
|
|
||||||
|
pcre_jit on;
|
||||||
|
|
||||||
|
events {
|
||||||
|
worker_connections 1024;
|
||||||
|
}
|
||||||
|
|
||||||
|
http {
|
||||||
|
include /etc/nginx/mime.types;
|
||||||
|
default_type application/octet-stream;
|
||||||
|
|
||||||
|
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
||||||
|
'$status $body_bytes_sent "$http_referer" '
|
||||||
|
'"$http_user_agent" "$http_x_forwarded_for"';
|
||||||
|
|
||||||
|
access_log /var/log/nginx/access.log main;
|
||||||
|
|
||||||
|
sendfile on;
|
||||||
|
aio threads;
|
||||||
|
|
||||||
|
tcp_nopush on;
|
||||||
|
tcp_nodelay on;
|
||||||
|
server_tokens off;
|
||||||
|
|
||||||
|
keepalive_disable msie6;
|
||||||
|
|
||||||
|
# intermediate configuration
|
||||||
|
ssl_protocols TLSv1.2 TLSv1.3;
|
||||||
|
ssl_ecdh_curve X25519:prime256v1:secp384r1;
|
||||||
|
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 off;
|
||||||
|
|
||||||
|
# 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;
|
||||||
|
|
||||||
|
http2 on;
|
||||||
|
http3 on;
|
||||||
|
http3_hq on;
|
||||||
|
quic_gso on;
|
||||||
|
quic_retry on;
|
||||||
|
ssl_early_data off;
|
||||||
|
|
||||||
|
gzip_static on;
|
||||||
|
gzip on;
|
||||||
|
gzip_comp_level 5;
|
||||||
|
gzip_min_length 512;
|
||||||
|
gzip_proxied any;
|
||||||
|
gzip_vary on;
|
||||||
|
gzip_disable "msie6";
|
||||||
|
|
||||||
|
gzip_types
|
||||||
|
application/atom+xml
|
||||||
|
application/javascript
|
||||||
|
application/json
|
||||||
|
application/ld+json
|
||||||
|
application/manifest+json
|
||||||
|
application/rss+xml
|
||||||
|
application/vnd.geo+json
|
||||||
|
application/vnd.ms-fontobject
|
||||||
|
application/x-font-ttf
|
||||||
|
application/x-web-app-manifest+json
|
||||||
|
application/xhtml+xml
|
||||||
|
application/xml
|
||||||
|
font/opentype
|
||||||
|
image/bmp
|
||||||
|
image/svg+xml
|
||||||
|
image/x-icon
|
||||||
|
text/cache-manifest
|
||||||
|
text/css
|
||||||
|
text/plain
|
||||||
|
text/vcard
|
||||||
|
text/vnd.rim.location.xloc
|
||||||
|
text/vtt text/x-component
|
||||||
|
text/x-cross-domain-policy
|
||||||
|
application/wasm;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
brotli_static on;
|
||||||
|
brotli on;
|
||||||
|
brotli_comp_level 6;
|
||||||
|
brotli_types
|
||||||
|
application/atom+xml
|
||||||
|
application/javascript
|
||||||
|
application/json
|
||||||
|
application/rss+xml
|
||||||
|
application/vnd.ms-fontobject
|
||||||
|
application/x-font-opentype
|
||||||
|
application/x-font-truetype
|
||||||
|
application/x-font-ttf
|
||||||
|
application/x-javascript
|
||||||
|
application/xhtml+xml
|
||||||
|
application/xml
|
||||||
|
font/eot
|
||||||
|
font/opentype
|
||||||
|
font/otf
|
||||||
|
font/truetype
|
||||||
|
image/svg+xml
|
||||||
|
image/vnd.microsoft.icon
|
||||||
|
image/x-icon
|
||||||
|
image/x-win-bitmap
|
||||||
|
text/css
|
||||||
|
text/javascript
|
||||||
|
text/plain
|
||||||
|
text/xml
|
||||||
|
application/wasm;
|
||||||
|
|
||||||
|
|
||||||
|
include /etc/nginx/conf.d/*.conf;
|
||||||
|
}
|
17
nginx/conf/nginx.vh.no-default.conf
Normal file
17
nginx/conf/nginx.vh.no-default.conf
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
# Drop requests for unknown hosts
|
||||||
|
#
|
||||||
|
# If no default server is defined, nginx will use the first found server.
|
||||||
|
# To prevent host header attacks, or other potential problems when an unknown
|
||||||
|
# servername is used in a request, it's recommended to drop the request
|
||||||
|
# returning 444 "no response".
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 80 default_server;
|
||||||
|
return 444;
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 443 ssl default_server;
|
||||||
|
http2 on;
|
||||||
|
ssl_reject_handshake on;
|
||||||
|
}
|
27
nginx/install.sh
Normal file
27
nginx/install.sh
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
set -e
|
||||||
|
make install
|
||||||
|
rm -rf /etc/nginx/html/
|
||||||
|
mkdir -p /etc/nginx/conf.d/
|
||||||
|
mkdir -p /usr/share/nginx/html/
|
||||||
|
install -m644 docs/html/index.html /usr/share/nginx/html/
|
||||||
|
install -m644 docs/html/50x.html /usr/share/nginx/html/
|
||||||
|
ln -s ../../usr/lib/nginx/modules /etc/nginx/modules
|
||||||
|
strip /usr/sbin/nginx*
|
||||||
|
strip /usr/lib/nginx/modules/*.so
|
||||||
|
|
||||||
|
# Bring in gettext so we can get `envsubst`, then throw
|
||||||
|
# the rest away. To do this, we need to install `gettext`
|
||||||
|
# then move `envsubst` out of the way so `gettext` can
|
||||||
|
# be deleted completely, then move `envsubst` back.
|
||||||
|
|
||||||
|
apk add --no-cache --virtual .gettext gettext
|
||||||
|
mv /usr/bin/envsubst /tmp/
|
||||||
|
runDeps="libintl libxml2 musl zlib tzdata ca-certificates pcre brotli-libs libxslt geoip"
|
||||||
|
apk add --no-cache $runDeps
|
||||||
|
apk del .gettext
|
||||||
|
mv /tmp/envsubst /usr/local/bin/
|
||||||
|
# forward request and error logs to docker log collect
|
||||||
|
mkdir -p /var/log/nginx
|
||||||
|
ln -sf /dev/stdout /var/log/nginx/access.log
|
||||||
|
ln -sf /dev/stderr /var/log/nginx/error.log
|
14
pgvector/Dockerfile
Normal file
14
pgvector/Dockerfile
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
ARG PG_VERSION=17
|
||||||
|
FROM postgres:${PG_VERSION}-alpine AS build
|
||||||
|
|
||||||
|
WORKDIR /
|
||||||
|
RUN apk update
|
||||||
|
RUN apk add gcc make musl-dev clang19 llvm19 git
|
||||||
|
RUN git clone --branch v0.8.0 https://github.com/pgvector/pgvector.git pgvector
|
||||||
|
WORKDIR pgvector
|
||||||
|
RUN make
|
||||||
|
RUN make install
|
||||||
|
|
||||||
|
FROM postgres:alpine AS release
|
||||||
|
RUN rm -rf /usr/local
|
||||||
|
COPY --from=build /usr/local /usr/local
|
9
pgvector/pg_upgrade.dockerfile
Normal file
9
pgvector/pg_upgrade.dockerfile
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
FROM gitea.woggioni.net/woggioni/pgvector:0.8.0-pg16 AS release-16
|
||||||
|
RUN --mount=type=cache,target=/var/cache/apk apk update
|
||||||
|
RUN --mount=type=cache,target=/var/cache/apk apk add patchelf
|
||||||
|
RUN find /usr/local/bin -type f ! -name "*.sh" -exec patchelf --set-rpath /usr/local-16/lib {} \;
|
||||||
|
|
||||||
|
FROM gitea.woggioni.net/woggioni/pgvector:0.8.0-pg17 AS release-17
|
||||||
|
|
||||||
|
COPY --from=release-16 /usr/local/ /usr/local-16/
|
||||||
|
|
3
rlevtree/Dockerfile
Normal file
3
rlevtree/Dockerfile
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
FROM scratch
|
||||||
|
ADD benchmark.wasm /benchmark.wasm
|
||||||
|
CMD ["/benchmark.wasm"]
|
BIN
rlevtree/benchmark.wasm
Normal file
BIN
rlevtree/benchmark.wasm
Normal file
Binary file not shown.
@@ -1,43 +1,34 @@
|
|||||||
FROM --platform=$BUILDPLATFORM rust:alpine AS builder
|
FROM --platform=$BUILDPLATFORM gitea.woggioni.net/woggioni/arch-builder:rust-full AS base
|
||||||
|
|
||||||
ARG VERSION TARGETPLATFORM BUILDPLATFORM
|
ARG VERSION TARGETPLATFORM BUILDPLATFORM
|
||||||
|
|
||||||
RUN set -x \
|
WORKDIR /home/luser/shadowsocks-rust
|
||||||
&& apk add --no-cache build-base cmake llvm15-dev clang15-libclang clang15 rust-bindgen git rustup curl
|
|
||||||
|
|
||||||
WORKDIR /root/shadowsocks-rust
|
|
||||||
|
|
||||||
RUN git clone --depth 1 --branch "v${VERSION}" https://github.com/shadowsocks/shadowsocks-rust.git .
|
RUN git clone --depth 1 --branch "v${VERSION}" https://github.com/shadowsocks/shadowsocks-rust.git .
|
||||||
|
|
||||||
RUN case "$TARGETPLATFORM" in \
|
FROM base AS builder-linux_386
|
||||||
"linux/386") \
|
ENV RUST_TARGET="i686-unknown-linux-musl"
|
||||||
RUST_TARGET="i686-unknown-linux-musl" \
|
|
||||||
MUSL="i686-linux-musl" \
|
FROM base AS builder-linux_amd64
|
||||||
;; \
|
ENV RUST_TARGET="x86_64-unknown-linux-musl"
|
||||||
"linux/amd64") \
|
ENV CC_x86_64-unknown-linux-musl=/opt/x-tools/x86_64-unknown-linux-musl/bin/x86_64-unknown-linux-musl-gcc
|
||||||
RUST_TARGET="x86_64-unknown-linux-musl" \
|
ENV CXX_x86_64-unknown-linux-musl=/opt/x-tools/x86_64-unknown-linux-musl/bin/x86_64-unknown-linux-musl-g++
|
||||||
MUSL="x86_64-linux-musl" \
|
|
||||||
;; \
|
FROM base AS builder-linux_arm64
|
||||||
"linux/arm64") \
|
ENV RUST_TARGET="aarch64-unknown-linux-musl"
|
||||||
RUST_TARGET="aarch64-unknown-linux-musl" \
|
ENV CC_aarch64_unknown_linux_musl=/opt/x-tools/aarch64-unknown-linux-musl/bin/aarch64-unknown-linux-musl-gcc
|
||||||
MUSL="aarch64-linux-musl" \
|
ENV CXX_aarch64_unknown_linux_musl=/opt/x-tools/aarch64-unknown-linux-musl/bin/aarch64-unknown-linux-musl-g++
|
||||||
;; \
|
|
||||||
"linux/arm/v7") \
|
|
||||||
RUST_TARGET="arm-unknown-linux-musleabihf" \
|
FROM base AS builder-linux_arm_v7
|
||||||
MUSL="arm-linux-musleabihf" \
|
ENV RUST_TARGET="arm-unknown-linux-musleabihf"
|
||||||
;; \
|
ENV CC_armv7_unknown_linux_musleabihf=/opt/x-tools/arm-unknown-linux-musleabi/bin/arm-unknown-linux-musleabi-gcc
|
||||||
*) \
|
ENV CXX_armv7_unknown_linux_musleabihf=/opt/x-tools/arm-unknown-linux-musleabi/bin/arm-unknown-linux-musleabi-g++
|
||||||
echo "Doesn't support $TARGETPLATFORM architecture" \
|
|
||||||
exit 1 \
|
|
||||||
;; \
|
FROM builder-${TARGETPLATFORM/\//_} AS builder
|
||||||
esac \
|
RUN rustup target add $RUST_TARGET
|
||||||
&& wget -qO- "https://musl.cc/$MUSL-cross.tgz" | tar -xzC /root/ \
|
RUN cargo +stable build --locked --target "$RUST_TARGET" --release --features "full,aead-cipher-extra,aead-cipher-2022-extra,security-replay-attack-detect" \
|
||||||
&& PATH="/root/$MUSL-cross/bin:$PATH" \
|
|
||||||
&& CC=/root/$MUSL-cross/bin/$MUSL-gcc \
|
|
||||||
&& echo "CC=$CC" \
|
|
||||||
&& rustup override set stable \
|
|
||||||
&& rustup target add "$RUST_TARGET" \
|
|
||||||
&& RUSTFLAGS="-C linker=$CC" CC=$CC cargo build --target "$RUST_TARGET" --release --features "full-extra" \
|
|
||||||
&& mv target/$RUST_TARGET/release/ss* target/release/
|
&& mv target/$RUST_TARGET/release/ss* target/release/
|
||||||
|
|
||||||
COPY download_v2ray.sh download_v2ray.sh
|
COPY download_v2ray.sh download_v2ray.sh
|
||||||
@@ -48,20 +39,20 @@ RUN ./download_xray.sh "$TARGETPLATFORM"
|
|||||||
FROM busybox:musl AS sslocal
|
FROM busybox:musl AS sslocal
|
||||||
|
|
||||||
# NOTE: Please be careful to change the path of these binaries, refer to #1149 for more information.
|
# NOTE: Please be careful to change the path of these binaries, refer to #1149 for more information.
|
||||||
COPY --from=builder /root/shadowsocks-rust/target/release/sslocal /usr/bin/
|
COPY --from=builder --chown=root:root /home/luser/shadowsocks-rust/target/release/sslocal /usr/bin/
|
||||||
COPY --from=builder /root/shadowsocks-rust/examples/config.json /etc/shadowsocks-rust/
|
COPY --from=builder --chown=root:root /home/luser/shadowsocks-rust/examples/config.json /etc/shadowsocks-rust/
|
||||||
COPY --from=builder /root/shadowsocks-rust/docker/docker-entrypoint.sh /usr/bin/
|
COPY --from=builder --chown=root:root /home/luser/shadowsocks-rust/docker/docker-entrypoint.sh /usr/bin/
|
||||||
COPY --from=builder /tmp/v2ray-plugin /usr/bin/v2ray-plugin
|
COPY --from=builder --chown=root:root /tmp/v2ray-plugin /usr/bin/v2ray-plugin
|
||||||
COPY --from=builder /tmp/xray-plugin /usr/bin/xray-plugin
|
COPY --from=builder --chown=root:root /tmp/xray-plugin /usr/bin/xray-plugin
|
||||||
|
|
||||||
ENTRYPOINT [ "docker-entrypoint.sh" ]
|
ENTRYPOINT [ "docker-entrypoint.sh" ]
|
||||||
CMD [ "sslocal", "--log-without-time", "-c", "/etc/shadowsocks-rust/config.json" ]
|
CMD [ "sslocal", "--log-without-time", "-c", "/etc/shadowsocks-rust/config.json" ]
|
||||||
|
|
||||||
FROM busybox:musl AS ssserver
|
FROM busybox:musl AS ssserver
|
||||||
|
|
||||||
COPY --from=builder /root/shadowsocks-rust/target/release/ssserver /usr/bin/
|
COPY --from=builder --chown=root:root /home/luser/shadowsocks-rust/target/release/ssserver /usr/bin/
|
||||||
COPY --from=builder /root/shadowsocks-rust/examples/config.json /etc/shadowsocks-rust/
|
COPY --from=builder --chown=root:root /home/luser/shadowsocks-rust/examples/config.json /etc/shadowsocks-rust/
|
||||||
COPY --from=builder /root/shadowsocks-rust/docker/docker-entrypoint.sh /usr/bin/
|
COPY --from=builder --chown=root:root /home/luser/shadowsocks-rust/docker/docker-entrypoint.sh /usr/bin/
|
||||||
COPY --from=builder /tmp/v2ray-plugin /usr/bin/v2ray-plugin
|
COPY --from=builder /tmp/v2ray-plugin /usr/bin/v2ray-plugin
|
||||||
COPY --from=builder /tmp/xray-plugin /usr/bin/xray-plugin
|
COPY --from=builder /tmp/xray-plugin /usr/bin/xray-plugin
|
||||||
|
|
||||||
|
14
swarm-cli/Dockerfile
Normal file
14
swarm-cli/Dockerfile
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
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"]
|
||||||
|
|
||||||
|
|
40
swarm-cli/config.nu
Normal file
40
swarm-cli/config.nu
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
# 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
|
||||||
|
}
|
41
wildfly/Dockerfile
Normal file
41
wildfly/Dockerfile
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
FROM busybox:latest AS build
|
||||||
|
ARG VERSION
|
||||||
|
RUN wget https://github.com/wildfly/wildfly/releases/download/${VERSION}.Final/wildfly-${VERSION}.Final.tar.gz
|
||||||
|
RUN echo " -> Removing unneeded .bat and .ps1 files..." &&\
|
||||||
|
rm -f "wildfly-${VERSION}.Final/bin/"*.{bat,ps1} &&\
|
||||||
|
echo " -> Unpacking the package files..." &&\
|
||||||
|
install -d -m 755 "/opt/" &&\
|
||||||
|
tar -xf wildfly-${VERSION}.Final.tar.gz &&\
|
||||||
|
cp -R "wildfly-${VERSION}.Final" "/opt/wildfly" &&\
|
||||||
|
rm /opt/wildfly/bin/standalone.conf &&\
|
||||||
|
cd "wildfly-${VERSION}.Final/docs/contrib/scripts/systemd" &&\
|
||||||
|
echo " -> Creating wildfly.conf (environment settings)..." &&\
|
||||||
|
install -D -t "/opt/wildfly/etc/wildfly" -m 644 wildfly.conf &&\
|
||||||
|
echo " -> Copying launch.sh to the bin directory..." &&\
|
||||||
|
install -D -t "/opt/wildfly/bin" -m 755 launch.sh &&\
|
||||||
|
chmod -R u=rwX,g=rwX,o=rX "/opt/wildfly"
|
||||||
|
|
||||||
|
FROM archlinux:latest AS release
|
||||||
|
RUN pacman-key --init
|
||||||
|
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
|
||||||
|
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/tmp
|
||||||
|
RUN install -d -m 755 -o wildfly /opt/wildfly/standalone/deployments
|
||||||
|
RUN chown -R wildfly /opt/wildfly/standalone/configuration
|
||||||
|
VOLUME ["/opt/wildfly/standalone/tmp", "/opt/wildfly/standalone/data", "/opt/wildfly/standalone/log"]
|
||||||
|
USER wildfly
|
||||||
|
WORKDIR /opt/wildfly
|
||||||
|
ENV LAUNCH_JBOSS_IN_BACKGROUND=true
|
||||||
|
EXPOSE 8080/tcp
|
||||||
|
EXPOSE 9990/tcp
|
||||||
|
ENTRYPOINT ["/opt/wildfly/bin/standalone.sh", "-c", "standalone.xml", "-b", "0.0.0.0"]
|
4
wildfly/pacman-gitea-repository.conf
Normal file
4
wildfly/pacman-gitea-repository.conf
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
|
||||||
|
[woggioni.gitea.woggioni.net]
|
||||||
|
SigLevel = Required
|
||||||
|
Server = https://gitea.woggioni.net/api/packages/woggioni/arch/default/x86_64
|
15
xmrig/001-remove-donation.patch
Normal file
15
xmrig/001-remove-donation.patch
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
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
|
51
xmrig/Dockerfile
Normal file
51
xmrig/Dockerfile
Normal file
@@ -0,0 +1,51 @@
|
|||||||
|
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"]
|
Reference in New Issue
Block a user