2017-03-14 18:30:10 +01:00
|
|
|
FROM alpine:3.5
|
2016-08-23 05:17:32 +02:00
|
|
|
|
2017-04-19 21:38:05 +02:00
|
|
|
ENV SEMAPHORE_VERSION="2.3.0" SEMAPHORE_ARCH="linux_amd64"
|
2016-08-23 05:17:32 +02:00
|
|
|
|
2017-05-01 21:12:30 +02:00
|
|
|
RUN apk add --no-cache git ansible mysql-client curl openssh-client tini && \
|
2017-03-14 18:30:10 +01:00
|
|
|
curl -sSfL "https://github.com/ansible-semaphore/semaphore/releases/download/v$SEMAPHORE_VERSION/semaphore_$SEMAPHORE_ARCH" > /usr/bin/semaphore && \
|
|
|
|
chmod +x /usr/bin/semaphore && mkdir -p /etc/semaphore/playbooks
|
2016-08-23 05:17:32 +02:00
|
|
|
|
|
|
|
EXPOSE 3000
|
2017-03-14 18:30:10 +01:00
|
|
|
|
2017-04-19 21:38:05 +02:00
|
|
|
ADD ./scripts/docker-startup.sh /usr/bin/semaphore-startup.sh
|
2017-03-14 18:30:10 +01:00
|
|
|
|
2017-05-01 21:12:30 +02:00
|
|
|
ENTRYPOINT ["/sbin/tini", "--"]
|
2016-08-23 05:17:32 +02:00
|
|
|
|
2017-05-01 21:12:30 +02:00
|
|
|
CMD ["/usr/bin/semaphore-startup.sh", "/usr/bin/semaphore", "-config", "/etc/semaphore/semaphore_config.json"]
|