From 640bbdb7e4af05f925b57d3aea534e2b27715f43 Mon Sep 17 00:00:00 2001 From: Sahdev Zala Date: Thu, 9 Mar 2017 11:42:44 -0800 Subject: [PATCH] Add sample dockerfile to build translator container The file content can be copied as is to Dockerfile and use to build a heat translator docker container. Change-Id: I32fa7bd9def0842a053c4c61e7f6652db4c16967 Co-Authored-By: Eduardo Patrocinio --- translator/container/docker/dockerfile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 translator/container/docker/dockerfile diff --git a/translator/container/docker/dockerfile b/translator/container/docker/dockerfile new file mode 100644 index 00000000..f44963b2 --- /dev/null +++ b/translator/container/docker/dockerfile @@ -0,0 +1,18 @@ +# Sample Dockerfile that can be use to build heat-translator docker container +FROM ubuntu + +MAINTAINER Heat Translator contributors + +RUN apt-get -y update && apt-get install -y \ + python-pip + +RUN pip install heat-translator + +COPY heat_translator_logging.conf /usr/local/lib/python2.7/dist-packages/translator/conf/ + +# Have some test TOSCA templates in my_tosca directory to copy to the container as an example. +# This is an optional step and can be removed. +COPY my_tosca /tmp/my_tosca + +ENTRYPOINT ["heat-translator"] +