-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No bootstrap_history created when bootstrapping from local image #935
Comments
Confirmed. This has been reported by @vsoch a long time ago, pre-SingularityCE fork at: The code is intentionally written (per the comment) to only trigger on a build that is explicitly an update. However, it should always occur, per the docs. singularity/internal/pkg/build/metadata.go Line 174 in a230b40
We should be able to correct this easily. |
In Singularity 2.x the bootstrap_history directory was always populated with any existing definition file, when an existing image was used as the source for a build. It appears that in 3.x this was gated behind a conditional, limiting it to builds that are explicitly `--update` only. This does not reflect the documentation or 2.x, so remove this conditional. Fixes sylabs#935
In Singularity 2.x the bootstrap_history directory was always populated with any existing definition file, when an existing image was used as the source for a build. It appears that in 3.x this was gated behind a conditional, limiting it to builds that are explicitly `--update` only. This does not reflect the documentation or 2.x, so remove this conditional. Fixes sylabs#935
In Singularity 2.x the bootstrap_history directory was always populated with any existing definition file, when an existing image was used as the source for a build. It appears that in 3.x this was gated behind a conditional, limiting it to builds that are explicitly `--update` only. This does not reflect the documentation or 2.x, so remove this conditional. Fixes sylabs#935
yay! |
Awesome, thanks for the speedy response! |
In Singularity 2.x the bootstrap_history directory was always populated with any existing definition file, when an existing image was used as the source for a build. It appears that in 3.x this was gated behind a conditional, limiting it to builds that are explicitly `--update` only. This does not reflect the documentation or 2.x, so remove this conditional. Fixes sylabs#935
In Singularity 2.x the bootstrap_history directory was always populated with any existing definition file, when an existing image was used as the source for a build. It appears that in 3.x this was gated behind a conditional, limiting it to builds that are explicitly `--update` only. This does not reflect the documentation or 2.x, so remove this conditional. Fixes sylabs#935
Thank you! |
In Singularity 2.x the bootstrap_history directory was always populated with any existing definition file, when an existing image was used as the source for a build. It appears that in 3.x this was gated behind a conditional, limiting it to builds that are explicitly `--update` only. This does not reflect the documentation or 2.x, so remove this conditional. Fixes sylabs/singularity#935 Signed-off-by: Edita Kizinevic <edita.kizinevic@cern.ch>
In Singularity 2.x the bootstrap_history directory was always populated with any existing definition file, when an existing image was used as the source for a build. It appears that in 3.x this was gated behind a conditional, limiting it to builds that are explicitly `--update` only. This does not reflect the documentation or 2.x, so remove this conditional. Fixes sylabs/singularity#935 Signed-off-by: Edita Kizinevic <edita.kizinevic@cern.ch>
In Singularity 2.x the bootstrap_history directory was always populated with any existing definition file, when an existing image was used as the source for a build. It appears that in 3.x this was gated behind a conditional, limiting it to builds that are explicitly `--update` only. This does not reflect the documentation or 2.x, so remove this conditional. Fixes sylabs/singularity#935 Signed-off-by: Edita Kizinevic <edita.kizinevic@cern.ch>
Version of Singularity
singularity-ce version 3.9.1+6-g38b50cbc5-bionic
Describe the bug
Previous container definition files are not copied to
/.singularity.d/bootstrap_history
when using a localimage bootstrapTo Reproduce
Building a no-op container on top of a local image shows that there is no
/.singularity.d/bootstrap_history
in the built container.Running:
I get:
/usr/bin/ls: cannot access '/.singularity.d/bootstrap_history': No such file or directory
Expected behavior
IIUC, the recipe of the bootstrapped container
jammy.sif
should be in/.singularity.d/bootstrap_history
according to https://docs.sylabs.io/guides/3.9/user-guide/appendix.html#id11OS / Linux Distribution
NAME="Ubuntu"
VERSION="18.04.5 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.5 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic
Installation Method
Installed through apt:
singularity-ce/now 3.9.1+6-g38b50cbc5-bionic amd64 [installed,local]
The text was updated successfully, but these errors were encountered: