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

#27 Make sure that ~/.composer/auth.json always exists before starting a new container

parent b317de2f
No related branches found
No related tags found
No related merge requests found
...@@ -23,6 +23,8 @@ function startContainer { ...@@ -23,6 +23,8 @@ function startContainer {
if [[ -n ${ID} ]]; then if [[ -n ${ID} ]]; then
docker start ${COMPOSE_PROJECT_NAME}_l3d docker start ${COMPOSE_PROJECT_NAME}_l3d
else else
mkdir -p ${HOMEDIR}/.composer
touch ${HOMEDIR}/.composer/auth.json
touch ${HOMEDIR}/.gitconfig touch ${HOMEDIR}/.gitconfig
docker run --name ${COMPOSE_PROJECT_NAME}_l3d -dt \ docker run --name ${COMPOSE_PROJECT_NAME}_l3d -dt \
--hostname ${COMPOSE_PROJECT_NAME}-l3d \ --hostname ${COMPOSE_PROJECT_NAME}-l3d \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment