summaryrefslogtreecommitdiff
path: root/hot
diff options
context:
space:
mode:
authorSpyros Trigazis <strigazi@gmail.com>2017-05-26 16:39:26 +0200
committerSpyros Trigazis <strigazi@gmail.com>2017-06-22 10:45:34 +0200
commit1351cc322b5eee3ba5c1f6d4fd550a4d86251a0a (patch)
treeb036362b0de4c2d4fe1d2786cb831f6619c83b5b /hot
parent69c1326442b4cee033625a921faae62a78f0ddd5 (diff)
downloadheat-templates-1351cc322b5eee3ba5c1f6d4fd550a4d86251a0a.tar.gz
Fix heat-container-agent
* use fedora base image from fedora registry * fix ADD and run script * move package install in Dockerfile for layers * add zaqarclient Change-Id: Iaa82fcd7af25ec81e982e6b170aa1d449f6e1166
Diffstat (limited to 'hot')
-rw-r--r--hot/software-config/heat-container-agent/Dockerfile16
-rw-r--r--hot/software-config/heat-container-agent/scripts/configure_container_agent.sh14
2 files changed, 13 insertions, 17 deletions
diff --git a/hot/software-config/heat-container-agent/Dockerfile b/hot/software-config/heat-container-agent/Dockerfile
index fe4c2a5..a37d809 100644
--- a/hot/software-config/heat-container-agent/Dockerfile
+++ b/hot/software-config/heat-container-agent/Dockerfile
@@ -1,7 +1,17 @@
-FROM fedora
+FROM registry.fedoraproject.org/fedora:25
MAINTAINER “Rabi Mishra” <ramishra@redhat.com>
ENV container docker
+RUN dnf -y --setopt=tsflags=nodocs install \
+ 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
+
ADD ./scripts/55-heat-config \
/opt/stack/os-config-refresh/configure.d/
@@ -15,8 +25,8 @@ 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 ; \
- /tmp/configure_container_agent.sh
+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"]
diff --git a/hot/software-config/heat-container-agent/scripts/configure_container_agent.sh b/hot/software-config/heat-container-agent/scripts/configure_container_agent.sh
index a0e53d9..fddc749 100644
--- a/hot/software-config/heat-container-agent/scripts/configure_container_agent.sh
+++ b/hot/software-config/heat-container-agent/scripts/configure_container_agent.sh
@@ -1,20 +1,6 @@
#!/bin/bash
set -eux
-dnf -y update
-
-dnf -y install findutils os-collect-config os-apply-config \
- os-refresh-config dib-utils python-pip python-docker-py \
- python-yaml
-
-dnf clean all
-
-# pip installing dpath as python-dpath is an older version of dpath
-pip install dpath
-
-# install docker-compose
-pip install docker-compose
-
# os-apply-config templates directory
oac_templates=/usr/libexec/os-apply-config/templates
mkdir -p $oac_templates/etc