ReproNim / neurodocker

Generate custom Docker and Singularity images, and minimize existing containers
https://www.repronim.org/neurodocker/
Apache License 2.0
326 stars 97 forks source link

debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. #416

Open carolin31 opened 3 years ago

carolin31 commented 3 years ago

Hello,

I am trying to use neurodocker to make an afni container. I first did:

neurodocker generate singularity --base=ubuntu:bionic --pkg-manager=apt --install sshfs tcsh --afni method-binaries version=latest install_r_pkgs=true > afni.recipe

and then: singularity build --fakeroot afni.sif afni.recipe

I get the following screen and after I enter US and hit enter it gets stuck and does not continue with the building process:

Screen Shot 2021-07-29 at 6 04 20 PM

I googled the error and found this but I don t know how to incorporate this into the neurodocker call.

Screen Shot 2021-07-29 at 6 47 12 PM

I am grateful for any help! Thank you very much in advance! Carolin

stebo85 commented 3 years ago

Dear @carolin31,

In our neurodesk project we build afni in a centos7 container as we found this to work a bit better then a ubuntu base - maybe that could solve your problem?: https://github.com/NeuroDesk/neurocontainers/blob/master/recipes/afni/build.sh

Also, you could use our built and tested afni container if this works for you :) https://hub.docker.com/repository/docker/vnmd/afni_21.2.00

you can create a singularity container from this by running: singularity build afni_21.2.00.simg docker://vnmd/afni_21.2.00

or you could use our afni container as a base in your recipe and add more packages to it :)

I hope this helps Kind regards Steffen

afonsoguerra commented 1 year ago

I know this is ancient, but if you export the timezone to the environment at the start of %post, it won't ask when installing tzdata during container creation. You can also export the front-end as non-interactive:

e.g. %post export TZ='America/New_York' export DEBIAN_FRONTEND=noninteractive

esalome commented 1 year ago

Installing a (small) package compatible with "dialog" feature with clear the "can't find a dialog-like program" error when installing other packages in an interactive way 👍 apt install whiptail

did it for me.

github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 30 days with no activity.

stebo85 commented 1 year ago

should export DEBIAN_FRONTEND=noninteractive be added as a default for apt based images? This could prevent many user problems like this?

Remi-Gau commented 1 year ago

should export DEBIAN_FRONTEND=noninteractive be added as a default for apt based images? This could prevent many user problems like this?

I would be in favor of this

DiegoGuati00 commented 11 months ago

a mi me funciono esta linea que esta en el docker de laravel sail

ENV TZ=UTC RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

prehensilecode commented 3 months ago

a mi me funciono esta linea que esta en el docker de laravel sail

ENV TZ=UTC RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

This worked for me, as well, and allows for a non-interactive build, e.g. by submitting the build job to an HPC cluster.

N.B. installing whiptail will give a terminal-based user interface.