diff --git a/Builder/scripts/docker-builder-backend.sh b/Builder/scripts/docker-builder-backend.sh index 6507fa3..0822b7b 100755 --- a/Builder/scripts/docker-builder-backend.sh +++ b/Builder/scripts/docker-builder-backend.sh @@ -1,5 +1,7 @@ #!/bin/bash +source /home/builder/environment.sh + # Test for any arguments, such as --debug for i in "$@" do diff --git a/Builder/scripts/singularity-builder-backend.sh b/Builder/scripts/singularity-builder-backend.sh index 304f22d..a796524 100755 --- a/Builder/scripts/singularity-builder-backend.sh +++ b/Builder/scripts/singularity-builder-backend.sh @@ -1,5 +1,7 @@ #!/bin/bash +source /home/builder/environment.sh + # Test for any arguments, such as --debug for i in "$@" do diff --git a/Builder/src/main.cpp b/Builder/src/main.cpp index 790977d..f107d15 100644 --- a/Builder/src/main.cpp +++ b/Builder/src/main.cpp @@ -80,9 +80,9 @@ std::string build_command(const ClientData &client_data) { // Basic build command if (client_data.backend == BackendType::singularity) { - build_command = "/usr/bin/sudo -E /usr/local/bin/singularity-builder-backend.sh"; + build_command = "/usr/bin/sudo /usr/local/bin/singularity-builder-backend.sh"; } else if (client_data.backend == BackendType::docker) { - build_command = "/usr/bin/sudo -E /usr/local/bin/docker-builder-backend.sh"; + build_command = "/usr/bin/sudo /usr/local/bin/docker-builder-backend.sh"; } else { throw std::runtime_error("Invalid builder backend"); }