From f479cacfbcaa40839365523539de82e9f0e806b2 Mon Sep 17 00:00:00 2001 From: ruffsl Date: Wed, 27 Jun 2018 17:24:32 -0700 Subject: [PATCH] Adding post_env feature sets key values of docker ENV via template --- .../docker_images/create_ros_image.Dockerfile.em | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docker_templates/templates/docker_images/create_ros_image.Dockerfile.em b/docker_templates/templates/docker_images/create_ros_image.Dockerfile.em index 56b2dc3..c9c3d07 100644 --- a/docker_templates/templates/docker_images/create_ros_image.Dockerfile.em +++ b/docker_templates/templates/docker_images/create_ros_image.Dockerfile.em @@ -29,3 +29,11 @@ RUN apt-get update && apt-get install -y \ @[ end if]@ @[end if]@ +@[if 'post_env' in locals()]@ +@[ if post_env]@ +# set environment variables +@[ for env_key, env_value in post_env.items()]@ +ENV @(env_key) @(env_value) +@[ end for]@ +@[ end if]@ +@[end if]@