-
Notifications
You must be signed in to change notification settings - Fork 0
/
dock.yaml
41 lines (32 loc) · 817 Bytes
/
dock.yaml
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
# Copyright 2022-2024 Sean Kelleher. All rights reserved.
# Use of this source code is governed by an MIT
# licence that can be found in the LICENCE file.
schema_version: '0.1'
organisation: ezanmoto
project: dock
default_shell_env: build
environments:
cross:
workdir: /app
cache_volumes:
cargo: /cargo
env:
CARGO_HOME: /cargo
# We run the `cross` build environment as `root` instead of mounting the
# local user because the latter causes permission errors. TODO Investigate
# running the `cross` build environment as non-`root`.
mount_local:
- docker
- project_dir
build:
shell: /bin/bash
workdir: /app
cache_volumes:
cargo: /cargo
env:
CARGO_HOME: /cargo
mount_local:
- docker
- group
- project_dir
- user