Skip to content

Commit

Permalink
Merge pull request #2757 from stmcginnis/sec-label
Browse files Browse the repository at this point in the history
Update docker run `--security-opt` command format
  • Loading branch information
stmcginnis authored Aug 18, 2023
2 parents 947c178 + 7974715 commit 8c4df72
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ rc=0
if ! docker run --rm \
--network=none \
--user "$(id -u):$(id -g)" \
--security-opt label:disable \
--security-opt="label=disable" \
-v "${BUILDSYS_TOOLS_DIR}":/tmp/tools \
"${BUILDSYS_SDK_IMAGE}" \
bash -c \
Expand Down Expand Up @@ -782,7 +782,7 @@ fi
docker run --rm \
--network=none \
--user "$(id -u):$(id -g)" \
--security-opt label:disable \
--security-opt="label=disable" \
-v "${BOOT_CONFIG_INPUT}":/tmp/bootconfig-input \
-v "${boot_config}":/tmp/bootconfig.data \
"${BUILDSYS_SDK_IMAGE}" \
Expand All @@ -803,7 +803,7 @@ script = [
docker run --rm \
--network=none \
--user "$(id -u):$(id -g)" \
--security-opt label:disable \
--security-opt="label=disable" \
-v "${BOOT_CONFIG}":/tmp/bootconfig.data \
"${BUILDSYS_SDK_IMAGE}" \
bootconfig -l /tmp/bootconfig.data
Expand Down Expand Up @@ -884,7 +884,7 @@ set +e
docker run --rm \
--network=none \
--user "$(id -u):$(id -g)" \
--security-opt label:disable \
--security-opt="label=disable" \
-e CARGO_HOME="/tmp/.cargo" \
-v "${CARGO_HOME}":/tmp/.cargo \
-v "${BUILDSYS_ROOT_DIR}/sources":/tmp/sources \
Expand Down Expand Up @@ -922,7 +922,7 @@ set +e
docker run --rm \
--user "$(id -u):$(id -g)" \
--security-opt label:disable \
--security-opt="label=disable" \
-e CARGO_HOME="/tmp/.cargo" \
-v "${CARGO_HOME}":/tmp/.cargo \
-v "${BUILDSYS_ROOT_DIR}/licenses:/tmp/licenses" \
Expand Down
4 changes: 2 additions & 2 deletions PROVISIONING-METAL.md
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ touch $(pwd)/bootconfig.data
docker run --rm \
--network=none \
--user "$(id -u):$(id -g)" \
--security-opt label:disable \
--security-opt label=disable \
-v $(pwd)/bootconfig-input:/tmp/bootconfig-input \
-v $(pwd)/bootconfig.data:/tmp/bootconfig.data \
"${SDK_IMAGE}" \
Expand All @@ -328,7 +328,7 @@ SDK_IMAGE="public.ecr.aws/bottlerocket/bottlerocket-sdk-${ARCH}:${SDK_VERSION}"
docker run --rm \
--network=none \
--user "$(id -u):$(id -g)" \
--security-opt label:disable \
--security-opt label=disable \
-v $(pwd)/bootconfig.data:/tmp/bootconfig.data \
"${SDK_IMAGE}" \
bootconfig -l /tmp/bootconfig.data
Expand Down
2 changes: 1 addition & 1 deletion tools/docker-go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ docker run --rm \
"${go_env[@]}" \
"${proxy_env[@]}" \
--user "$(id -u):$(id -g)" \
--security-opt label:disable \
--security-opt="label=disable" \
${DOCKER_RUN_ARGS} \
-v "${GOPATH}":"${GOPATH}" \
-v "${GO_MODULE_PATH}":"${GO_MODULE_PATH}" \
Expand Down

0 comments on commit 8c4df72

Please sign in to comment.