Skip to content

Commit 1daec53

Browse files
authored
Merge pull request linuxkit#3556 from deitch/openssh-client
bump alpine version, add openssh-client, wireguard apk, containerd 1.4.1
2 parents bc72059 + fd45bc2 commit 1daec53

File tree

5 files changed

+808
-834
lines changed

5 files changed

+808
-834
lines changed

tools/alpine/Dockerfile

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM alpine:3.11 AS mirror
1+
FROM alpine:3.12 AS mirror
22

33
# update base image
44
RUN apk update && apk upgrade -a
@@ -12,23 +12,8 @@ RUN cat /tmp/packages.$(uname -m) >> /tmp/packages && \
1212
mkdir -p /mirror/$(apk --print-arch) && \
1313
apk fetch --recursive -o /mirror/$(apk --print-arch) $(apk info; cat /tmp/packages)
1414

15-
# It's tricky to mix edge/testing packages which sometimes leads to dependency conflicts.
16-
# wireguard-tools currently is only in edge, so here we build our own package using the
17-
# APKBUILD file from edge.
18-
RUN apk add alpine-sdk libmnl-dev curl && \
19-
adduser -D builder && \
20-
addgroup builder abuild && \
21-
mkdir -p /wireguard && \
22-
chmod 0777 /wireguard && \
23-
cd /wireguard && \
24-
curl -fsSLo APKBUILD https://git.alpinelinux.org/cgit/aports/plain/community/wireguard-tools/APKBUILD && \
25-
su -c "abuild-keygen -a -n && abuild -r" builder && \
26-
cp /home/builder/packages/$(apk --print-arch)/wireguard-tools-[0-9]*.apk /mirror/$(apk --print-arch) && \
27-
cp /home/builder/packages/$(apk --print-arch)/wireguard-tools-wg-[0-9]*.apk /mirror/$(apk --print-arch) && \
28-
cp /home/builder/packages/$(apk --print-arch)/wireguard-tools-wg-quick-[0-9]*.apk /mirror/$(apk --print-arch)
29-
30-
# install abuild for signing
31-
RUN apk add --no-cache abuild
15+
# install abuild and sudo for signing
16+
RUN apk add --no-cache abuild sudo
3217

3318
# install a new key into /etc/apk/keys
3419
RUN abuild-keygen -a -i -n
@@ -55,7 +40,7 @@ RUN go get -u github.com/LK4D4/vndr
5540
# Update `FROM` in `pkg/containerd/Dockerfile`, `pkg/init/Dockerfile` and
5641
# `test/pkg/containerd/Dockerfile` when changing this.
5742
ENV CONTAINERD_REPO=https://github.com/containerd/containerd.git
58-
ENV CONTAINERD_COMMIT=v1.3.4
43+
ENV CONTAINERD_COMMIT=v1.4.1
5944
RUN mkdir -p $GOPATH/src/github.com/containerd && \
6045
cd $GOPATH/src/github.com/containerd && \
6146
git clone https://github.com/containerd/containerd.git && \

tools/alpine/packages

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,13 @@ open-iscsi
8787
openntpd
8888
openrc
8989
openresolv
90+
openssh-client
9091
openssh-server
9192
openssl
9293
openssl-dev
9394
patch
9495
pigz
95-
python
96+
python2
9697
python3
9798
qemu-aarch64
9899
qemu-arm
@@ -118,6 +119,7 @@ tzdata
118119
util-linux
119120
util-linux-dev
120121
vim
122+
wireguard-tools
121123
wireless-tools
122124
wpa_supplicant
123125
xfsprogs

0 commit comments

Comments
 (0)