Skip to content

Commit 5d7e34b

Browse files
committed
fix: suppress warning msg mix of host platform
Added the flag `--platform linux/amd64` in some docker run/build commands. Closes #20
1 parent 76436ae commit 5d7e34b

File tree

8 files changed

+12
-2
lines changed

8 files changed

+12
-2
lines changed

bin/gcloud

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ WORKDIR=/app
66

77
# run from your working directory
88
docker run -it --rm \
9+
--platform linux/amd64 \
910
--volume $PWD:$WORKDIR \
1011
--volumes-from gcloud-config \
1112
--workdir $WORKDIR \

bin/gcloud-login

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ fi
1212

1313
# run from your working directory
1414
docker run -it \
15+
--platform linux/amd64 \
1516
--volume $PWD:$WORKDIR \
1617
--workdir $WORKDIR \
1718
--entrypoint gcloud \

bin/serverless

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ fi
1111

1212
# run from your working directory
1313
docker run -it --rm \
14+
--platform linux/amd64 \
1415
--name serverless-cli \
1516
--env AWS_PROFILE=$AWS_PROFILE \
1617
--env AWS_SDK_LOAD_CONFIG=1 \

bin/speedtest

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ IMAGE=davidcardoso/docker-speedtest:latest
66

77
# run from your working directory
88
docker run -it --rm \
9+
--platform linux/amd64 \
910
$IMAGE "${@}"

bin/terraform

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ EOF
2626

2727
# run from your working directory
2828
docker run -it --rm \
29+
--platform linux/amd64 \
2930
--name terraform-cli \
3031
--env AWS_PROFILE=${AWS_PROFILE} \
3132
--volume ${HOME}/.aws:/root/.aws \

docker/aws-sso-cred/build

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,6 @@ echo "=========================================================="
77
echo "Building '${IMAGE}'..."
88
echo "=========================================================="
99

10-
docker build --tag ${IMAGE} .
10+
docker build \
11+
--platform linux/amd64 \
12+
--tag ${IMAGE} .

docker/serverless/build

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,6 @@ echo "=========================================================="
77
echo "Building '${IMAGE}'..."
88
echo "=========================================================="
99

10-
docker build --tag ${IMAGE} .
10+
docker build \
11+
--platform linux/amd64 \
12+
--tag ${IMAGE} .

docker/speedtest/build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ echo "Building '${IMAGE}'..."
99
echo "=========================================================="
1010

1111
docker build \
12+
--platform linux/amd64 \
1213
--build-arg VERSION=${SPEEDTEST_VERSION} \
1314
--tag ${IMAGE} \
1415
.

0 commit comments

Comments
 (0)