-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
70 lines (67 loc) · 1.76 KB
/
docker-compose.yml
File metadata and controls
70 lines (67 loc) · 1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
services:
# OpenMorph CLI tool
openmorph:
build:
context: .
dockerfile: Dockerfile
image: openmorph:latest
container_name: openmorph-cli
volumes:
# Mount the current directory for file processing
- .:/workspace:ro
# Mount output directory for transformed files
- ./output:/output
working_dir: /workspace
# Override entrypoint for interactive usage
entrypoint: ["/usr/local/bin/openmorph"]
# Example command - transform files in current directory (in-place)
command: ["--input", "/workspace", "--dry-run"]
# Development version with shell access
openmorph-dev:
build:
context: .
dockerfile: Dockerfile.dev
image: openmorph:dev
container_name: openmorph-dev
volumes:
- .:/workspace
- ./output:/output
working_dir: /workspace
entrypoint: ["/bin/sh"]
stdin_open: true
tty: true
# Security-focused distroless version
openmorph-distroless:
build:
context: .
dockerfile: Dockerfile.distroless
image: openmorph:distroless
container_name: openmorph-distroless
volumes:
- .:/workspace:ro
- ./output:/output
working_dir: /workspace
entrypoint: ["/usr/local/bin/openmorph"]
command: ["--input", "/workspace", "--dry-run", "--validate"]
# CI/CD runner example - single file transformation
openmorph-ci:
build:
context: .
dockerfile: Dockerfile
image: openmorph:latest
volumes:
- ./specs:/specs:ro
- ./output:/output
working_dir: /specs
command:
[
"--input",
"/specs/openapi.yaml",
"--config",
"/specs/openmorph.yaml",
"--output",
"/output/transformed-spec.yaml",
"--backup",
]
profiles:
- ci