Skip to content
This repository was archived by the owner on Apr 3, 2023. It is now read-only.

Commit 38ca6e8

Browse files
authored
Merge pull request #2 from tilt-dev/nicks/vm
circleci: run minikube in a VM
2 parents 68903c6 + 87aed07 commit 38ca6e8

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

.circleci/config.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
version: 2.1
2+
3+
orbs:
4+
kubernetes: circleci/[email protected]
5+
6+
jobs:
7+
build:
8+
machine:
9+
image: ubuntu-1604:201903-01
10+
11+
steps:
12+
- checkout
13+
- kubernetes/install-kubectl
14+
- run: |
15+
set -ex
16+
export MINIKUBE_VERSION=v1.13.1
17+
curl -fLo ./minikube-linux-amd64 "https://github.com/kubernetes/minikube/releases/download/${MINIKUBE_VERSION}/minikube-linux-amd64"
18+
chmod +x ./minikube-linux-amd64
19+
sudo mv ./minikube-linux-amd64 /usr/local/bin/minikube
20+
- run: |
21+
set -ex
22+
./minikube-with-registry.sh
23+
test/test.sh

test/test.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,19 @@ cd $(dirname $0)
99
docker pull busybox
1010
docker tag busybox localhost:5000/busybox
1111
docker push localhost:5000/busybox
12+
13+
set +e
14+
15+
kubectl get serviceaccount default
16+
17+
while [ $? -ne 0 ]; do
18+
echo "Waiting for service account"
19+
sleep 3
20+
kubectl get serviceaccount default
21+
done
22+
23+
set -e
24+
1225
kubectl delete -f pod.yaml --ignore-not-found
1326
kubectl create -f pod.yaml
1427
kubectl wait --for=condition=ready pod/minikube-test --timeout=60s

0 commit comments

Comments
 (0)