8000 fix(api): create worker model flag (#3922) · ovh/cds@36e87fb · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit 36e87fb

Browse files
yesnaultbnjjj
authored andcommitted
fix(api): create worker model flag (#3922)
Signed-off-by: Yvonnick Esnault <yvonnick.esnault@corp.ovh.com>
1 parent c6f72e4 commit 36e87fb

25 files changed

+262
-84
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -266,12 +266,12 @@ A [hatchery](https://ovh.github.io/cds/hatchery/) is like an incubator, it gives
266266

267267
Several types of hatchery are available:
268268

269-
- **[hatchery kubernetes](https://ovh.github.io/cds/hatchery/kubernetes/)** (start workers in pods)
270-
- **[hatchery openstack](https://ovh.github.io/cds/hatchery/openstack/)** (start virtual machines)
271-
- **[hatchery swarm](https://ovh.github.io/cds/hatchery/swarm/)** (start docker containers)
272-
- **[hatchery marathon](https://ovh.github.io/cds/hatchery/marathon/)** (starts docker containers)
273-
- **[hatchery VSphere](https://ovh.github.io/cds/hatchery/vsphere/)** (start virtual machines)
274-
- **[hatchery local](https://ovh.github.io/cds/hatchery/local/)** ( starts processes on a host).
269+
- **[hatchery kubernetes](https://ovh.github.io/cds/hatchery/kubernetes/)** starts workers in pods
270+
- **[hatchery openstack](https://ovh.github.io/cds/hatchery/openstack/)** starts virtual machines
271+
- **[hatchery swarm](https://ovh.github.io/cds/hatchery/swarm/)** starts docker containers
272+
- **[hatchery marathon](https://ovh.github.io/cds/hatchery/marathon/)** starts docker containers
273+
- **[hatchery VSphere](https://ovh.github.io/cds/hatchery/vsphere/)** starts virtual machines
274+
- **[hatchery local](https://ovh.github.io/cds/hatchery/local/)** starts processes on a host
275275

276276
So yes, buzzwords or not, a multi-cloud Auto-scale OnDemand is a reality with CDS :-)
277277

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
version: v1.0
2+
name: [[.name]]
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
name: [[.name]]-dev
2+
values:
3+
url:
4+
type: string
5+
value: http://dev.[[.name]]
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
version: v1.0
2+
name: build-[[.id]]
3+
stages:
4+
- build
5+
- package
6+
jobs:
7+
- job: build
8+
stage: build
9+
steps:
10+
- script:
11+
- echo "Building my application"
12+
- job: package
13+
stage: package
14+
steps:
15+
- script:
16+
- echo "Packaging my application"
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
name: [[.name]]-preprod
2+
values:
3+
url:
4+
type: string
5+
value: http://preprod.[[.name]]
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: v1.0
2+
name: deploy-[[.id]]
3+
stages:
4+
- deploy
5+
jobs:
6+
- job: deploy
7+
stage: deploy
8+
steps:
9+
- script:
10+
- echo "Deploying my application at {{.cds.env.url}}"
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
name: [[.name]]-prod
2+
values:
3+
url:
4+
type: string
5+
value: http://prod.[[.name]]
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: v1.0
2+
name: it-[[.id]]
3+
stages:
4+
- it
5+
jobs:
6+
- job: it
7+
stage: it
8+
steps:
9+
- script:
10+
- echo "Testing my application at {{.cds.env.url}}"
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Description
2+
3+
*This is a demo tempate*
4+
5+
The template will generates a Hello World workflow with usual steps:
6+
- build and package
7+
- deploy on development environment
8+
- it test
9+
- deploy on pre-production and production environments
10+
11+
It's the same as demo-workflow-skeleton workflow template, but does not contain dependency with a Git Repository Manager. So that, it's pretty
12+
useful to discover CDS Workflow with the [Ready To Run](https://ovh.github.io/cds/hosting/ready-to-run/docker-compose/) without having a Git
13+
repository manager attached.
14+
15+
# How to import it on your CDS Instance
16+
17+
This template is linked to group: `shared.infra`
18+
19+
If you want to import it, you have to be CDS Administrator on your CDS Instance.
20+
21+
``` bash
22+
# import from github
23+
cdsctl template push https://raw.githubusercontent.com/ovh/cds/master/contrib/workflow-templates/demo-workflow-hello-world/demo-workflow-hello-world.yml
24+
```
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
slug: demo-workflow-hello-world
2+
name: Demo workflow hello world
3+
group: shared.infra
4+
description: A template that generates a Hello World Workflow. It's the same as demo-workflow-skeleton, but does not contain dependency with a Git Repository Manager.
5+
workflow: workflow.yml
6+
pipelines:
7+
- 1.pipeline.yml
8+
- 2.pipeline.yml
9+
- 3.pipeline.yml
10+
applications:
11+
- 1.application.yml
12+
environments:
13+
- 1.environment.yml
14+
- 2.environment.yml
15+
- 3.environment.yml

0 commit comments

Comments
 (0)
0