-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
31 lines (23 loc) · 1.28 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
ARG base_image
FROM ${base_image}
ARG stemcell_version
RUN [ -n "$stemcell_version" ] || (echo "stemcell_version needs to be set"; exit 1)
LABEL stemcell-flavor=ubuntu
LABEL stemcell-version=${stemcell_version}
# Install RVM & Ruby 2.3.1
RUN gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB \
&& curl -sSL https://raw.githubusercontent.com/rvm/rvm/stable/binscripts/rvm-installer | bash -s stable --ruby=2.3.1 \
&& /bin/bash -c "source /usr/local/rvm/scripts/rvm && gem install bundler '--version=1.11.2' --no-format-executable" \
&& echo "source /usr/local/rvm/scripts/rvm" >> ~/.bashrc
# Install dumb-init
RUN wget https://github.com/Yelp/dumb-init/releases/download/v1.1.3/dumb-init_1.1.3_amd64.deb && \
echo '34995cf69c88311e9475b4d101186b1d5f4d653f222e41c6e5643ff4e6f56f54 *dumb-init_1.1.3_amd64.deb' | sha256sum --check && \
dpkg -i dumb-init_*.deb && \
rm -f dumb-init_*.deb
# Install configgin
RUN /bin/bash -c "source /usr/local/rvm/scripts/rvm && gem install configgin --version 0.18.4"
# Add additional configuration and scripts
ADD monitrc.erb /opt/fissile/monitrc.erb
ADD post-start.sh /opt/fissile/post-start.sh
RUN chmod ug+x /opt/fissile/post-start.sh
ADD rsyslog_conf/etc /etc/