Created
August 13, 2015 19:31
-
-
Save febbraro/1575c8485635368c934d to your computer and use it in GitHub Desktop.
servicebase
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM centos:centos7 | |
# Install our yum wrapper. | |
ADD root / | |
# Install base packages. | |
RUN yum -y install epel-release && \ | |
yum -y update && \ | |
yum -y install sudo ssh curl less vim-minimal dnsutils | |
# Add the s6 overlay. | |
ENV S6_VERSION v1.11.0.1 | |
RUN curl -L "https://github.com/just-containers/s6-overlay/releases/download/$S6_VERSION/s6-overlay-amd64.tar.gz" | \ | |
tar xzvf - -C / | |
ENV S6_BEHAVIOUR_IF_STAGE2_FAILS 1 | |
# Download confd. | |
ENV CONFD_VERSION 0.10.0 | |
RUN curl -L "https://github.com/kelseyhightower/confd/releases/download/v$CONFD_VERSION/confd-$CONFD_VERSION-linux-amd64" > /usr/bin/confd | |
# Run the s6-based init. | |
ENTRYPOINT ["/init"] | |
# Set up a standard volume for logs. | |
VOLUME ["/var/log/services"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment