Skip to content

Commit

Permalink
fix: disable security opts for db test on bitbucket runner (#2705)
Browse files Browse the repository at this point in the history
hotfix(cli): disable security opts for db test on bitbucket runner
  • Loading branch information
avallete authored Sep 24, 2024
1 parent 01256a1 commit 11c5004
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/utils/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,9 @@ func DockerStart(ctx context.Context, config container.Config, hostConfig contai
// Skip named volume for BitBucket pipeline
if os.Getenv("BITBUCKET_CLONE_DIR") != "" {
hostConfig.Binds = binds
// Bitbucket doesn't allow for --security-opt option to be set
// https://support.atlassian.com/bitbucket-cloud/docs/run-docker-commands-in-bitbucket-pipelines/#Full-list-of-restricted-commands
hostConfig.SecurityOpt = nil
} else {
// Create named volumes with labels
for _, name := range sources {
Expand Down

0 comments on commit 11c5004

Please sign in to comment.