Skip to content
Snippets Groups Projects
Commit c47c0c10 authored by jurgenhaas's avatar jurgenhaas
Browse files

Make sure that .gitconfig and composer's auth.json exist even before l3drun...

Make sure that .gitconfig and composer's auth.json exist even before l3drun gets started, not before l3d project container starts as that's too late
parent 573bc7c3
No related branches found
No related tags found
No related merge requests found
......@@ -24,9 +24,6 @@ function startContainer {
if [[ -n ${ID} ]]; then
docker start ${COMPOSE_PROJECT_NAME}_l3d
else
mkdir -p ${HOMEDIR}/.composer
touch ${HOMEDIR}/.composer/auth.json
touch ${HOMEDIR}/.gitconfig
docker run --name ${COMPOSE_PROJECT_NAME}_l3d -dt \
--hostname ${COMPOSE_PROJECT_NAME}-l3d \
--env L3DSHELL=${L3DSHELL} \
......
......@@ -24,6 +24,9 @@ esac
ID=$(docker container ls --all -q -f name=^l3drun$)
if [[ ! -n ${ID} ]]; then
mkdir -p ${HOME}/.composer
touch ${HOME}/.composer/auth.json
touch ${HOME}/.gitconfig
docker run --name=l3drun -dt --rm \
--env SCRIPTPATH=${SCRIPTPATH} \
--volume /var/run/docker.sock:/var/run/docker.sock \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment