Entrypoint last mods due to changes in Makefile/hiearchy/file naming

This commit is contained in:
Václav Valíček (YCNet) 2018-02-10 00:44:07 +01:00
parent f01b526c5c
commit 51f19c805b
No known key found for this signature in database
GPG Key ID: 7CF44871CEA75938
2 changed files with 6 additions and 3 deletions

View File

@ -18,3 +18,7 @@ creator:
run-creator: creator run-creator: creator
docker run -v /var/run/docker.sock:/var/run/docker.sock -it --rm $(TAGBASE)-creator docker run -v /var/run/docker.sock:/var/run/docker.sock -it --rm $(TAGBASE)-creator
# wizzard
wizzard: mirror run-creator

View File

@ -2,9 +2,8 @@
set -euo pipefail set -euo pipefail
IFS=$'\n\t' IFS=$'\n\t'
volume_prefix=cloner volume_prefix=cloner
mirror_image="valicek1/repo-cloner-mirror"
function die(){ function die(){
echo $@ 1>&2 echo $@ 1>&2
@ -179,7 +178,7 @@ volume_name=$volume_prefix-$read_project_name
createVolume $volume_name createVolume $volume_name
echo "First run - initialization of repos..." 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 then
echo -n "First run failed - remove image? [Y/n]" echo -n "First run failed - remove image? [Y/n]"
read read_cleanup read read_cleanup