Skip to content

Commit

Permalink
noninteractive and sudo fix (#688)
Browse files Browse the repository at this point in the history
* noninteractive fix

* noninteractive fix
  • Loading branch information
SubhadityaMukherjee authored Feb 11, 2025
1 parent 2c2a93d commit 2408de5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions amlb/runners/singularity.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def _image_exists(self, image):
def _run_container_build_command(self, image, cache):
log.info(f"Building singularity image {image}.")
run_cmd(
"sudo singularity build {options} {container} {script}".format(
"singularity build {options} {container} {script}".format(
options="" if cache else "--disable-cache",
container=image,
script=self._script,
Expand All @@ -163,7 +163,7 @@ def _generate_script(self, custom_commands):
. /bench/
%post
DEBIAN_FRONTEND=noninteractive
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get -y install apt-utils dialog locales
apt-get -y install curl wget unzip git
Expand Down Expand Up @@ -206,7 +206,6 @@ def _generate_script(self, custom_commands):
{custom_commands}
%environment
export DEBIAN_FRONTEND=noninteractive
export SPIP=python{pyv} -m pip
export SPY=python{pyv}
export PYTHONUTF8=1
Expand Down

0 comments on commit 2408de5

Please sign in to comment.