tripleo-common/heat_docker_agent/Dockerfile

29 lines
996 B
Docker

FROM centos:7
MAINTAINER "Jeff Peeler" <jpeeler@redhat.com>
ARG OPENSTACK_RELEASE
LABEL openstack_release=$OPENSTACK_RELEASE
ENV container docker
ENV DOCKER_HOST unix:///var/run/docker.sock
ADD hook-docker-cmd.py /usr/libexec/heat-config/hooks/docker-cmd
ADD 50-heat-config-docker-cmd /usr/libexec/os-refresh-config/configure.d/50-heat-config-hook-docker-cmd
# Just use a script to configure the agent container. This way we can
# Split up the operations and do it all in a single layer.
ADD configure_container.sh /tmp/
RUN /tmp/configure_container.sh && rm /tmp/configure_container.sh
# This is a script which:
# - Copies the existing network interface configs from the host to the agent.
# - Configures os-net-config
# - Runs os-net-config in the agent.
#
# All of this is triggered from the heat templates.
ADD run-os-net-config /usr/local/bin/
# create volumes to share the host directories
VOLUME [ "/var/lib/cloud"]
VOLUME [ "/var/lib/heat-cfntools" ]
CMD /usr/bin/os-collect-config