1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-21 18:06:36 +02:00

add logspout

This commit is contained in:
kev 2018-08-05 19:04:47 +08:00
parent f4c99b7638
commit a4073ce56d
5 changed files with 44 additions and 1 deletions

View File

@ -258,7 +258,7 @@ A collection of delicious docker recipes.
- [x] elk
- [x] ghost
- [x] gitlab/gitlab-ce
- [ ] gliderlabs/logspout
- [x] gliderlabs/logspout
- [x] gliderlabs/registrator
- [ ] glot
- [ ] bash

4
logspout/README.md Normal file
View File

@ -0,0 +1,4 @@
logspout
========
https://github.com/gliderlabs/logspout

27
logspout/arm/Dockerfile Normal file
View File

@ -0,0 +1,27 @@
#
# Dockerfile for logspout-arm
#
FROM easypi/alpine-arm
MAINTAINER EasyPi Software Foundation
ENV LOGSPOUT_VER 3.2.5
ENV LOGSPOUT_URL https://github.com/gliderlabs/logspout/archive/v${LOGSPOUT_VER}.tar.gz
RUN set -xe \
&& apk add --no-cache curl tar \
&& mkdir -p /src \
&& curl -sSL ${LOGSPOUT_URL} | tar xz --strip 1 -C /src \
&& cd /src \
&& ./build.sh "$(cat VERSION)" \
&& cd / \
&& rm -rf /src \
&& apk del curl tar
VOLUME /mnt/routes
EXPOSE 80
ENTRYPOINT ["/bin/logspout"]
ONBUILD COPY ./build.sh /src/build.sh
ONBUILD COPY ./modules.go /src/modules.go
ONBUILD RUN cd /src && chmod +x ./build.sh && sleep 1 && sync && ./build.sh "$(cat VERSION)-custom"

View File

@ -0,0 +1,6 @@
logspout:
image: easypi/logspout-arm
command: syslog://10.50.254.182:514
volumes:
- /var/run/docker.sock:/var/run/docker.sock
restart: always

View File

@ -0,0 +1,6 @@
logspout:
image: gliderlabs/logspout
command: syslog://10.50.254.182:514
volumes:
- /var/run/docker.sock:/var/run/docker.sock
restart: always