-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.rt.yml
More file actions
104 lines (100 loc) Β· 2.58 KB
/
Copy pathdocker-compose.rt.yml
File metadata and controls
104 lines (100 loc) Β· 2.58 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# Docker Compose file for RT Container Runtime
services:
# RT Container Runtime - Full Privileged Mode
rt-runtime:
build:
context: .
dockerfile: Dockerfile.rt
container_name: rt-container-runtime
hostname: rt-kompleks
privileged: true # Required for full container runtime capabilities
volumes:
# Mount source code for development
- .:/workspace:rw
# Persistent storage for containers
- rt:/tmp/containers
# Access to host's cgroup (for resource management)
- /sys/fs/cgroup:/sys/fs/cgroup:rw
networks:
- rt-network
environment:
- VERBOSE_MODE=false
- DEBUG_MODE=false
- MONITORING_ENABLED=false
- ROOTLESS_MODE=false
working_dir: /workspace
stdin_open: true
tty: true
command: /bin/bash
# RT Container Runtime - Rootless Mode
rt-rootless:
build:
context: .
dockerfile: Dockerfile.rt
container_name: rt-rootless
hostname: rt-rootless
# No privileged mode - for rootless demonstration
user: rtuser
volumes:
- .:/workspace:rw
- rt-rootless:/home/rtuser/.local/share/rt
networks:
- rt-network
environment:
- VERBOSE_MODE=true
- DEBUG_MODE=false
- MONITORING_ENABLED=false
- ROOTLESS_MODE=true
working_dir: /workspace
stdin_open: true
tty: true
command: /bin/bash
# Demo Environment - untuk testing RT containers
rt-demo:
build:
context: .
dockerfile: Dockerfile.rt
container_name: rt-demo
hostname: rt-demo
privileged: true
volumes:
- .:/workspace:rw
- rt-demo:/tmp/containers
networks:
- rt-network
environment:
- VERBOSE_MODE=true
- DEBUG_MODE=true
- MONITORING_ENABLED=true
working_dir: /workspace
stdin_open: true
tty: true
command: >
bash -c "
echo 'ποΈ RT Demo Environment Started';
echo '================================';
echo '';
echo 'π Running system validation...';
./rt.sh validate-system;
echo '';
echo 'π Creating demo container...';
./rt.sh create demo-webapp --ram=256 --cpu=30;
echo '';
echo 'π Listing containers...';
./rt.sh list;
echo '';
echo 'π‘ Demo completed! You can now interact with RT runtime.';
echo 'Try: ./rt.sh run demo-webapp';
exec /bin/bash
"
networks:
rt-network:
driver: bridge
name: rt-kompleks-network
volumes:
rt:
name: rt-data
rt-rootless:
name: rt-rootless-data
rt-demo:
name: rt-demo-data