diff --git a/BUILD.yaml b/BUILD.yaml new file mode 100644 index 000000000..2b3c46201 --- /dev/null +++ b/BUILD.yaml @@ -0,0 +1,26 @@ +# UNDER CONSTRUCTION: we in the process of adding template definitions +# into this file. This file does not contain all the templates yet. + +# job-intro template is to be removed and replaced by +# https://github.com/anyscale/first-job +- name: job-intro + emoji: 🔰 + title: Intro to Jobs + description: Introduction on how to use Anyscale Jobs + dir: templates/intro-jobs + cluster_env: + build_id: anyscaleray2340-py311 + compute_config: + GCP: configs/basic-single-node/gce.yaml + AWS: configs/basic-single-node/aws.yaml + +- name: workspace-intro + emoji: 🔰 + title: Intro to Workspaces + description: Introduction on how to use Anyscale Workspaces + dir: templates/intro-workspaces + cluster_env: + build_id: anyscaleray2340-py311 + compute_config: + GCP: configs/basic-single-node/gce.yaml + AWS: configs/basic-single-node/aws.yaml diff --git a/ci/maketmpl/hello.go b/ci/maketmpl/hello.go deleted file mode 100644 index 84c7788bd..000000000 --- a/ci/maketmpl/hello.go +++ /dev/null @@ -1,9 +0,0 @@ -package maketmpl - -import ( - "fmt" -) - -func Hello() { - fmt.Println("TODO: build templates the new way.") -} diff --git a/ci/maketmpl/maketmpl/main.go b/ci/maketmpl/maketmpl/main.go index 76d50bda2..4d654f016 100644 --- a/ci/maketmpl/maketmpl/main.go +++ b/ci/maketmpl/maketmpl/main.go @@ -1,9 +1,20 @@ package main import ( + "flag" + "log" + "github.com/anyscale/templates/ci/maketmpl" ) func main() { - maketmpl.Hello() + base := flag.String("base", ".", "base directory") + output := flag.String("output", "_build", "output directory") + buildFile := flag.String("build", "BUILD.yaml", "build file") + + flag.Parse() + + if err := maketmpl.BuildAll(*buildFile, *base, *output); err != nil { + log.Fatal(err) + } }