Fix ALLOW_UNAUTHENTICATED for bionic kubeadm-AIO
Change-Id: I6bf1f483999a10322362aa18bd43bc09cef7ffe9 Signed-off-by: Andrii Ostapenko <andrii.ostapenko@att.com>
This commit is contained in:
parent
c61fc590fb
commit
a0ca4a3bb9
@ -24,7 +24,10 @@ COPY ./tools/images/kubeadm-aio/sources.list /etc/apt/
|
|||||||
RUN sed -i \
|
RUN sed -i \
|
||||||
-e "s|%%UBUNTU_URL%%|${UBUNTU_URL}|g" \
|
-e "s|%%UBUNTU_URL%%|${UBUNTU_URL}|g" \
|
||||||
/etc/apt/sources.list ;\
|
/etc/apt/sources.list ;\
|
||||||
echo "APT::Get::AllowUnauthenticated \"${ALLOW_UNAUTHENTICATED}\";" > /etc/apt/apt.conf.d/allow-unathenticated
|
echo "APT::Get::AllowUnauthenticated \"${ALLOW_UNAUTHENTICATED}\";\n\
|
||||||
|
Acquire::AllowInsecureRepositories \"${ALLOW_UNAUTHENTICATED}\";\n\
|
||||||
|
Acquire::AllowDowngradeToInsecureRepositories \"${ALLOW_UNAUTHENTICATED}\";" \
|
||||||
|
>> /etc/apt/apt.conf.d/allow-unathenticated
|
||||||
|
|
||||||
ARG GOOGLE_KUBERNETES_REPO_URL=https://storage.googleapis.com/kubernetes-release/release/${KUBE_VERSION}/bin/linux/amd64
|
ARG GOOGLE_KUBERNETES_REPO_URL=https://storage.googleapis.com/kubernetes-release/release/${KUBE_VERSION}/bin/linux/amd64
|
||||||
ENV GOOGLE_KUBERNETES_REPO_URL ${GOOGLE_KUBERNETES_REPO_URL}
|
ENV GOOGLE_KUBERNETES_REPO_URL ${GOOGLE_KUBERNETES_REPO_URL}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user