Skip to content

Commit

Permalink
Don't run fix-buildkite-agent-builds-permissions when Docker (#1334)
Browse files Browse the repository at this point in the history
Expose DOCKER_USERNS_REMAP to global environment hook. The environment hook is using this variable to decide if fix-buildkite-agent-builds-permissions needs to be run.
  • Loading branch information
rianmcguire authored Jun 28, 2024
2 parents da1c4b9 + 3a7602a commit 1b237cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packer/linux/conf/bin/bk-install-elastic-stack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ set_always "BUILDKITE_SECRETS_BUCKET_REGION" "$BUILDKITE_SECRETS_BUCKET_
set_always "BUILDKITE_STACK_NAME" "$BUILDKITE_STACK_NAME"
set_always "BUILDKITE_STACK_VERSION" "$BUILDKITE_STACK_VERSION"
set_always "BUILDKITE_DOCKER_EXPERIMENTAL" "$DOCKER_EXPERIMENTAL"
set_always "DOCKER_USERNS_REMAP" "$DOCKER_USERNS_REMAP"
set_always "DOCKER_VERSION" "$DOCKER_VERSION"
set_always "PLUGINS_ENABLED" "${PLUGINS_ENABLED[*]-}"
set_unless_present "AWS_DEFAULT_REGION" "$AWS_REGION"
Expand Down
1 change: 1 addition & 0 deletions templates/aws-stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1302,6 +1302,7 @@ Resources:
ECR_PLUGIN_ENABLED="${EnableECRPlugin}" \
DOCKER_LOGIN_PLUGIN_ENABLED="${EnableDockerLoginPlugin}" \
DOCKER_EXPERIMENTAL="${EnableDockerExperimental}" \
DOCKER_USERNS_REMAP=${EnableDockerUserNamespaceRemap} \
AWS_REGION="${AWS::Region}" \
/usr/local/bin/bk-install-elastic-stack.sh
--==BOUNDARY==--
Expand Down

0 comments on commit 1b237cb

Please sign in to comment.