mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 03:11:40 +00:00
Merge pull request #77861 from bclau/images/dnsutils-coredns
test images: Adds CoreDNS to dnsutils and jessie-dnsutils images
This commit is contained in:
commit
c7611727a6
@ -17,3 +17,6 @@ FROM BASEIMAGE
|
|||||||
CROSS_BUILD_COPY qemu-QEMUARCH-static /usr/bin/
|
CROSS_BUILD_COPY qemu-QEMUARCH-static /usr/bin/
|
||||||
|
|
||||||
RUN apk add --no-cache bind-tools dnsmasq
|
RUN apk add --no-cache bind-tools dnsmasq
|
||||||
|
|
||||||
|
ADD https://github.com/coredns/coredns/releases/download/v1.5.0/coredns_1.5.0_linux_BASEARCH.tgz /coredns.tgz
|
||||||
|
RUN tar -xzvf /coredns.tgz && rm -f /coredns.tgz
|
||||||
|
27
test/images/dnsutils/Dockerfile_windows
Normal file
27
test/images/dnsutils/Dockerfile_windows
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
# Copyright 2019 The Kubernetes Authors.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
FROM BASEIMAGE
|
||||||
|
|
||||||
|
USER ContainerAdministrator
|
||||||
|
ENV chocolateyUseWindowsCompression false
|
||||||
|
RUN powershell -Command \
|
||||||
|
iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1')); \
|
||||||
|
choco feature disable --name showDownloadProgress; \
|
||||||
|
powershell -Command choco install bind-toolsonly --version 9.10.3 -y
|
||||||
|
RUN powershell -Command "\
|
||||||
|
wget -uri 'https://github.com/coredns/coredns/releases/download/v1.5.0/coredns_1.5.0_windows_amd64.tgz' -OutFile 'C:\coredns.tgz';\
|
||||||
|
tar -xzvf 'C:\coredns.tgz';\
|
||||||
|
Remove-Item 'C:\coredns.tgz'"
|
||||||
|
ADD hostname /bin/hostname.exe
|
@ -1 +1 @@
|
|||||||
1.1
|
1.2
|
||||||
|
@ -26,3 +26,6 @@ RUN ["/fixup-apt-list.sh"]
|
|||||||
RUN apt-get -q update && \
|
RUN apt-get -q update && \
|
||||||
apt-get install -y dnsutils && \
|
apt-get install -y dnsutils && \
|
||||||
apt-get clean
|
apt-get clean
|
||||||
|
|
||||||
|
ADD https://github.com/coredns/coredns/releases/download/v1.5.0/coredns_1.5.0_linux_BASEARCH.tgz /coredns.tgz
|
||||||
|
RUN tar -xzvf /coredns.tgz && rm -f /coredns.tgz
|
||||||
|
@ -1 +1 @@
|
|||||||
1.0
|
1.1
|
||||||
|
Loading…
Reference in New Issue
Block a user