Skip to content
This repository has been archived by the owner on May 26, 2024. It is now read-only.

Commit

Permalink
Remove nerdctl workaround (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
rfranzke authored Mar 26, 2024
1 parent 422b6e1 commit e26ec8d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 39 deletions.
13 changes: 0 additions & 13 deletions node/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,6 @@ ARG TARGETARCH
RUN apt-get update -yq && \
apt-get install -yq --no-install-recommends wget apparmor apparmor-utils jq openssh-server sudo

# Gardener's cloud-config-downloader still needs the docker CLI to be present in the image for preloading the hyperkube image,
# see https://github.com/gardener/gardener/issues/4673
# Install nerdctl as a (mostly) docker-compatible replacement and fool the cloud-config-downloader with a small wrapper
# this is quite hacky but relieves us from installing docker here
ARG NERDCTL_VERSION=1.6.0
RUN curl -Lo /tmp/nerdctl.tar.gz https://github.com/containerd/nerdctl/releases/download/v$NERDCTL_VERSION/nerdctl-$NERDCTL_VERSION-$TARGETOS-$TARGETARCH.tar.gz && \
tar Cxzvvf /usr/local/bin /tmp/nerdctl.tar.gz && \
rm -f /tmp/nerdctl.tar.gz

# add our small nerdctl wrapper and disguise it as docker
COPY docker /usr/bin/docker
RUN chmod +x /usr/bin/docker

# remove kind's kubelet unit
RUN rm -f /etc/systemd/system/kubelet.service && \
rm -rf /etc/systemd/system/kubelet.service.d/
Expand Down
26 changes: 0 additions & 26 deletions node/docker

This file was deleted.

0 comments on commit e26ec8d

Please sign in to comment.