mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-25 02:04:06 +02:00
update drone-arm
This commit is contained in:
parent
d18f0c57e3
commit
f389f1d19e
23
drone/arm/Dockerfile
Normal file
23
drone/arm/Dockerfile
Normal file
@ -0,0 +1,23 @@
|
||||
#
|
||||
# Dockerfile for drone-arm
|
||||
#
|
||||
|
||||
FROM easypi/alpine-arm
|
||||
MAINTAINER EasyPi Software Foundation
|
||||
|
||||
RUN apk add --no-cache ca-certificates
|
||||
|
||||
ADD drone /drone
|
||||
|
||||
ENV DATABASE_DRIVER=sqlite3 \
|
||||
DATABASE_CONFIG=/var/lib/drone/drone.sqlite \
|
||||
GODEBUG=netdns=go \
|
||||
XDG_CACHE_HOME=/var/lib/drone
|
||||
|
||||
VOLUME $XDG_CACHE_HOME
|
||||
WORKDIR $XDG_CACHE_HOME
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
ENTRYPOINT ["/drone"]
|
||||
CMD ["server"]
|
@ -1,13 +1,28 @@
|
||||
drone:
|
||||
image: armdrone/drone
|
||||
ports:
|
||||
- "8000:80"
|
||||
volumes:
|
||||
- ./data:/var/lib/drone
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
environment:
|
||||
- REMOTE_DRIVER=gogs
|
||||
- REMOTE_CONFIG=http://git.easypi.info:3000/?open=false
|
||||
- PLUGIN_FILTER=armdrone/*
|
||||
- GIN_MODE=release
|
||||
restart: always
|
||||
version: '2'
|
||||
|
||||
services:
|
||||
drone-server:
|
||||
image: easypi/drone-arm
|
||||
ports:
|
||||
- "8000:8000"
|
||||
volumes:
|
||||
- ./data:/var/lib/drone
|
||||
environment:
|
||||
- DRONE_OPEN=true
|
||||
- DRONE_HOST=drone.easypi.pro
|
||||
- DRONE_GOGS=true
|
||||
- DRONE_GOGS_URL=https://gogs.easypi.pro
|
||||
- DRONE_SECRET=0123456789
|
||||
restart: always
|
||||
|
||||
drone-agent:
|
||||
image: easypi/drone-arm
|
||||
command: agent
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
environment:
|
||||
- DRONE_SERVER=ws://drone-server:8000/ws/broker
|
||||
- DRONE_SECRET=0123456789
|
||||
depends_on:
|
||||
- drone-server
|
||||
restart: always
|
||||
|
BIN
drone/arm/drone
Executable file
BIN
drone/arm/drone
Executable file
Binary file not shown.
Loading…
Reference in New Issue
Block a user