1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-02 03:37:40 +02:00

update drone

This commit is contained in:
kev 2016-08-01 16:41:09 +08:00
parent b89ebc65d4
commit 25ad817b0a
5 changed files with 15 additions and 12 deletions

View File

@ -11,9 +11,11 @@ drone:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
environment: environment:
- REMOTE_DRIVER=gogs - REMOTE_DRIVER=gogs
- REMOTE_CONFIG=https://git.easypi.info/?open=false - REMOTE_CONFIG=http://git.easypi.info:3000/?open=false
- PLUGIN_FILTER=armdrone/* - PLUGIN_FILTER=armdrone/*
- GIN_MODE=release - GIN_MODE=release
extra_hosts:
- git.easypi.info:192.168.31.231
restart: always restart: always
``` ```
@ -90,6 +92,7 @@ environment:
## read more ## read more
- <http://readme.drone.io/setup/overview/>
- <http://readme.drone.io/devs/cli/> - <http://readme.drone.io/devs/cli/>
- <https://github.com/drone-plugins/drone-docker/blob/master/DOCS.md> - <https://github.com/drone-plugins/drone-docker/blob/master/DOCS.md>
- <https://gist.github.com/philipz/1e7a36560700fdc1ad63> - <https://gist.github.com/philipz/1e7a36560700fdc1ad63>

View File

@ -7,7 +7,7 @@ drone:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
environment: environment:
- REMOTE_DRIVER=gogs - REMOTE_DRIVER=gogs
- REMOTE_CONFIG=https://git.easypi.info/?open=false - REMOTE_CONFIG=http://git.easypi.info:3000/?open=false
- PLUGIN_FILTER=armdrone/* - PLUGIN_FILTER=armdrone/*
- GIN_MODE=release - GIN_MODE=release
restart: always restart: always

View File

@ -1,13 +1,13 @@
drone: drone:
image: drone/drone image: drone/drone
ports: ports:
- "8000:8000" - "8000:80"
volumes: volumes:
- ./data:/var/lib/drone - ./data:/var/lib/drone
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
environment: environment:
- REMOTE_DRIVER=gogs - REMOTE_DRIVER=gogs
- REMOTE_CONFIG=https://git.easypi.info/?open=false - REMOTE_CONFIG=http://git.easypi.info:3000/?open=false
- DEBUG=false - DEBUG=false
restart: always restart: always

View File

@ -9,7 +9,7 @@ gogs:
- mysql - mysql
restart: always restart: always
mysql mysql:
image: easypi/mariadb-arm image: easypi/mariadb-arm
ports: ports:
- "3306:3306" - "3306:3306"

View File

@ -3,18 +3,18 @@
# #
FROM easypi/alpine-arm FROM easypi/alpine-arm
MAINTAINER kev <noreplay@easypi.info> MAINTAINER EasyPi Software Foundation
RUN set -xe \ RUN set -xe \
&& apk add -U bash \ && apk add --no-cache bash \
mariadb \ mariadb \
mariadb-client \ mariadb-client \
tzdata \ tzdata \
&& mkdir -p /run/mysqld \ && mkdir -p /run/mysqld \
&& chown mysql:mysql /run/mysqld \ && chown mysql:mysql /run/mysqld \
&& sed -Ei -e 's/^(bind-address|log)/#&/' \ && sed -Ei -e 's/^(bind-address|log)/#&/' \
-e 's/^\[mysqld\]$/&\nskip-host-cache\nskip-name-resolve\nuser=mysql/' /etc/mysql/my.cnf \ -e 's/^\[mysqld\]$/&\nskip-host-cache\nskip-name-resolve\nuser=mysql/' \
&& rm -rf /var/cache/apk/* /etc/mysql/my.cnf
COPY docker-entrypoint.sh / COPY docker-entrypoint.sh /