-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into defer-wip
- Loading branch information
Showing
47 changed files
with
1,213 additions
and
156 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 |
---|---|---|
|
@@ -21,6 +21,7 @@ Daniel Salzman <[email protected]> | |
daurnimator <[email protected]> | ||
David Beitey <[email protected]> | ||
Felix Yan <[email protected]> | ||
Frantisek Tobias <[email protected]> | ||
Grigorii Demidov <[email protected]> | ||
Hasnat <[email protected]> | ||
Héctor Molinero Fernández <[email protected]> | ||
|
@@ -45,6 +46,7 @@ Lukáš Ježek <[email protected]> | |
Lukáš Ondráček <[email protected]> | ||
Manu Bretelle <[email protected]> | ||
Marek Vavruša <[email protected]> | ||
menakite <[email protected]> | ||
Michal Karm Babáček <[email protected]> | ||
Michal Lupečka <[email protected]> | ||
Ondřej Surý <[email protected]> | ||
|
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 |
---|---|---|
|
@@ -6,7 +6,6 @@ FROM debian:12 AS build | |
ENV OBS_REPO=knot-resolver-latest | ||
ENV DISTROTEST_REPO=Debian_12 | ||
|
||
|
||
RUN apt-get update -qq && \ | ||
apt-get -qqq -y install \ | ||
apt-transport-https ca-certificates wget \ | ||
|
@@ -25,10 +24,19 @@ RUN cd /source && \ | |
git submodule update --init --recursive && \ | ||
git config --global user.name "Docker Build" && \ | ||
git config --global user.email docker-build@knot-resolver && \ | ||
\ | ||
# Replace 'knot-resolver' user and group with 'root' | ||
# in meson_options.tx and python/knot_resolver/constants.py. | ||
# This is needed for the file/directory permissions validation | ||
# and then for the proper functioning of the resolver. | ||
sed s/knot-resolver/root/g -i meson_options.txt && \ | ||
sed 's/USER.*/USER = "root"/g' -i python/knot_resolver/constants.py && \ | ||
sed 's/GROUP.*/GROUP = "root"/g' -i python/knot_resolver/constants.py && \ | ||
git commit -a -m TMP && \ | ||
\ | ||
/root/.local/bin/apkg build-dep -y && \ | ||
/root/.local/bin/apkg build | ||
|
||
|
||
# Real container | ||
FROM debian:12-slim AS runtime | ||
|
||
|
@@ -56,16 +64,20 @@ RUN apt-get install -y /pkg/*/*.deb && \ | |
apt-get remove -y -qq curl gnupg2 && \ | ||
apt-get autoremove -y && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* && \ | ||
mkdir /config | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
COPY etc/config/config.example.docker.yaml /config/config.yaml | ||
COPY etc/config/config.example.docker.yaml /etc/knot-resolver/config.yaml | ||
|
||
LABEL cz.knot-resolver.vendor="CZ.NIC" | ||
LABEL maintainer="[email protected]" | ||
|
||
# Export plain DNS, DoT, DoH and management interface | ||
EXPOSE 53/UDP 53/TCP 443/TCP 853/TCP 5000/TCP | ||
|
||
# Prepare shared config | ||
VOLUME /etc/knot-resolver | ||
# Prepare shared cache | ||
VOLUME /var/cache/knot-resolver | ||
|
||
ENTRYPOINT ["/usr/bin/knot-resolver"] | ||
CMD ["-c", "/config/config.yaml"] | ||
CMD ["-c", "/etc/knot-resolver/config.yaml"] |
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
Oops, something went wrong.