-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (43 loc) · 1.46 KB
/
Copy pathdocker-compose.yml
File metadata and controls
45 lines (43 loc) · 1.46 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
services:
linux-amd64:
build:
context: .
dockerfile: Dockerfile
platform: linux/amd64
container_name: ofiuco-linux-amd64
cap_add:
- NET_ADMIN
environment:
- USER=${USER}
- WORKSPACE=${PWD}
- HISTFILE=${HOME}/.cache/ofiuco-linux-amd64/.bash_history
- CACHE_DIR=${HOME}/.cache/ofiuco-linux-amd64/bazel
volumes:
- ${PWD}:${PWD}:rw
- ${HOME}/.gitconfig:/home/ubuntu/.gitconfig:ro
- ${HOME}/.netrc:/home/ubuntu/.netrc:ro
- ${HOME}/.ssh:/home/ubuntu/.ssh:ro
- ${HOME}/foss:${HOME}/foss
- ${HOME}/.cache/ofiuco-linux-amd64:${HOME}/.cache/ofiuco-linux-amd64
working_dir: ${PWD}
entrypoint: sleep infinity
post_start:
- command: echo chown -R 1000:1000 {HOME}/.cache/ofiuco-linux-amd64
user: root
linux-aarch64:
extends: linux-amd64
platform: linux/aarch64
container_name: ofiuco-linux-aarch64
environment:
- HISTFILE=${HOME}/.cache/ofiuco-linux-aarch64/.bash_history
- CACHE_DIR=${HOME}/.cache/ofiuco-linux-aarch64/bazel
volumes: !override
- ${PWD}:${PWD}:rw
- ${HOME}/.gitconfig:/home/ubuntu/.gitconfig:ro
- ${HOME}/.netrc:/home/ubuntu/.netrc:ro
- ${HOME}/.ssh:/home/ubuntu/.ssh:ro
- ${HOME}/foss:${HOME}/foss
- ${HOME}/.cache/ofiuco-linux-aarch64:${HOME}/.cache/ofiuco-linux-aarch64
post_start: !reset
- command: echo chown -R 1000:1000 ${HOME}/.cache/ofiuco-linux-aarch64
user: root