-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
33 lines (25 loc) · 1.34 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
32
33
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=SLE
LABEL stemcell-version=${stemcell_version}
# Install RVM & Ruby 2.4.0
RUN zypper -n in --force-resolution libopenssl-devel \
&& gpg2 --keyserver pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB \
&& curl -sSL https://raw.githubusercontent.com/rvm/rvm/stable/binscripts/rvm-installer | bash -s stable --ruby=2.4.0 \
&& /bin/bash -c "source /usr/local/rvm/scripts/rvm && gem install bundler --no-format-executable" \
&& echo "source /usr/local/rvm/scripts/rvm" >> ~/.bashrc
# Install dumb-init
RUN wget -O /usr/bin/dumb-init https://github.com/Yelp/dumb-init/releases/download/v1.2.0/dumb-init_1.2.0_amd64 \
&& chmod +x /usr/bin/dumb-init
# Install configgin
# The configgin version is hardcoded here so a commit is generated when the version is bumped.
RUN /bin/bash -c "source /usr/local/rvm/scripts/rvm && gem install configgin --version=0.20.3"
# Install additional dependencies
RUN zypper -n in jq rsync fuse
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 configuration
ADD rsyslog_conf/etc /etc/