✨ 支持`docker`部署`archlinux`,预装`clang`跨平台编译工具链
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
services:
|
||||
gitea-runner:
|
||||
build: .
|
||||
container_name: gitea-runner-buildx-archlinux
|
||||
restart: unless-stopped
|
||||
network_mode: "host" # 使用宿主机网络
|
||||
privileged: true # Buildx 需要 privileged 模式
|
||||
volumes:
|
||||
- ./runner-data:/data
|
||||
- ../../common/setup.sh:/data/setup.sh:ro
|
||||
- ../../common/register.sh:/data/register.sh:ro
|
||||
- ../../common/manage.sh:/data/manage.sh:ro
|
||||
- ../../common/check_crlf.sh:/data/check_crlf.sh:ro
|
||||
- ../../common/entrypoint.sh:/data/entrypoint.sh:ro
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
|
||||
# Arch Linux Buildx 配置 - 使用 tonistiigi/binfmt
|
||||
- ENABLE_BUILDX=true
|
||||
- BINFMT_METHOD=tonistiigi
|
||||
- DEFAULT_RUNNER_LABEL=archlinux:host://archlinux:latest,company-server:host://archlinux:latest,buildx-archlinux:host://archlinux:latest
|
||||
|
||||
# 如果需要使用代理,取消下面的注释并修改为你的代理地址
|
||||
# 注意:容器内访问宿主机需要使用 host.docker.internal 或宿主机IP
|
||||
# - http_proxy=http://host.docker.internal:20122
|
||||
# - https_proxy=http://host.docker.internal:20122
|
||||
# - HTTP_PROXY=http://host.docker.internal:20122
|
||||
# - HTTPS_PROXY=http://host.docker.internal:20122
|
||||
# - no_proxy=localhost,127.0.0.1
|
||||
|
||||
# Linux 系统需要取消下面的注释以支持 host.docker.internal
|
||||
# extra_hosts:
|
||||
# - "host.docker.internal:host-gateway"
|
||||
Reference in New Issue
Block a user