summaryrefslogtreecommitdiffstats
path: root/src/consts.rs
diff options
context:
space:
mode:
authorMatthias Beyer <matthias.beyer@atos.net>2021-02-24 20:22:23 +0100
committerMatthias Beyer <matthias.beyer@atos.net>2021-02-24 20:23:43 +0100
commit4f55cc78b19365705c7e7b93b6919d995391e15c (patch)
tree79cba951ee86fc09fc26dd83b8fd56572289ac60 /src/consts.rs
parentcc395116613dfb8469d6a4e5ec9fce6a96772a7c (diff)
Move constants to dedicated module
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
Diffstat (limited to 'src/consts.rs')
-rw-r--r--src/consts.rs22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/consts.rs b/src/consts.rs
new file mode 100644
index 0000000..8891f81
--- /dev/null
+++ b/src/consts.rs
@@ -0,0 +1,22 @@
+//
+// Copyright (c) 2020-2021 science+computing ag and other contributors
+//
+// This program and the accompanying materials are made
+// available under the terms of the Eclipse Public License 2.0
+// which is available at https://www.eclipse.org/legal/epl-2.0/
+//
+// SPDX-License-Identifier: EPL-2.0
+//
+
+
+/// The path to the directory inside the container where the inputs for the script run are copied
+/// to.
+pub const INPUTS_DIR_PATH: &str = "/inputs";
+
+/// The path to the directory inside the container where the outputs of a compile job must be
+/// located after the script was run
+pub const OUTPUTS_DIR_PATH: &str = "/outputs";
+
+/// The path where the script that is executed inside the container is copied to.
+pub const SCRIPT_PATH: &str = "/script";
+