Compare commits

..

No commits in common. "main" and "v1.1.0-1" have entirely different histories.

3 changed files with 7 additions and 21 deletions

View file

@ -3,19 +3,24 @@ ARG CHECKOUT=main
# Go container # Go container
FROM golang:1.20.2-alpine3.17 AS GO_BUILD FROM golang:1.20.2-alpine3.17 AS GO_BUILD
ARG CHECKOUT ARG CHECKOUT
RUN apk fix && \ RUN apk fix && \
apk --no-cache --update add git make apk --no-cache --update add git make
RUN mkdir /build RUN mkdir /build
RUN git clone https://code.forgejo.org/forgejo/runner.git /build/runner \ RUN git clone https://code.forgejo.org/forgejo/runner.git /build/runner \
&& cd /build/runner \ && cd /build/runner \
&& git checkout $CHECKOUT && git checkout $CHECKOUT
WORKDIR /build/runner WORKDIR /build/runner
RUN make build RUN make build
# -- # --
# Final Container # Final Container
FROM alpine:3.17 FROM alpine:3.17
RUN mkdir /app COPY --from=GO_BUILD /build/runner/forgejo-runner /app
COPY --from=GO_BUILD /build/runner/forgejo-runner /app/forgejo-runner
WORKDIR /app WORKDIR /app
CMD ["./forgejo-runner", "daemon"] CMD ["./forgejo-runner", "daemon"]

View file

@ -1,13 +1,2 @@
# runner-docker # runner-docker
Use this to register the runner
```bash
docker run -it -v $(pwd)/runner.conf:/app/.runner git.itzyanick.de/itzyanick/runner-docker:v1.1.0-2 ./forgejo-runner register
```
Then run the runner
```bash
docker compose up -d
```

View file

@ -1,8 +0,0 @@
version: "3.7"
services:
runner:
image: git.itzyanick.de/itzyanick/runner-docker:v1.1.0-2
restart: unless-stopped
volumes:
- "./runner.conf:/app/.runner"
- "/var/run/docker.sock:/var/run/docker.sock"