1
1
# syntax=docker/dockerfile:1
2
2
3
- ARG BASE=public.ecr.aws/ubuntu/ubuntu:22.04
4
-
5
- # `~` is mangled as `.`
6
- ARG KEA_VERSION=2.3.6-1.rk1.jammy
3
+ ARG BASE=public.ecr.aws/ubuntu/ubuntu:24.04
7
4
8
5
# ##
9
6
10
- FROM --platform=$BUILDPLATFORM public.ecr.aws/docker/library/rust:1.69 -slim-bullseye as build-healthz
7
+ FROM --platform=$BUILDPLATFORM public.ecr.aws/docker/library/rust:1.77 -slim-bullseye as build-healthz
11
8
RUN rustup target add aarch64-unknown-linux-gnu
12
9
RUN apt-get update \
13
10
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \
@@ -26,10 +23,10 @@ RUN --mount=type=cache,target=/usr/local/cargo/registry \
26
23
FROM --platform=$BUILDPLATFORM $BASE as build-stork
27
24
28
25
RUN apt-get update \
29
- && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends git rake build-essential wget unzip
26
+ && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends git rake build-essential wget unzip python3
30
27
31
28
WORKDIR /build
32
- RUN git clone --depth=1 https://gitlab.isc.org/isc-projects/stork -b v1.10 .0
29
+ RUN git clone --depth=1 https://gitlab.isc.org/isc-projects/stork -b v1.15 .0
33
30
34
31
WORKDIR /build/stork/backend
35
32
ENV GOPATH=/build/go
@@ -54,43 +51,18 @@ RUN jsonnet /tmp/kea-ctrl-agent.jsonnet > /app/kea-ctrl-agent.json
54
51
55
52
# ##
56
53
57
- FROM --platform=$BUILDPLATFORM $BASE as download
58
-
59
- RUN apt-get update \
60
- && DEBIAN_FRONTEND=noninteractive apt-get install -y \
61
- curl \
62
- ca-certificates
63
-
64
- ARG KEA_VERSION
65
-
66
- WORKDIR /download
67
- RUN curl -SsfL --remote-name-all \
68
- https://github.com/hanazuki/isc-kea.deb/releases/download/debian%2F2.3.6-1_rk1_jammy/{kea-admin_${KEA_VERSION}_arm64.deb,kea-common_${KEA_VERSION}_arm64.deb,kea-ctrl-agent_${KEA_VERSION}_arm64.deb,kea-dhcp4-server_${KEA_VERSION}_arm64.deb}
69
-
70
- RUN sha384sum -c --strict <<EOF
71
- 3da15d37c3edbaf670400c4221a7d116ebc306c4c573d3f3a6b8ace2ec1fb3782194b118c37a803b6696aa0340f45b17 kea-admin_2.3.6-1.rk1.jammy_arm64.deb
72
- 8d4fadc507ce3a98199dceefd71f2da689cab40aa97753bdfb0f2facff0f5c734b968d86809c666dea5f01ec35eb04ac kea-common_2.3.6-1.rk1.jammy_arm64.deb
73
- a735a6e6102defd5fadb20900fb92bbd769368c5c211be3f0f0e9ccab29d2d6e69ad65dd46fed22a016ed0b5a2e74c90 kea-ctrl-agent_2.3.6-1.rk1.jammy_arm64.deb
74
- 525e1ba2c96929ce32385d4c240a43ce7c4daf96023810d167b9204ba680517e8557896d40ab1d387de996fce7a84e68 kea-dhcp4-server_2.3.6-1.rk1.jammy_arm64.deb
75
- EOF
76
-
77
- # ##
78
-
79
54
FROM $BASE
80
55
81
56
RUN mkdir -p /run/kea /app
82
57
VOLUME /run/kea
83
58
84
- ARG KEA_VERSION
85
-
86
- RUN --mount=type=bind,from=download,src=/download,dst=/download \
87
- apt-get update \
59
+ RUN apt-get update \
88
60
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \
89
61
ca-certificates \
90
62
dumb-init \
91
- ruby3.0 \
63
+ ruby \
92
64
iproute2 \
93
- /download/*.deb \
65
+ kea \
94
66
&& apt-get clean && rm -rf /var/lib/apt/lists/*
95
67
96
68
COPY --from=build-healthz /app/bin/healthz /app/healthzd
0 commit comments