-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.validate
More file actions
32 lines (28 loc) · 901 Bytes
/
Dockerfile.validate
File metadata and controls
32 lines (28 loc) · 901 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
ARG OS_NAME=debian
ARG OS_VERSION=12
FROM ${OS_NAME}:${OS_VERSION}
ARG OS_NAME
ARG OS_VERSION
ARG FRR_VERSION
ARG FRR_APT_CHANNEL
WORKDIR /tmp
RUN apt-get update --quiet \
&& apt-get install \
--yes \
--no-install-recommends \
--quiet \
apt-transport-https \
apt-utils \
ca-certificates \
curl \
gnupg2 \
software-properties-common \
# install frr from frrouting debian package repo
&& curl -s https://deb.frrouting.org/frr/keys.gpg | tee /usr/share/keyrings/frrouting.gpg > /dev/null \
&& echo "deb [signed-by=/usr/share/keyrings/frrouting.gpg] https://deb.frrouting.org/frr ${FRR_APT_CHANNEL} ${FRR_VERSION}" > /etc/apt/sources.list.d/frr.list \
&& apt update \
&& apt install --yes --no-install-recommends frr frr-pythontools nftables netbase
ENV OS_NAME=${OS_NAME}
ENV OS_VERSION=${OS_VERSION}
ENV FRR_VERSION=${FRR_VERSION}
COPY validate_os.sh /