27 lines
827 B
Docker
27 lines
827 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
|
|
|
|
# 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
|