From 51f19c805b7db90fc4f1fcc5e136d6f99c717619 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Val=C3=AD=C4=8Dek=20=28YCNet=29?= Date: Sat, 10 Feb 2018 00:44:07 +0100 Subject: [PATCH] Entrypoint last mods due to changes in Makefile/hiearchy/file naming --- Makefile | 4 ++++ creator-image/entrypoint | 5 ++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 0b94f9e..a406f4a 100644 --- a/Makefile +++ b/Makefile @@ -18,3 +18,7 @@ creator: run-creator: creator docker run -v /var/run/docker.sock:/var/run/docker.sock -it --rm $(TAGBASE)-creator + + +# wizzard +wizzard: mirror run-creator diff --git a/creator-image/entrypoint b/creator-image/entrypoint index a486d00..ad74bfa 100755 --- a/creator-image/entrypoint +++ b/creator-image/entrypoint @@ -2,9 +2,8 @@ set -euo pipefail IFS=$'\n\t' - volume_prefix=cloner - +mirror_image="valicek1/repo-cloner-mirror" function die(){ echo $@ 1>&2 @@ -179,7 +178,7 @@ volume_name=$volume_prefix-$read_project_name createVolume $volume_name echo "First run - initialization of repos..." -if ! docker run -it -v $volume_name:/data --name cloner-runner-$read_project_name --rm repo-cloner +if ! docker run -it -v $volume_name:/data --name cloner-runner-$read_project_name --rm $mirror_image then echo -n "First run failed - remove image? [Y/n]" read read_cleanup