No description
- Shell 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| images | ||
| generate_certs.sh | ||
| README.md | ||
Container Images
This repo contains how the images for action runners in git.arkforge.net works. The images themselves are hosted at images directory. Build them with:
# build the image
docker buildx build -t alpine_base:latest -f alpine_base .
# tag it in the container registry
docker tag alpine_base:latest git.arkforge.net/arkforgelabs/containerimages:alpine_base
# login to the registry with your access token
docker login git.arkforge.net -u UserName
# and finally push the image
docker push git.arkforge.net/arkforgelabs/containerimages:alpine_base
Then make sure to have the certificates generated for https access inside:
chmod +x generate-certs.sh
sudo ./generate-certs.sh
And finally make sure your docker-compose.yml for your runner looks like this:
docker-in-docker:
image: docker:dind
container_name: 'docker_dind'
privileged: true
volumes:
- /opt/docker-certs:/certs:ro
command: >
dockerd
-H tcp://0.0.0.0:2375
--tls=true
--tlscacert=/certs/ca.pem
--tlscert=/certs/server-cert.pem
--tlskey=/certs/server-key.pem
--insecure-registry=forgejo:3000
restart: 'unless-stopped'
networks:
- forgejo
forgejo-runner:
image: 'data.forgejo.org/forgejo/runner:12'
container_name: 'runner'
volumes:
- /opt/docker-certs:/certs:ro
- ./forgejo_runner_data:/data
environment:
DOCKER_HOST: tcp://docker_dind:2375
DOCKER_TLS_VERIFY: "1"
DOCKER_CERT_PATH: /certs
user: 1001:1001
restart: 'unless-stopped'
command: 'forgejo-runner daemon --config runner-config.yml'
depends_on:
docker-in-docker:
condition: service_started
networks:
- forgejo