Skip to content

Commit

Permalink
[CI] Add kind-in-Docker test to Buildkite CI (ray-project#1243)
Browse files Browse the repository at this point in the history
This PR adds a Buildkite CI test that verifies that a kind cluster can be launched. This is a prerequisite for running end-to-end KubeRay tests in CI, so it makes sense to merge this PR even though KubeRay functionality isn't being tested yet.

The PR uses the support added in ray-project/rayci#14.

Related issue number
Closes ray-project#1203

---------

Signed-off-by: Archit Kulkarni <[email protected]>
  • Loading branch information
architkulkarni authored Jul 18, 2023
1 parent 6361ff9 commit 4ad6cc8
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
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
- 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
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

0 comments on commit 4ad6cc8

Please sign in to comment.