Skip to content

Commit

Permalink
Merge pull request #415 from raul-arabaolaza/INFRA-1489
Browse files Browse the repository at this point in the history
[INFRA-1489] Do not overwrite home folder when running container
  • Loading branch information
olivergondza committed Feb 15, 2018
2 parents 11d3549 + 3ccc264 commit 0fc5ab6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ath-container.sh
Expand Up @@ -9,6 +9,6 @@ tag="jenkins/ath"

docker build --build-arg=uid="$uid" --build-arg=gid="$gid" src/main/resources/ath-container -t "$tag"

run_opts="--interactive --tty --rm --publish-all --user ath-user --workdir /home/ath-user"
run_drive_mapping="-v /var/run/docker.sock:/var/run/docker.sock -v $(pwd):/home/ath-user -v ${HOME}/.m2/repository:/home/ath-user/.m2/repository"
run_opts="--interactive --tty --rm --publish-all --user ath-user --workdir /home/ath-user/ath-sources"
run_drive_mapping="-v /var/run/docker.sock:/var/run/docker.sock -v $(pwd):/home/ath-user/ath-sources -v ${HOME}/.m2/repository:/home/ath-user/.m2/repository"
docker run $run_opts $run_drive_mapping $tag /bin/bash

0 comments on commit 0fc5ab6

Please sign in to comment.