Skip to content

Commit 2408de5

Browse files
noninteractive and sudo fix (#688)
* noninteractive fix * noninteractive fix
1 parent 2c2a93d commit 2408de5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

amlb/runners/singularity.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def _image_exists(self, image):
138138
def _run_container_build_command(self, image, cache):
139139
log.info(f"Building singularity image {image}.")
140140
run_cmd(
141-
"sudo singularity build {options} {container} {script}".format(
141+
"singularity build {options} {container} {script}".format(
142142
options="" if cache else "--disable-cache",
143143
container=image,
144144
script=self._script,
@@ -163,7 +163,7 @@ def _generate_script(self, custom_commands):
163163
. /bench/
164164
%post
165165
166-
DEBIAN_FRONTEND=noninteractive
166+
export DEBIAN_FRONTEND=noninteractive
167167
apt-get update
168168
apt-get -y install apt-utils dialog locales
169169
apt-get -y install curl wget unzip git
@@ -206,7 +206,6 @@ def _generate_script(self, custom_commands):
206206
{custom_commands}
207207
208208
%environment
209-
export DEBIAN_FRONTEND=noninteractive
210209
export SPIP=python{pyv} -m pip
211210
export SPY=python{pyv}
212211
export PYTHONUTF8=1

0 commit comments

Comments
 (0)