Skip to content

Commit

Permalink
Merge pull request #1992 from justaugustus/debian-base
Browse files Browse the repository at this point in the history
setcap: Build buster-v2.0.0 image
  • Loading branch information
k8s-ci-robot authored May 9, 2021
2 parents 174a2a4 + b1a0fe4 commit d04de43
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 15 deletions.
12 changes: 12 additions & 0 deletions dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,10 @@ dependencies:
match: DEBIAN_BASE_VERSION\ \?=\ [a-zA-Z]+\-v((([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?)(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?)
- path: images/build/debian-iptables/variants.yaml
match: '[a-zA-Z]+\-v((([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?)(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?)'
- path: images/build/setcap/Makefile
match: DEBIAN_BASE_VERSION\ \?=\ [a-zA-Z]+\-v((([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?)(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?)
- path: images/build/setcap/variants.yaml
match: '[a-zA-Z]+\-v((([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?)(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?)'

- name: "k8s.gcr.io/build-image/debian-hyperkube-base"
version: buster-v1.4.0
Expand All @@ -265,3 +269,11 @@ dependencies:
refPaths:
- path: images/build/debian-hyperkube-base/Makefile
match: BASEIMAGE\?\=\$\(BASE_REGISTRY\)\/debian-iptables-\$\(ARCH\):[a-zA-Z]+\-v((([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?)(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?)

- name: "k8s.gcr.io/build-image/setcap"
version: buster-v2.0.0
refPaths:
- path: images/build/setcap/Makefile
match: IMAGE_VERSION\ \?=\ [a-zA-Z]+\-v((([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?)(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?)
- path: images/build/setcap/variants.yaml
match: '[a-zA-Z]+\-v((([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?)(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?)'
12 changes: 1 addition & 11 deletions images/build/setcap/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,5 @@ ARG BASEIMAGE

FROM ${BASEIMAGE}

# An attempt to fix issues like:
# ```
# Error while loading /usr/sbin/dpkg-split: No such file or directory
# Error while loading /usr/sbin/dpkg-deb: No such file or directory
# ```
# See: https://github.com/docker/buildx/issues/495
RUN ln -s /usr/bin/dpkg-split /usr/sbin/dpkg-split \
&& ln -s /usr/bin/dpkg-deb /usr/sbin/dpkg-deb \
&& ln -s /bin/tar /usr/sbin/tar \
&& ln -s /bin/rm /usr/sbin/rm \
&& apt-get update \
RUN apt-get update \
&& apt-get -y --no-install-recommends install libcap2-bin
4 changes: 2 additions & 2 deletions images/build/setcap/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ REGISTRY?="gcr.io/k8s-staging-build-image"
IMAGE=$(REGISTRY)/setcap

TAG ?= $(shell git describe --tags --always --dirty)
IMAGE_VERSION ?= buster-v1.4.0
IMAGE_VERSION ?= buster-v2.0.0
CONFIG ?= buster
DEBIAN_BASE_VERSION ?= buster-v1.4.0
DEBIAN_BASE_VERSION ?= buster-v1.6.0

ARCH?=amd64
ALL_ARCH = amd64 arm arm64 ppc64le s390x
Expand Down
4 changes: 2 additions & 2 deletions images/build/setcap/variants.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
variants:
buster:
CONFIG: 'buster'
IMAGE_VERSION: 'buster-v1.4.0'
DEBIAN_BASE_VERSION: 'buster-v1.4.0'
IMAGE_VERSION: 'buster-v2.0.0'
DEBIAN_BASE_VERSION: 'buster-v1.6.0'

0 comments on commit d04de43

Please sign in to comment.