Submission of docker containers without an executor (aka running container as a task) is now supported
This commit is contained in:
parent
66a2868aab
commit
76b404e087
2 changed files with 24 additions and 3 deletions
|
@ -82,7 +82,7 @@ func main() {
|
|||
job = realis.NewJob().
|
||||
Environment("prod").
|
||||
Role("vagrant").
|
||||
Name("hello_world_from_gorealis_docker").
|
||||
Name("hello_world_from_gorealis").
|
||||
ExecutorName(aurora.AURORA_EXECUTOR_NAME).
|
||||
ExecutorData(string(payload)).
|
||||
CPU(1).
|
||||
|
@ -108,8 +108,20 @@ func main() {
|
|||
AddLabel("fileName", "sample-app/docker-compose.yml").
|
||||
AddURIs(true, true, "https://github.com/mesos/docker-compose-executor/releases/download/0.1.0/sample-app.tar.gz")
|
||||
break
|
||||
case "none":
|
||||
job = realis.NewJob().
|
||||
Environment("prod").
|
||||
Role("vagrant").
|
||||
Name("docker_as_task").
|
||||
CPU(1).
|
||||
RAM(64).
|
||||
Disk(100).
|
||||
IsService(true).
|
||||
InstanceCount(1).
|
||||
AddPorts(1)
|
||||
break
|
||||
default:
|
||||
fmt.Println("Only thermos and compose are supported for now")
|
||||
fmt.Println("Only thermos, compose, and none are supported for now")
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue