-
-
Notifications
You must be signed in to change notification settings - Fork 26
77 lines (60 loc) · 1.88 KB
/
docker.yml
File metadata and controls
77 lines (60 loc) · 1.88 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
71
72
73
74
75
76
77
name: Docker Compatibility
# Manual-only until Docker bridge is fully implemented
on:
workflow_dispatch:
jobs:
docker-bridge:
name: Docker Bridge Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Install Docker
run: |
sudo apt-get update
sudo apt-get install -y docker.io
sudo systemctl start docker
- name: Build Run CLI
run: cargo build --features v2 --release
- name: Test Docker availability
run: |
cargo run --features v2 -- info
- name: Start Docker service via Run
run: |
cargo run --features v2 -- dev --bridge postgres
- name: Test hybrid Run + Docker
run: |
cargo test --features v2 --test docker_bridge
compose-migration:
name: Docker Compose Migration
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Install Docker Compose
run: |
sudo apt-get update
sudo apt-get install -y docker-compose
- name: Build Run CLI
run: cargo build --features v2 --release
- name: Create sample docker-compose.yml
run: |
cat > docker-compose.yml << 'EOF'
version: '3'
services:
db:
image: postgres:15
environment:
POSTGRES_PASSWORD: secret
app:
build: .
depends_on:
- db
EOF
- name: Migrate compose to run.toml
run: |
cargo run --features v2 -- compose migrate docker-compose.yml run.toml
- name: Verify migration
run: |
cat run.toml
cargo run --features v2 -- info