Skip to content
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

Copy files (instead of git clone) on container build #55

Merged
merged 1 commit into from
Aug 12, 2024

Conversation

mslw
Copy link
Collaborator

@mslw mslw commented Jul 2, 2024

This recipe would generate the container image from local files, without having to go through github first.

The downside is that now the build process is sensitive to the working directory when running singularity build - it needs to be the repositository base dir.

This potentially removes the informal role of the GitHub main branch as the "rolling release" of sources for the image. Instead, building files locally becomes easier.

This should close #54

TODO:

  • verify that full workflow works (I only tested whether --help can be called)
  • verify that everything still builds and tests correctly in the CI environment

This recipe would generate the container image from local files,
without having to go through github first.

The downside is that now the build process is sensitive to the working
directory when running singularity build - it needs to be the
repositository base dir.

This potentially removes the informal role of the GitHub main branch
as the "rolling release" of sources for the image. Instead, building
files locally becomes easier.
@mslw
Copy link
Collaborator Author

mslw commented Aug 12, 2024

Images built from the branch work for me locally. The appveyor CI job seems to work correctly, too (singularity build is called from the base dir, so no changes needed).

Given lack of opposition, I will merge this (if anything, there is only one commit to revert).

@mslw mslw merged commit 050d6f1 into psychoinformatics-de:main Aug 12, 2024
3 checks passed
ste-phi pushed a commit to Aswendt-Lab/inm-icf-utilities that referenced this pull request Sep 10, 2024
Copy files (instead of git clone) on container build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Why does the Singularity definition use git clone instead of copying the files from local repo?
1 participant