diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2021-09-04 18:33:09 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2021-09-05 20:55:09 +0200 |
commit | 8e7328aebc665f3714cd53fb1e0870cdb8e816a2 (patch) | |
tree | 5a00a6a40d332995a00840d5f436252d1e57f099 /src/runner/runc/spec.rs | |
parent | 66602f9247a69163c9afa300d68e245fd33d8bdb (diff) | |
download | rebel-8e7328aebc665f3714cd53fb1e0870cdb8e816a2.tar rebel-8e7328aebc665f3714cd53fb1e0870cdb8e816a2.zip |
Reorganize build directory to have tasks build on persistent storage
Task build directories may be large, so it's a bad idea to use a tmpfs
unconditionally. This also prepared for overlay support (for inherited
task states).
Diffstat (limited to 'src/runner/runc/spec.rs')
-rw-r--r-- | src/runner/runc/spec.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/runner/runc/spec.rs b/src/runner/runc/spec.rs index 2b36836..9c887de 100644 --- a/src/runner/runc/spec.rs +++ b/src/runner/runc/spec.rs @@ -22,19 +22,19 @@ pub fn generate_spec(run: &str, env: &HashMap<String, String>) -> runtime::Spec run ], "env": env_entries, - "cwd": paths::abs(paths::WORK_PREFIX), + "cwd": paths::abs(paths::BUILD_PREFIX), "noNewPrivileges": true }, "root": { - "path": paths::RUNC_ROOTFS_SUBDIR, + "path": paths::TASK_TMP_ROOTFS_SUBDIR, "readonly": true }, "hostname": "rebel-builder", "mounts": [ { - "destination": paths::abs(paths::WORK_PREFIX), + "destination": paths::abs(paths::BUILD_PREFIX), "type": "none", - "source": paths::RUNC_WORK_SUBDIR, + "source": paths::TASK_TMP_BUILD_SUBDIR, "options": [ "bind" ] @@ -42,7 +42,7 @@ pub fn generate_spec(run: &str, env: &HashMap<String, String>) -> runtime::Spec { "destination": paths::abs(paths::SYSROOT_PREFIX), "type": "none", - "source": paths::join(&[paths::RUNC_DEPENDS_SUBDIR, paths::SYSROOT_PREFIX]), + "source": paths::join(&[paths::TASK_TMP_DEPENDS_SUBDIR, paths::SYSROOT_PREFIX]), "options": [ "bind", "ro" |