Skip to content

Commit cd5d93d

Browse files
committed
feat(docker): use podman replace docker
1 parent a938d9f commit cd5d93d

2 files changed

Lines changed: 10 additions & 5 deletions

File tree

rootfs/Dockerfile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@ ENV GOLANGCI_LINT_VERSION=v1.29.0
88
# This is a huge one-liner to optimize the Docker image layer.
99
# We disable source repos to speed up apt-get update.
1010
RUN export DEBIAN_FRONTEND=noninteractive \
11+
# podman source list
12+
&& echo 'deb http://deb.debian.org/debian buster-backports main' >> /etc/apt/sources.list \
13+
&& echo 'deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/Debian_10/ /' > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list \
14+
&& curl -L https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/Debian_10/Release.key | apt-key add - \
1115
&& apt-get update \
12-
&& apt-get install -y lsb-release \
13-
&& curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - \
14-
&& echo "deb https://download.docker.com/linux/debian $(lsb_release -cs) stable" | tee -a /etc/apt/sources.list.d/docker.list \
15-
&& apt-get update \
16+
&& apt-get -y -t buster-backports install libseccomp2 \
1617
&& apt-get upgrade -y --no-install-recommends \
1718
&& apt-get install -y --no-install-recommends \
19+
lsb-release \
1820
bash \
1921
build-essential \
2022
ca-certificates \
@@ -39,7 +41,7 @@ RUN export DEBIAN_FRONTEND=noninteractive \
3941
zip \
4042
shellcheck \
4143
etcd \
42-
docker-ce-cli \
44+
podman \
4345
&& curl -o /usr/local/bin/kubectl \
4446
-L "https://dl.k8s.io/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/$(dpkg --print-architecture)/kubectl" \
4547
&& chmod +x /usr/local/bin/kubectl \

rootfs/usr/local/bin/docker

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
podman --storage-driver=vfs --events-backend=file $@

0 commit comments

Comments
 (0)