filter out podman for powerpc arch
parent
6c7cf29987
commit
a8ca32e63b
|
@ -176,7 +176,8 @@ RUN export ARCH=$(dpkg --print-architecture | sed 's/ppc64el/ppc64le/' | sed 's/
|
|||
clean-install cri-o cri-o-runc; fi
|
||||
|
||||
# install podman
|
||||
RUN sh -c "echo 'deb http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_20.04/ /' > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list" && \
|
||||
RUN export ARCH=$(dpkg --print-architecture | sed 's/ppc64el/ppc64le/' | sed 's/armhf/arm-v7/') && \
|
||||
if [ "$ARCH" != "ppc64le" ]; then sh -c "echo 'deb http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_20.04/ /' > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list" && \
|
||||
curl -LO https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable/xUbuntu_20.04/Release.key && \
|
||||
apt-key add - < Release.key && \
|
||||
clean-install podman && \
|
||||
|
@ -186,7 +187,7 @@ RUN sh -c "echo 'deb http://download.opensuse.org/repositories/devel:/kubic:/lib
|
|||
> /etc/systemd/system/podman.socket.d/override.conf && \
|
||||
mkdir -p /etc/tmpfiles.d && \
|
||||
echo "d /run/podman 0770 root podman" > /etc/tmpfiles.d/podman.conf && \
|
||||
systemd-tmpfiles --create
|
||||
systemd-tmpfiles --create; fi
|
||||
|
||||
# automount service
|
||||
COPY deploy/kicbase/automount/minikube-automount /usr/sbin/minikube-automount
|
||||
|
|
|
@ -19,6 +19,7 @@ package driver
|
|||
import (
|
||||
"os/exec"
|
||||
"runtime"
|
||||
"strings"
|
||||
)
|
||||
|
||||
// supportedDrivers is a list of supported drivers on Darwin.
|
||||
|
@ -31,6 +32,18 @@ var supportedDrivers = func() []string {
|
|||
SSH,
|
||||
}
|
||||
}
|
||||
// PowerPC does not support podman
|
||||
if strings.HasPrefix(runtime.GOARCH, "ppc") {
|
||||
return []string{
|
||||
VirtualBox,
|
||||
Parallels,
|
||||
VMwareFusion,
|
||||
HyperKit,
|
||||
VMware,
|
||||
Docker,
|
||||
SSH,
|
||||
}
|
||||
}
|
||||
return []string{
|
||||
VirtualBox,
|
||||
Parallels,
|
||||
|
|
Loading…
Reference in New Issue