gitignore

This commit is contained in:
Nikita Romanov 2025-06-14 23:10:48 +03:00
parent 15cd52852f
commit 4b1e94a7fa
4 changed files with 44 additions and 0 deletions

1
.gitignore vendored
View file

@ -1,2 +1,3 @@
.idea
.DS_Store
.env

27
docker-compose.yaml Normal file
View file

@ -0,0 +1,27 @@
services:
dind:
image: "docker:dind"
container_name: "dind"
hostname: "dind"
privileged: true
command: [ "dockerd", "-H", "tcp://0.0.0.0:2375", "--tls=false" ]
restart: 'unless-stopped'
runner:
image: "data.forgejo.org/forgejo/runner:6.3.1"
container_name: "runner"
hostname: "runner"
links:
- dind
depends_on:
dind:
condition: service_started
environment:
DOCKER_HOST: tcp://dind:2375
# User without root privileges, but with access to `./data`.
user: 1001:1001
volumes:
- ./runner/data:/data
restart: unless-stopped
command: '/bin/sh -c "sleep 5; forgejo-runner daemon"'

2
runner/.env.default Normal file
View file

@ -0,0 +1,2 @@
USER_UID=1000
USER_GID=1000

14
runner/setup.sh Normal file
View file

@ -0,0 +1,14 @@
#!/usr/bin/env bash
set -e
mkdir -p data
touch data/.runner
mkdir -p data/.cache
chown -R 1001:1001 data/.runner
chown -R 1001:1001 data/.cache
chmod 775 data/.runner
chmod 775 data/.cache
chmod g+s data/.runner
chmod g+s data/.cache