self-healing-sig/use-cases/heat-mistral-aodh/Dockerfile
ricolin bf603c75cc Add autoscaling with self-healing scenario
A scenario for self-healing and auto-scaling with Heat, Mistral,
Zaqar, and Aodh.

Change-Id: I652c3b0e0caa433bfd08c0cb35b21507f0897889
2018-11-06 21:02:21 +00:00

39 lines
1.2 KiB
Docker

FROM registry.fedoraproject.org/fedora:26
MAINTAINER “Rico Lin” <rico.lin.guanyu@gmail.com>
ENV container docker
RUN dnf -y --setopt=tsflags=nodocs install \
redhat-rpm-config gcc python2-devel python3-devel docker findutils os-collect-config os-apply-config \
os-refresh-config dib-utils python-pip python-docker-py \
python-yaml python-zaqarclient && \
dnf clean all
# pip installing dpath as python-dpath is an older version of dpath
# install docker-compose
RUN pip install --no-cache dpath docker-compose python-zaqarclient oslo.log psutil
ADD ./scripts/55-heat-config \
/opt/stack/os-config-refresh/configure.d/
ADD ./scripts/50-heat-config-docker-compose \
/opt/stack/os-config-refresh/configure.d/
ADD ./scripts/hooks/* \
/var/lib/heat-config/hooks/
ADD ./scripts/heat-config-notify \
/usr/bin/heat-config-notify
ADD ./scripts/configure_container_agent.sh /tmp/
RUN chmod 700 /tmp/configure_container_agent.sh
RUN /tmp/configure_container_agent.sh
#create volumes to share the host directories
VOLUME [ "/var/lib/cloud"]
VOLUME [ "/var/lib/heat-cfntools" ]
#set DOCKER_HOST environment variable that docker-compose would use
ENV DOCKER_HOST unix:///var/run/docker.sock
CMD /usr/bin/os-collect-config