forked from ray-project/kuberay
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CI] Add
kind
-in-Docker test to Buildkite CI (ray-project#1243)
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
1 parent
6361ff9
commit 4ad6cc8
Showing
3 changed files
with
29 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,4 @@ | |
- ls -alp /workdir | ||
- export PATH=$PATH:/usr/local/go/bin | ||
- cd /workdir/ray-operator | ||
- make test | ||
- make test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |