Skip to content

Commit

Permalink
Merge pull request #56 from kpelzel/multi-arch
Browse files Browse the repository at this point in the history
Support multi architecture building
  • Loading branch information
roehrich-hpe authored Mar 19, 2024
2 parents 1ff8676 + c66ac17 commit 42f655c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion testsuite/integration/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ FROM rockylinux:9 AS testbase

COPY requirements.txt /requirements.txt

ARG TARGETARCH
ARG TARGETOS

RUN sed -i 's/^mirrorlist/#mirrorlist/g' /etc/yum.repos.d/rocky* && \
sed -i 's|^#baseurl=|baseurl=|' /etc/yum.repos.d/rocky*

Expand All @@ -13,7 +16,7 @@ RUN yum update -y && \
dnf check-update && \
dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo && \
dnf install -y docker-ce-cli && \
curl -k -LO "https://dl.k8s.io/release/$(curl -k -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" && \
curl -k -LO "https://dl.k8s.io/release/$(curl -k -L -s https://dl.k8s.io/release/stable.txt)/bin/${TARGETOS}/${TARGETARCH}/kubectl" && \
install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl && \
pip install -r requirements.txt

Expand Down

0 comments on commit 42f655c

Please sign in to comment.