Skip to content

Commit

Permalink
Pass docker args in CI (#3843)
Browse files Browse the repository at this point in the history
I forgot that Jenkins does not use Podman and needs the uid/gid set for
things to work
  • Loading branch information
nemacysts authored Apr 26, 2024
1 parent 51bc234 commit 6b97632
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ else
export INDEX_URL_BUILD_ARG ?= PIP_INDEX_URL
endif

# If running in CI, pass UID and GID to avoid permission issues
# since Jenkins does not use Podman
ifdef CI
export DOCKER_OPT_ARGS := --user `id -u`:`id -g`
endif

.PHONY: all docs test itest k8s_itests quick-test

dev: .paasta/bin/activate
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ docker_compose_version = 1.26.2

[testenv]
basepython = python3.8
passenv = SSH_AUTH_SOCK PAASTA_ENV DOCKER_HOST
passenv = SSH_AUTH_SOCK PAASTA_ENV DOCKER_HOST CI
setenv =
TZ = UTC
deps =
Expand Down

0 comments on commit 6b97632

Please sign in to comment.