Convert into single docker image, change volume structure etc

Makefile inconsistent!
This commit is contained in:
2018-02-23 10:17:37 +01:00
parent 8c4f64cf96
commit 06437ac0b8
14 changed files with 104 additions and 161 deletions

View File

@@ -8,7 +8,7 @@ function prepareGitAuth(){
[ -d $confdir ] || mkdir $confdir
[ -d $confdir/ssh ] || mkdir $confdir/ssh
chmod 0600 $confdir
chmod 0700 $confdir
# git configure http authenticator
git config --global credential.helper "store --file=$confdir/git-credentials"

View File

@@ -1,4 +1,3 @@
#!/bin/bash
# library for work with config file
# check directories if they exist

View File

@@ -1,6 +1,5 @@
#!/bin/bash
# configure
export BASE=/data
export CCLONE_PATH=$BASE/repos
export CCLONE_CACHE=$BASE/cache
export CONFIG_DIR=$BASE/config

View File

@@ -35,6 +35,8 @@ fi
submodules=${cloner_submodules:-0}
depth=${cloner_submodule_depth:-}
export HOME=$CCLONE_CACHE
prepareGitAuth $CONFIG_DIR
# without submodule support