Entrypoint last mods due to changes in Makefile/hiearchy/file naming
This commit is contained in:
parent
f01b526c5c
commit
51f19c805b
4
Makefile
4
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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user