BioDepot / BioDepot-workflow-builder

:computer: GUI for creating bioinformatics workflows from :whale: Docker containers:
Other
64 stars 21 forks source link

W: --force-yes is deprecated, use one of the options starting with --allow instead. #20

Closed rgschmitz1 closed 4 years ago

rgschmitz1 commented 4 years ago

It looks like a couple of the Docker files include apt-get --force-yes. https://github.com/BioDepot/BioDepot-workflow-builder/blob/995d8c61696bd8e1f35716f6b0b730c2ebed8847/Dockerfile#L9 https://github.com/BioDepot/BioDepot-workflow-builder/blob/995d8c61696bd8e1f35716f6b0b730c2ebed8847/Dockerfile-widgets#L9

This should maybe be replaced with one or more of the --allow flags according to the apt-get man page. We can use --allow-downgrades --allow-remove-essential --allow-change-held-packages instead.

lhhunghimself commented 4 years ago

Hmm. OK good catch.

The reason it is there is because in older Ubuntu/Debians it worked to ensure that the Dockerfile could be used for an unattended build (probably to avoid the annoying ask the user for the timezone prompt). It also might be a holdover from a cut and paste since we already have ENV DEBIAN_FRONTEND="noninteractive" in the Dockerfile

Did you try replacing the old flag with the new ones to see if it built properly?

Hong

rgschmitz1 commented 4 years ago

Did you try replacing the old flag with the new ones to see if it built properly?

I'm testing out now, I'll report back shortly.

rgschmitz1 commented 4 years ago

Looks like replacing --force-yes with --allow-downgrades --allow-remove-essential --allow-change-held-packages appears to work. This seems pretty benign, I just thought I'd point it out since I happened to notice it.