Skip to content

Commit

Permalink
Updated admin docker wrapper to skip working directory setup in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
zenmonkeykstop committed Aug 5, 2020
1 parent 2df3de2 commit ff4d2f9
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions admin/bin/dev-shell
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,18 @@ function docker_image() {
}

function docker_run() {
docker run \
--rm \
--user "${USER:-root}" \
--volume "${TOPLEVEL}:/sd-root" \
--workdir "/sd-root/admin" \
-ti ${DOCKER_RUN_ARGUMENTS:-} securedrop-admin "$@"
if [ -z "${CIRCLECI-}" ]
then
docker run \
--rm \
--user "${USER:-root}" \
--volume "${TOPLEVEL}:/sd-root" \
--workdir "/sd-root/admin" \
-ti ${DOCKER_RUN_ARGUMENTS:-} securedrop-admin "$@"
else
docker run --rm -ti ${DOCKER_RUN_ARGUMENTS:-} securedrop-admin "$@"
fi

}

docker_image
Expand Down

0 comments on commit ff4d2f9

Please sign in to comment.