-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
26 lines (22 loc) · 1002 Bytes
/
docker-compose.yml
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
version: '3.0'
services:
rmvm:
image: rossamurphy/dotfilesimage:latest
container_name: rmvm
# shared memory size is needed for ray
shm_size: '10gb'
privileged: true
stdin_open: true
tty: true
# this is key to get the sweet sweet nvidia driver action
volumes:
# this persists a volume so that your vim config can go here. so even if you delete the container it still has a vim config with plugins etc.
- rmvm_volume:/root/rmvm_volume
# this makes the root file on the gcpvm available under /host in the container
- /:/root/host
command: /bin/bash
restart: 'no'
volumes:
rmvm_volume:
driver: local
# Yes, you COULD just straight up make the .config and vim stuff in the /host, and ignore the faff with volumes. but then your docker set up is just functioning as a Make file really. It's quite nice that everything is a container and everything can be torn down at the end of the day, leaving basically no trace on the host.