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 125c2bc commit 35c513f
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 35c513f

Please sign in to comment.