diff options
author | Matthias Beyer <matthias.beyer@atos.net> | 2021-04-12 18:43:04 +0200 |
---|---|---|
committer | Matthias Beyer <matthias.beyer@atos.net> | 2021-04-12 19:34:36 +0200 |
commit | 3537f8e1d174f2ce422c9024a9e0d6df87ad9207 (patch) | |
tree | c400711ba25cbf376c09795c0d503ef82fc7f9b4 /src/consts.rs | |
parent | b167c4a13f467ea271351b51b2d331f4fb96f95d (diff) |
Filter out the /outputs/ directory
The issue here is that we copy all build results (packages) in the container to
/outputs and then butido uses that directory to fetch the outputs of the build.
But, because how the docker API works, we get a TAR stream from docker that
_contains_ the /outputs directory. But of course, we don't want that.
Until now, that was no issue. But it has become one now that we start adopting
butido for our real-world scenarios.
This patch adds filtering out that /outputs portion of the pathes from the tar
archive when writing all the things to disc.
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
Tested-by: Matthias Beyer <matthias.beyer@atos.net>
Diffstat (limited to 'src/consts.rs')
-rw-r--r-- | src/consts.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/consts.rs b/src/consts.rs index 8891f81..5c6dbc4 100644 --- a/src/consts.rs +++ b/src/consts.rs @@ -16,6 +16,7 @@ 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"; +pub const OUTPUTS_DIR_NAME: &str = "outputs"; /// The path where the script that is executed inside the container is copied to. pub const SCRIPT_PATH: &str = "/script"; |