diff --git a/.buildkite/example.yml b/.buildkite/example.yml index 2bd1582f94..40b29a6923 100644 --- a/.buildkite/example.yml +++ b/.buildkite/example.yml @@ -5,4 +5,4 @@ - ls -alp /workdir - export PATH=$PATH:/usr/local/go/bin - cd /workdir/ray-operator - - make test \ No newline at end of file + - make test diff --git a/.buildkite/kind-in-docker.yml b/.buildkite/kind-in-docker.yml new file mode 100644 index 0000000000..2ce907375e --- /dev/null +++ b/.buildkite/kind-in-docker.yml @@ -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 diff --git a/scripts/install-docker.sh b/scripts/install-docker.sh new file mode 100644 index 0000000000..10f5849baa --- /dev/null +++ b/scripts/install-docker.sh @@ -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