mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-01-01 21:44:22 +01:00
While doing the release we've faced the following issue: ``` Dockerfile for action: '/home/runner/work/kata-containers/kata-containers/./packaging/kata-deploy/action/Dockerfile'. /usr/bin/docker build -t 8a33c1:c0625fe487ce5e4c8217747bef28861f -f "/home/runner/work/kata-containers/kata-containers/./packaging/kata-deploy/action/Dockerfile" "/home/runner/work/kata-containers/kata-containers/packaging/kata-deploy/action" Sending build context to Docker daemon 15.87kB Step 1/12 : FROM microsoft/azure-cli:latest pull access denied for microsoft/azure-cli, repository does not exist or may require 'docker login': denied: requested access to the resource is denied ``` Carlos pointed out that the image has gone awry and that we could use mcr.microsoft.com/azure-cli instead. Fixes: #2240 Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
32 lines
1.2 KiB
Docker
32 lines
1.2 KiB
Docker
# Copyright (c) 2019 Intel Corporation
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
FROM mcr.microsoft.com/azure-cli:latest
|
|
|
|
LABEL com.github.actions.name="Test kata-deploy in an AKS cluster"
|
|
LABEL com.github.actions.description="Test kata-deploy in an AKS cluster"
|
|
|
|
# Default to latest validated AKS-engine version
|
|
ARG AKS_ENGINE_VER="v0.62.0"
|
|
ARG ARCH=amd64
|
|
|
|
ENV GITHUB_ACTION_NAME="Test kata-deploy in an AKS cluster"
|
|
|
|
# When run, we expect the caller (GitHub Action workflow) to provide the
|
|
# PKG_SHA environment variable
|
|
ENV PKG_SHA=HEAD
|
|
|
|
RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/${ARCH}/kubectl \
|
|
&& chmod +x ./kubectl \
|
|
&& mv ./kubectl /usr/local/bin/kubectl
|
|
|
|
RUN curl -LO https://github.com/Azure/aks-engine/releases/download/${AKS_ENGINE_VER}/aks-engine-${AKS_ENGINE_VER}-linux-${ARCH}.tar.gz \
|
|
&& tar xvf aks-engine-${AKS_ENGINE_VER}-linux-${ARCH}.tar.gz \
|
|
&& mv aks-engine-${AKS_ENGINE_VER}-linux-${ARCH}/aks-engine /usr/local/bin/aks-engine \
|
|
&& rm aks-engine-${AKS_ENGINE_VER}-linux-${ARCH}.tar.gz
|
|
|
|
COPY kubernetes-containerd.json /
|
|
COPY setup-aks.sh test-kata.sh entrypoint.sh /
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|