Skip to content

Commit

Permalink
💚 Use QEMU on e2e with minikube
Browse files Browse the repository at this point in the history
Signed-off-by: vankichi <[email protected]>
  • Loading branch information
vankichi committed Dec 2, 2024
1 parent 3d51a12 commit be9e2ce
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .github/actions/setup-e2e/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,20 @@ runs:
if: ${{ inputs.require_minikube == 'true' }}
shell: bash
run: |
# TODO: consider use apt install for ci
# Add Docker's official GPG key:
sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
# Add the repository to Apt sources:
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
make minikube/install
make minikube/start
- name: Check Kubernetes cluster
Expand Down
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,8 @@ E2E_REMOVE_FROM ?= 0

TEST_RESULT_DIR ?= /tmp

MINIKUBE_DRIVER = none

include Makefile.d/functions.mk

.PHONY: maintainer
Expand Down
2 changes: 1 addition & 1 deletion Makefile.d/minikube.mk
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ $(BINDIR)/minikube:
# Only use this for development related to Volume Snapshots. Usually k3d is faster.
.PHONY: minikube/start
minikube/start:
minikube start --force
minikube start --force --driver=$(MINIKUBE_DRIVER)
minikube addons enable volumesnapshots
minikube addons enable csi-hostpath-driver
minikube addons disable storage-provisioner
Expand Down

0 comments on commit be9e2ce

Please sign in to comment.