File tree 29 files changed +37
-37
lines changed
29 files changed +37
-37
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ set -ex
13
13
export REGISTRY=${REGISTRY:- icr.io/ codeengine}
14
14
15
15
# Build the image
16
- docker build ${NOCACHE} -t ${REGISTRY} /app-n-job .
16
+ docker build ${NOCACHE} -t ${REGISTRY} /app-n-job . --platform linux/amd64
17
17
18
18
# And push it
19
19
docker push ${REGISTRY} /app-n-job
Original file line number Diff line number Diff line change @@ -13,9 +13,9 @@ set -ex
13
13
export REGISTRY=${REGISTRY:- icr.io/ codeengine}
14
14
15
15
# First build the app's image and push it
16
- docker build ${NOCACHE} -t ${REGISTRY} /a2j-app -f Dockerfile.app .
16
+ docker build ${NOCACHE} -t ${REGISTRY} /a2j-app -f Dockerfile.app . --platform linux/amd64
17
17
docker push ${REGISTRY} /a2j-app
18
18
19
19
# Now build the job's
20
- docker build ${NOCACHE} -t ${REGISTRY} /a2j-job -f Dockerfile.job .
20
+ docker build ${NOCACHE} -t ${REGISTRY} /a2j-job -f Dockerfile.job . --platform linux/amd64
21
21
docker push ${REGISTRY} /a2j-job
Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ set -ex
13
13
export REGISTRY=${REGISTRY:- icr.io/ codeengine}
14
14
15
15
# Build the images
16
- docker build ${NOCACHE} -f Dockerfile.nginx -t ${REGISTRY} /auth-proxy .
17
- docker build ${NOCACHE} -f Dockerfile.app -t ${REGISTRY} /auth-app .
16
+ docker build ${NOCACHE} -f Dockerfile.nginx -t ${REGISTRY} /auth-proxy . --platform linux/amd64
17
+ docker build ${NOCACHE} -f Dockerfile.app -t ${REGISTRY} /auth-app . --platform linux/amd64
18
18
19
19
# And push them
20
20
docker push ${REGISTRY} /auth-proxy
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ set -ex
13
13
export REGISTRY=${REGISTRY:- icr.io/ codeengine}
14
14
15
15
# Build the image
16
- docker build ${NOCACHE} -t ${REGISTRY} /ce-bash .
16
+ docker build ${NOCACHE} -t ${REGISTRY} /ce-bash . --platform linux/amd64
17
17
18
18
# And push it
19
19
docker push ${REGISTRY} /ce-bash
Original file line number Diff line number Diff line change 3
3
set -ex
4
4
export REGISTRY=${REGISTRY:- icr.io/ codeengine}
5
5
6
- docker build -f - -t ${REGISTRY} /ce-tester . << -EOF
6
+ docker build --platform linux/amd64 - f - -t ${REGISTRY} /ce-tester . << -EOF
7
7
FROM icr.io/codeengine/ce-bash
8
8
WORKDIR /root
9
9
COPY tester /
Original file line number Diff line number Diff line change @@ -13,5 +13,5 @@ set -ex
13
13
export REGISTRY=${REGISTRY:- icr.io/ codeengine}
14
14
15
15
# First build the app's image and push it
16
- docker build ${NOCACHE} -t ${REGISTRY} /bind-app -f Dockerfile .
16
+ docker build ${NOCACHE} -t ${REGISTRY} /bind-app -f Dockerfile . --platform linux/amd64
17
17
docker push ${REGISTRY} /bind-app
Original file line number Diff line number Diff line change @@ -13,5 +13,5 @@ set -ex
13
13
export REGISTRY=${REGISTRY:- icr.io/ codeengine}
14
14
15
15
# First build the app's image and push it
16
- docker build ${NOCACHE} -t ${REGISTRY} /bind-job -f Dockerfile .
16
+ docker build ${NOCACHE} -t ${REGISTRY} /bind-job -f Dockerfile . --platform linux/amd64
17
17
docker push ${REGISTRY} /bind-job
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ set -ex
13
13
export REGISTRY=${REGISTRY:- icr.io/ codeengine}
14
14
15
15
# Build the image
16
- docker build ${NOCACHE} -t ${REGISTRY} /cecli .
16
+ docker build ${NOCACHE} -t ${REGISTRY} /cecli . --platform linux/amd64
17
17
18
18
# And push it
19
19
docker push ${REGISTRY} /cecli
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ set -ex
13
13
export REGISTRY=${REGISTRY:- icr.io/ codeengine}
14
14
15
15
# Build the image
16
- docker build ${NOCACHE} -t ${REGISTRY} /ce-config-env .
16
+ docker build ${NOCACHE} -t ${REGISTRY} /ce-config-env . --platform linux/amd64
17
17
18
18
# And push it
19
19
docker push ${REGISTRY} /ce-config-env
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ set -ex
13
13
export REGISTRY=${REGISTRY:- icr.io/ codeengine}
14
14
15
15
# Build the image
16
- docker build ${NOCACHE} -t ${REGISTRY} /ce-config-vol .
16
+ docker build ${NOCACHE} -t ${REGISTRY} /ce-config-vol . --platform linux/amd64
17
17
18
18
# And push it
19
19
docker push ${REGISTRY} /ce-config-vol
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ set -ex
13
13
export REGISTRY=${REGISTRY:- icr.io/ codeengine}
14
14
15
15
# Build the image
16
- docker build ${NOCACHE} -t ${REGISTRY} /cos-listen .
16
+ docker build ${NOCACHE} -t ${REGISTRY} /cos-listen . --platform linux/amd64
17
17
18
18
# And push it
19
19
docker push ${REGISTRY} /cos-listen
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ set -ex
13
13
export REGISTRY=${REGISTRY:- icr.io/ codeengine}
14
14
15
15
# Build the image
16
- docker build ${NOCACHE} -t ${REGISTRY} /cos2cos .
16
+ docker build ${NOCACHE} -t ${REGISTRY} /cos2cos . --platform linux/amd64
17
17
18
18
# And push it
19
19
docker push ${REGISTRY} /cos2cos
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ set -ex
13
13
export REGISTRY=${REGISTRY:- icr.io/ codeengine}
14
14
15
15
# Build the image
16
- docker build ${NOCACHE} -t ${REGISTRY} /cron .
16
+ docker build ${NOCACHE} -t ${REGISTRY} /cron . --platform linux/amd64
17
17
18
18
# And push it
19
19
docker push ${REGISTRY} /cron
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ set -ex
13
13
export REGISTRY=${REGISTRY:- icr.io/ codeengine}
14
14
15
15
# Build the image
16
- docker build ${NOCACHE} -t ${REGISTRY} /cronjob .
16
+ docker build ${NOCACHE} -t ${REGISTRY} /cronjob . --platform linux/amd64
17
17
18
18
# And push it
19
19
docker push ${REGISTRY} /cronjob
Original file line number Diff line number Diff line change @@ -13,5 +13,5 @@ set -ex
13
13
export REGISTRY=${REGISTRY:- icr.io/ codeengine}
14
14
15
15
# Build the job image and push it
16
- docker build ${NOCACHE} -t ${REGISTRY} /daemonjob -f Dockerfile .
16
+ docker build ${NOCACHE} -t ${REGISTRY} /daemonjob -f Dockerfile . --platform linux/amd64
17
17
docker push ${REGISTRY} /daemonjob
Original file line number Diff line number Diff line change 1
- FROM icr.io/codeengine/node:12 -alpine
1
+ FROM icr.io/codeengine/node:18 -alpine
2
2
RUN npm install
3
3
COPY server.js .
4
4
EXPOSE 8080
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ set -ex
13
13
export REGISTRY=${REGISTRY:- icr.io/ codeengine}
14
14
15
15
# Build the image
16
- docker build ${NOCACHE} -t ${REGISTRY} /hello .
16
+ docker build ${NOCACHE} -t ${REGISTRY} /hello . --platform linux/amd64
17
17
18
18
# And push it
19
19
docker push ${REGISTRY} /hello
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ set -ex
13
13
export REGISTRY=${REGISTRY:- icr.io/ codeengine}
14
14
15
15
# Build the image
16
- docker build ${NOCACHE} -t ${REGISTRY} /helloworld .
16
+ docker build ${NOCACHE} -t ${REGISTRY} /helloworld . --platform linux/amd64
17
17
18
18
# And push it
19
19
docker push ${REGISTRY} /helloworld
Original file line number Diff line number Diff line change @@ -13,5 +13,5 @@ set -ex
13
13
export REGISTRY=${REGISTRY:- icr.io/ codeengine}
14
14
15
15
# Build the job image and push it
16
- docker build ${NOCACHE} -t ${REGISTRY} /firstjob -f Dockerfile .
16
+ docker build ${NOCACHE} -t ${REGISTRY} /firstjob -f Dockerfile . --platform linux/amd64
17
17
docker push ${REGISTRY} /firstjob
Original file line number Diff line number Diff line change @@ -13,9 +13,9 @@ set -ex
13
13
export REGISTRY=${REGISTRY:- icr.io/ codeengine}
14
14
15
15
# First build the app's image and push it
16
- docker build ${NOCACHE} -t ${REGISTRY} /j2a-app -f Dockerfile.app .
16
+ docker build ${NOCACHE} -t ${REGISTRY} /j2a-app -f Dockerfile.app . --platform linux/amd64
17
17
docker push ${REGISTRY} /j2a-app
18
18
19
19
# Now build the job's
20
- docker build ${NOCACHE} -t ${REGISTRY} /j2a-job -f Dockerfile .
20
+ docker build ${NOCACHE} -t ${REGISTRY} /j2a-job -f Dockerfile . --platform linux/amd64
21
21
docker push ${REGISTRY} /j2a-job
Original file line number Diff line number Diff line change @@ -13,5 +13,5 @@ set -ex
13
13
export REGISTRY=${REGISTRY:- icr.io/ codeengine}
14
14
15
15
# Build the job image and push it
16
- docker build -t " ${REGISTRY} " /job2vsi -f Dockerfile .
16
+ docker build -t " ${REGISTRY} " /job2vsi -f Dockerfile . --platform linux/amd64
17
17
docker push " ${REGISTRY} " /job2vsi
Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ set -ex
13
13
export REGISTRY=${REGISTRY:- icr.io/ codeengine}
14
14
15
15
# Build the images
16
- docker build ${NOCACHE} -f Dockerfile.sender -t ${REGISTRY} /kafka-sender .
17
- docker build ${NOCACHE} -f Dockerfile.receiver -t ${REGISTRY} /kafka-receiver .
16
+ docker build ${NOCACHE} -f Dockerfile.sender -t ${REGISTRY} /kafka-sender . --platform linux/amd64
17
+ docker build ${NOCACHE} -f Dockerfile.receiver -t ${REGISTRY} /kafka-receiver . --platform linux/amd64
18
18
19
19
# And push it
20
20
docker push ${REGISTRY} /kafka-sender
Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ set -ex
13
13
export REGISTRY=${REGISTRY:- icr.io/ codeengine}
14
14
15
15
# Build the image
16
- docker build ${NOCACHE} -t ${REGISTRY} /priv-front -f Dockerfile.frontend .
17
- docker build ${NOCACHE} -t ${REGISTRY} /priv-back -f Dockerfile.backend .
16
+ docker build ${NOCACHE} -t ${REGISTRY} /priv-front -f Dockerfile.frontend . --platform linux/amd64
17
+ docker build ${NOCACHE} -t ${REGISTRY} /priv-back -f Dockerfile.backend . --platform linux/amd64
18
18
19
19
# And push it
20
20
docker push ${REGISTRY} /priv-front
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ set -ex
13
13
export REGISTRY=${REGISTRY:- icr.io/ codeengine}
14
14
15
15
# Build the image
16
- docker build ${NOCACHE} -t ${REGISTRY} /ce-secret-env .
16
+ docker build ${NOCACHE} -t ${REGISTRY} /ce-secret-env . --platform linux/amd64
17
17
18
18
# And push it
19
19
docker push ${REGISTRY} /ce-secret-env
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ set -ex
13
13
export REGISTRY=${REGISTRY:- icr.io/ codeengine}
14
14
15
15
# Build the image
16
- docker build ${NOCACHE} -t ${REGISTRY} /ce-secret-vol .
16
+ docker build ${NOCACHE} -t ${REGISTRY} /ce-secret-vol . --platform linux/amd64
17
17
18
18
# And push it
19
19
docker push ${REGISTRY} /ce-secret-vol
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ set -ex
13
13
export REGISTRY=${REGISTRY:- icr.io/ codeengine}
14
14
15
15
# Build the image
16
- docker build ${NOCACHE} -t ${REGISTRY} /sessions .
16
+ docker build ${NOCACHE} -t ${REGISTRY} /sessions . --platform linux/amd64
17
17
18
18
# And push it
19
19
docker push ${REGISTRY} /sessions
Original file line number Diff line number Diff line change @@ -13,5 +13,5 @@ set -ex
13
13
export REGISTRY=${REGISTRY:- icr.io/ codeengine}
14
14
15
15
# Build the job image and push it
16
- docker build ${NOCACHE} -t ${REGISTRY} /testjob -f Dockerfile .
16
+ docker build ${NOCACHE} -t ${REGISTRY} /testjob -f Dockerfile . --platform linux/amd64
17
17
docker push ${REGISTRY} /testjob
Original file line number Diff line number Diff line change @@ -14,14 +14,14 @@ export REGISTRY=${REGISTRY:-icr.io/codeengine}
14
14
15
15
# First build and push v1 of our app - notice no tag on the image name
16
16
cd v1
17
- docker build ${NOCACHE} -t ${REGISTRY} /thumbnail .
17
+ docker build ${NOCACHE} -t ${REGISTRY} /thumbnail . --platform linux/amd64
18
18
docker push ${REGISTRY} /thumbnail:latest
19
19
cd ..
20
20
21
21
# Now build and push v2, but we have an app and a job this time
22
22
cd v2
23
- docker build ${NOCACHE} -t ${REGISTRY} /thumbnail:v2 -f Dockerfile.app .
24
- docker build ${NOCACHE} -t ${REGISTRY} /thumbnail-job -f Dockerfile.job .
23
+ docker build ${NOCACHE} -t ${REGISTRY} /thumbnail:v2 -f Dockerfile.app . --platform linux/amd64
24
+ docker build ${NOCACHE} -t ${REGISTRY} /thumbnail-job -f Dockerfile.job . --platform linux/amd64
25
25
docker push ${REGISTRY} /thumbnail:v2
26
26
docker push ${REGISTRY} /thumbnail-job
27
27
cd ..
Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ set -ex
13
13
export REGISTRY=${REGISTRY:- icr.io/ codeengine}
14
14
15
15
# Build the images
16
- docker build -f Dockerfile.server ${NOCACHE} -t ${REGISTRY} /ws-server .
17
- docker build -f Dockerfile.client ${NOCACHE} -t ${REGISTRY} /ws-client .
16
+ docker build -f Dockerfile.server ${NOCACHE} -t ${REGISTRY} /ws-server . --platform linux/amd64
17
+ docker build -f Dockerfile.client ${NOCACHE} -t ${REGISTRY} /ws-client . --platform linux/amd64
18
18
19
19
# And push it
20
20
docker push ${REGISTRY} /ws-server
You can’t perform that action at this time.
0 commit comments