a311e9422d
In order to migrate docker containers to CentOS7 the following fixes and improvements were made: * systemd service is a PID 1 service in each container instead of 'start.sh' * 'start.sh' script converted to systemd service and started automatically every time a container is launched * Dockerfiles simplified by removing all setup stuff to separate 'setup.sh' file which should be launched explicitely during container preparation phase Blueprint: master-on-centos7 Is NOT compatible with CentOS6 master node Co-Authored-By: Ivan Suzdal <isuzdal@mirantis.com> Change-Id: I5f51f473a6fa783c0a85985a5bf0412b30bcb1c2
19 lines
340 B
Docker
19 lines
340 B
Docker
# fuel/rabbitmq
|
|
|
|
FROM fuel/centos
|
|
MAINTAINER Aleksandr Didenko adidenko@mirantis.com
|
|
|
|
ENV container docker
|
|
ENV DOCKER_PORT _PORT_
|
|
ENV EXTRA_RPM_REPOS _EXTRA_RPM_REPOS_
|
|
|
|
ADD etc /etc
|
|
ADD start.sh /usr/local/bin/
|
|
ADD setup.sh /usr/local/bin/
|
|
|
|
RUN chmod +x /usr/local/bin/{setup,start}.sh
|
|
|
|
EXPOSE 4369 5672 15672 61613
|
|
|
|
CMD ["/usr/sbin/init"]
|