-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Boris Glimcher <Boris.Glimcher@emc.com>
- Loading branch information
Showing
5 changed files
with
24 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
FROM docker.io/library/python:3.10.7-slim | ||
|
||
RUN apt update && apt install -y libyang-tools libxml2-utils make curl && rm -rf /var/lib/apt/lists/* | ||
RUN apt update && apt install -y --no-install-recommends libyang-tools libxml2-utils make curl && rm -rf /var/lib/apt/lists/* | ||
|
||
# certificates | ||
SHELL ["/bin/ash", "-eo", "pipefail", "-c"] | ||
RUN curl -kL https://watsen.net/support/sztpd-simulator-0.0.11.tgz | tar -zxvf - -C /tmp/ | ||
WORKDIR /tmp/sztpd-simulator/pki | ||
RUN sed -i 's/localhost/bootstrap/g' sztpd1/sbi/end-entity/openssl.cnf | ||
RUN make pki | ||
RUN sed -i "s/localhost/bootstrap/g" sztpd1/sbi/end-entity/openssl.cnf && \ | ||
make pki | ||
echo # create trust chain && \ | ||
cat sztpd1/sbi/root-ca/my_cert.pem sztpd1/sbi/intermediate1/my_cert.pem > /opi.pem | ||
|
||
# create trust chain | ||
RUN cat sztpd1/sbi/root-ca/my_cert.pem sztpd1/sbi/intermediate1/my_cert.pem > /opi.pem | ||
|
||
CMD ['/bin/sh', '-c', 'sleep infinity'] | ||
CMD ["/bin/sh", "-c", "sleep infinity"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM docker.io/library/fedora:36 | ||
RUN dnf install -y dhclient | ||
RUN dnf install -y dhclient && dnf clean all | ||
COPY ./dhclient.conf /etc/dhcp/ | ||
CMD ["dhclient", "-d", "-v"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM docker.io/library/fedora:36 | ||
RUN dnf install -y dhcp-server gettext | ||
RUN dnf install -y dhcp-server gettext && dnf clean all | ||
COPY ./dhcpd.conf.template /etc/dhcp/ | ||
CMD ["dhcpd", "-d"] |