b4ee14a25d
* Added newlines to long RUN commands in dockerfiles. * Removed storage-* containers (obsolete since 6.0) * Removed shotgun workaround in mcollective container. * Change disable of mcollective service in start.sh, rather than blocking init script in Dockerfile * Cleaned up duplicate packages already included in fuel/centos base container. * Moved hiera default yaml workaround to fuel/centos Change-Id: Ifd8740735c676f6e500795aa05123ede4d72ae92 Closes-Bug: #1482232
35 lines
892 B
Docker
35 lines
892 B
Docker
# fuel/astute
|
|
|
|
FROM fuel/centos
|
|
MAINTAINER Matthew Mosesohn mmosesohn@mirantis.com
|
|
|
|
RUN rm -rf /etc/yum.repos.d/*; \
|
|
echo -e "\
|
|
[nailgun]\n\
|
|
name=Nailgun Local Repo\n\
|
|
baseurl=http://$(route -n | awk '/^0.0.0.0/ { print $2 }'):_PORT_/os/x86_64/\n\
|
|
gpgcheck=0" \
|
|
> /etc/yum.repos.d/nailgun.repo; \
|
|
yum clean expire-cache; \
|
|
yum update -y; \
|
|
echo ruby21-nailgun-mcagents sysstat | xargs -n1 yum install -y --quiet
|
|
|
|
ADD etc /etc
|
|
ADD start.sh /usr/local/bin/start.sh
|
|
|
|
RUN puppet apply --detailed-exitcodes -d -v \
|
|
/etc/puppet/modules/nailgun/examples/astute-only.pp; \
|
|
[[ $? == 0 || $? == 2 ]]
|
|
|
|
RUN echo -e "\
|
|
[nailgun]\n\
|
|
name=Nailgun Local Repo\n\
|
|
baseurl=file:/var/www/nailgun/centos/x86_64\n\
|
|
gpgcheck=0" \
|
|
> /etc/yum.repos.d/nailgun.repo; \
|
|
yum clean all; \
|
|
chmod +x /usr/local/bin/start.sh
|
|
|
|
VOLUME /etc/astute
|
|
CMD /usr/local/bin/start.sh
|