Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CI] Add kind-in-Docker test to Buildkite CI #1243

Merged
merged 12 commits into from
Jul 18, 2023
2 changes: 1 addition & 1 deletion .buildkite/example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
- ls -alp /workdir
- export PATH=$PATH:/usr/local/go/bin
- cd /workdir/ray-operator
- make test
- make test
18 changes: 18 additions & 0 deletions .buildkite/kind-in-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
- label: kind in Docker
instance_size: large
image: golang:1.17
commands:
# Install Go
- export PATH=$PATH:/usr/local/go/bin

# Install kind
kevin85421 marked this conversation as resolved.
Show resolved Hide resolved
- curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.20.0/kind-linux-amd64
- chmod +x ./kind
- mv ./kind /usr/local/bin/kind

# Install Docker
- bash scripts/install-docker.sh

# Delete cluster if it already exists
- kind delete cluster
- kind create cluster
10 changes: 10 additions & 0 deletions scripts/install-docker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

# Suppress interactive prompts
export DEBIAN_FRONTEND=noninteractive
kevin85421 marked this conversation as resolved.
Show resolved Hide resolved
export TZ=America/Los_Angeles

apt-get update -qq && apt-get upgrade -qq
apt-get install -y -qq curl

curl -o- https://get.docker.com | sh