Base default opts

This commit is contained in:
2015-11-18 10:45:20 +01:00
parent 1ba20bc279
commit 0cb534116d
4 changed files with 23 additions and 28 deletions

View File

@ -58,8 +58,6 @@ function create_container {
VOLUME /src
VOLUME /dist
CMD /root/.tamarin/lib/build.sh ${projectName} ${BUILD_BRANCH} /tmp ${BUILD_TAG}
EOF
# Add default opts file if defined
@ -70,6 +68,8 @@ EOF
exec_hooks "containerbuild" "$temp_dir"
echo "CMD /root/.tamarin/lib/build.sh ${projectName} ${BUILD_BRANCH} /tmp ${BUILD_TAG}" >> "$temp_dir/Dockerfile"
# Build image
tar -C "$temp_dir" -czh . | docker build -t "$container_tag" - 2> >(stderr) 1> >(stdout)