[Project] Implementing Project CLI (#5397)

This commit is contained in:
Simon Mo
2019-08-08 21:28:25 -07:00
committed by Philipp Moritz
parent 592f313210
commit d9b45cceec
9 changed files with 186 additions and 21 deletions
@@ -0,0 +1,18 @@
# This file is generated by `ray project create`.
# A unique identifier for the head node and workers of this cluster.
cluster_name: {{name}}
# The maximum number of workers nodes to launch in addition to the head
# node. This takes precedence over min_workers. min_workers defaults to 0.
max_workers: 1
# Cloud-provider specific configuration.
provider:
type: aws
region: us-west-2
availability_zone: us-west-2a
# How Ray will authenticate with newly launched nodes.
auth:
ssh_user: ubuntu
@@ -0,0 +1,20 @@
# This file is generated by `ray project create`.
name: {{name}}
# description: A short description of the project.
# repo: The URL of the repo this project is part of.
cluster: {{cluster}}
environment:
# dockerfile: The dockerfile to be built and ran the commands with.
# dockerimage: The docker image to be used to run the project in, e.g. ubuntu:18.04.
requirements: {{requirements}}
shell: # Shell commands to be ran for environment setup.
- echo "Setting up the environment"
commands:
- name: first-command
command: echo "Starting ray job"
@@ -0,0 +1 @@
ray[debug]