Skip to content

Commit c1c2b66

Browse files
committed
Add cloudbuild.yaml for etcd
Signed-off-by: Davanum Srinivas <[email protected]>
1 parent c225d13 commit c1c2b66

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

cluster/images/etcd/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414

1515
FROM BASEIMAGE as builder
1616

17+
# This image needs bash for running "migrate-if-needed.sh". Instead of a full debian image
18+
# we use just the bash-static and we wrap bash-static into a distroless image instead of
19+
# a full debian image
1720
RUN apt-get update -y \
1821
&& apt-get -yy -q install --no-install-recommends --no-install-suggests --fix-missing \
1922
bash-static
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# See https://cloud.google.com/cloud-build/docs/build-config
2+
timeout: 1200s
3+
options:
4+
substitution_option: ALLOW_LOOSE
5+
machineType: 'N1_HIGHCPU_8'
6+
steps:
7+
- name: 'gcr.io/k8s-testimages/gcb-docker-gcloud:v20200422-b25d964'
8+
entrypoint: 'bash'
9+
dir: ./cluster/images/etcd
10+
env:
11+
- DOCKER_CLI_EXPERIMENTAL=enabled
12+
- REGISTRY=gcr.io/$PROJECT_ID
13+
- PUSH_REGISTRY=gcr.io/$PROJECT_ID
14+
- IMAGE=gcr.io/$PROJECT_ID/etcd
15+
- BUILD_IMAGE=debian-build
16+
- TMPDIR=/workspace
17+
args:
18+
- '-c'
19+
- |
20+
gcloud auth configure-docker \
21+
&& docker run --rm --privileged linuxkit/binfmt:4ea3b9b0938cbd19834c096aa31ff475cc75d281 \
22+
&& make all-push

0 commit comments

Comments
 (0)