Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

Commit

Permalink
Merge pull request #237 from justinsb/revert_base_image
Browse files Browse the repository at this point in the history
Revert base image back to (latest) debian-hyperkube-base
  • Loading branch information
justinsb authored Jul 30, 2019
2 parents 0e48acd + a471d7e commit a9e80e8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 19 deletions.
16 changes: 9 additions & 7 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ http_archive(
sha256 = "8df59f11fb697743cbb3f26cfb8750395f30471e9eabde0d174c3aebc7a1cd39",
)


http_archive(
name = "bazel_gazelle",
urls = [
Expand Down Expand Up @@ -48,13 +47,16 @@ load(

container_repositories()

# Use a base image which includes ca-certificates (so we can talk to google / aws)
# Note that we use the _debug_ version, so that we have a shell & tar
# Note: We can't (easily) use distroless because we need: fsck, blkid, mount, others? to mount disks
# We also have to use debian-hyperkube-base because we need nsenter / fsck

container_pull(
name = "distroless_base_debug",
digest = "sha256:f989df6099c5efb498021c7f01b74f484b46d2f5e1cdb862e508569d87569f2b",
registry = "gcr.io",
repository = "distroless/base",
name = "debian-hyperkube-base-amd64",
architecture = "amd64",
digest = "sha256:5d4ea2fb5fbe9a9a9da74f67cf2faefc881968bc39f2ac5d62d9167e575812a1",
registry = "k8s.gcr.io",
repository = "debian-hyperkube-base",
tag = "0.12.1", # ignored, but kept here for documentation
)

#=============================================================================
Expand Down
13 changes: 1 addition & 12 deletions images/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -75,20 +75,9 @@ container_layer(
],
)

container_image(
name = "base",
base = "@distroless_base_debug//image",
# Put the most crucial symlinks in the more obvious place
# (they are currently in /busybox)
symlinks = {
"/bin/sh": "/busybox/busybox",
"/bin/tar": "/busybox/busybox",
},
)

container_image(
name = "etcd-manager-base",
base = "base",
base = "@debian-hyperkube-base-amd64//image",
directory = "/opt",
layers = [
"etcd-2-2-1-layer",
Expand Down

0 comments on commit a9e80e8

Please sign in to comment.