FROM golang:alpine3.9 as build
# Sonobuoy supports Kubernetes versions 1.11, 1.12 and 1.13
FROM golang:alpine3.9 as build
# Sonobuoy supports Kubernetes versions 1.11, 1.12 and 1.13
# Install dependencies
COPY pip-requirements.txt /wheels/requirements/pip-requirements.txt
RUN apk --no-cache add --update \
# Install dependencies
COPY pip-requirements.txt /wheels/requirements/pip-requirements.txt
RUN apk --no-cache add --update \
RUN if [ $(uname -m) == 'aarch64' ]; then HOST_ARCH=arm64; else HOST_ARCH=amd64; fi && \
echo "Building docker on $HOST_ARCH" && \
cd /src/k8s.io/kubernetes && \
RUN if [ $(uname -m) == 'aarch64' ]; then HOST_ARCH=arm64; else HOST_ARCH=amd64; fi && \
echo "Building docker on $HOST_ARCH" && \
cd /src/k8s.io/kubernetes && \
RUN git clone https://gerrit.akraino.org/r/validation /opt/akraino/validation
RUN cat /opt/akraino/validation/bluval/requirements.txt >> \
/wheels/requirements/pip-requirements.txt
RUN git clone https://gerrit.akraino.org/r/validation /opt/akraino/validation
RUN cat /opt/akraino/validation/bluval/requirements.txt >> \
/wheels/requirements/pip-requirements.txt