Skip to content

Commit 09cc36f

Browse files
committed
add examples to kompose step
1 parent e75be21 commit 09cc36f

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

stable/kompose/example/codefresh.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
version: '1.0'
2+
3+
steps:
4+
5+
dry_run:
6+
image: codefresh/plugin-kompose:v1.5.0
7+
environment:
8+
- NAMESPACE=kompose-test
9+
- FILE=stable/kompose/example/docker-compose.yaml
10+
- DEBUG=true
11+
- DRY_RUN=true
12+
13+
deploy_to_cluster:
14+
image: codefresh/plugin-kompose:v1.5.0
15+
environment:
16+
- NAMESPACE=kompose-test
17+
- FILE=stable/kompose/example/docker-compose.yaml
18+
- DEBUG=true
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
version: "2"
2+
3+
services:
4+
5+
redis-master:
6+
image: gcr.io/google_containers/redis:e2e
7+
ports:
8+
- "6379"
9+
10+
redis-slave:
11+
image: gcr.io/google_samples/gb-redisslave:v1
12+
ports:
13+
- "6379"
14+
environment:
15+
- GET_HOSTS_FROM=dns
16+
17+
frontend:
18+
image: gcr.io/google-samples/gb-frontend:v4
19+
ports:
20+
- "80:80"
21+
environment:
22+
- GET_HOSTS_FROM=dns
23+
labels:
24+
kompose.service.type: LoadBalancer

0 commit comments

Comments
 (0)