2016-08-11 12:37:20 -07:00
|
|
|
# Using the Sample client
|
2016-08-09 17:10:02 -07:00
|
|
|
|
2019-06-12 11:22:59 -07:00
|
|
|
## Usage:
|
2016-08-09 17:10:02 -07:00
|
|
|
```
|
2016-08-26 16:39:56 -07:00
|
|
|
Usage of ./client:
|
|
|
|
-cluster string
|
|
|
|
Name of cluster to run job on (default "devcluster")
|
2016-08-18 14:35:58 -07:00
|
|
|
-clusters string
|
|
|
|
Location of the clusters.json file used by aurora.
|
2016-08-11 11:39:10 -07:00
|
|
|
-cmd string
|
|
|
|
Job request type to send to Aurora Scheduler
|
|
|
|
-executor string
|
|
|
|
Executor to use (default "thermos")
|
|
|
|
-password string
|
|
|
|
Password to use for authorization (default "secret")
|
|
|
|
-updateId string
|
|
|
|
Update ID to operate on
|
|
|
|
-url string
|
|
|
|
URL at which the Aurora Scheduler exists as [url]:[port]
|
|
|
|
-username string
|
|
|
|
Username to use for authorization (default "aurora")
|
2016-08-09 17:10:02 -07:00
|
|
|
```
|
|
|
|
|
2016-08-11 11:39:10 -07:00
|
|
|
## Sample commands:
|
2016-10-07 12:56:35 -07:00
|
|
|
These commands are set to run on a vagrant box. To be able to run the docker compose
|
2016-08-11 11:39:10 -07:00
|
|
|
executor examples, the vagrant box must be configured properly to use the docker compose executor.
|
|
|
|
|
|
|
|
### Thermos
|
2016-08-25 18:56:55 -07:00
|
|
|
|
2016-08-11 11:39:10 -07:00
|
|
|
#### Creating a Thermos job
|
2016-08-09 17:10:02 -07:00
|
|
|
```
|
2017-10-12 17:07:43 -07:00
|
|
|
$ cd $GOPATH/src/github.com/paypal/gorealis/examples
|
2016-09-29 20:45:24 -04:00
|
|
|
$ go run client.go -executor=thermos -url=http://192.168.33.7:8081 -cmd=create
|
2016-08-09 17:10:02 -07:00
|
|
|
```
|
2016-08-11 11:39:10 -07:00
|
|
|
#### Kill a Thermos job
|
2016-08-09 17:10:02 -07:00
|
|
|
```
|
2017-10-12 17:07:43 -07:00
|
|
|
$ go run $GOPATH/src/github.com/paypal/gorealis/examples/client.go -executor=thermos -url=http://192.168.33.7:8081 -cmd=kill
|
2016-08-09 17:10:02 -07:00
|
|
|
```
|
|
|
|
|
2016-08-11 11:39:10 -07:00
|
|
|
### Docker Compose executor (custom executor)
|
2016-08-25 18:56:55 -07:00
|
|
|
|
2016-08-11 12:37:20 -07:00
|
|
|
#### Creating Docker Compose executor job
|
2016-08-09 17:10:02 -07:00
|
|
|
```
|
2017-10-12 17:07:43 -07:00
|
|
|
$ go run $GOPATH/src/github.com/paypal/gorealis/examples/client.go -executor=compose -url=http://192.168.33.7:8081 -cmd=create
|
2016-08-09 17:10:02 -07:00
|
|
|
```
|
2016-08-11 12:37:20 -07:00
|
|
|
#### Kill a Docker Compose executor job
|
2016-08-09 17:10:02 -07:00
|
|
|
```
|
2017-10-12 17:07:43 -07:00
|
|
|
$ go run $GOPATH/src/github.com/paypal/gorealis/examples/client.go -executor=compose -url=http://192.168.33.7:8081 -cmd=kill
|
2016-08-09 17:10:02 -07:00
|
|
|
```
|