1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-16 11:58:47 +00:00

add gogs-arm

This commit is contained in:
kev 2016-06-03 11:27:28 +08:00
parent a6ae280c14
commit 07c4de141c
3 changed files with 66 additions and 0 deletions

@ -46,6 +46,7 @@ A collection of delicious docker recipes.
- [x] ffserver :beetle:
- [x] fteproxy :+1:
- [x] fteproxy-arm :+1:
- [x] gogs-arm :cn:
- [x] grafana
- [x] grafana-arm
- [x] h2o

48
gogs/arm/Dockerfile Normal file

@ -0,0 +1,48 @@
#
# Dockerfile for gogs-arm
#
FROM easypi/alpine-arm:3.4
MAINTAINER kev <noreply@easypi.info>
ENV GOGS_CUSTOM /data/gogs
RUN set -xe \
&& apk add -U bash \
ca-certificates \
curl \
git \
linux-pam \
openssh \
s6 \
socat \
tar \
&& rm -rf /var/cache/apk/*
RUN set -xe \
&& adduser -H -D -g 'Gogs Git User' -h /data/git -s /bin/bash git \
&& passwd -u git \
&& echo "export GOGS_CUSTOM=${GOGS_CUSTOM}" >> /etc/profile
RUN set -xe \
&& curl -L https://github.com/tianon/gosu/releases/download/1.9/gosu-armhf > /usr/sbin/gosu \
&& chmod +x /usr/sbin/gosu
RUN set -xe \
&& mkdir /app/ \
&& cd /app/ \
&& curl -LO https://github.com/gogits/gogs/releases/download/v0.9.13/linux_arm.zip \
&& unzip linux_arm.zip \
&& rm linux_arm.zip
RUN set -xe \
&& cd /app/gogs/ \
&& curl -L https://github.com/gogits/gogs/archive/master.tar.gz | tar xz --strip 1 gogs-master/docker \
&& mv docker/nsswitch.conf /etc/
WORKDIR /app/gogs/
VOLUME /data/
EXPOSE 22 3000
CMD ["docker/start.sh", "/bin/s6-svscan", "/app/gogs/docker/s6/"]

@ -0,0 +1,17 @@
gogs:
image: easypi/gogs-arm
ports:
- "2222:22"
- "3000:3000"
volumes:
- ./data:/data
restart: always
db:
image: easypi/mariadb-arm
ports:
- "3306:3306"
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=gogs
restart: always