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

Upgrade to BMI 2.0 #339

Closed
wants to merge 7 commits into from
Closed

Upgrade to BMI 2.0 #339

wants to merge 7 commits into from

Conversation

sverhoeven
Copy link
Member

@sverhoeven sverhoeven commented Mar 7, 2023

TODO

Was getting
```
RuntimeError: The Poetry configuration is invalid:
            - [extras.pipfile_deprecated_finder.2] 'pip-shims<=0.3.4' does not match '^[a-zA-Z-_.0-9]+$'

```
@sverhoeven sverhoeven marked this pull request as ready for review March 7, 2023 14:17
@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 7, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

92.1% 92.1% Coverage
2.2% 2.2% Duplication

Copy link
Collaborator

@Peter9192 Peter9192 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice to have the containers centralized. Haven't tested yet, but the code changes look good.

Comment on lines +27 to +34
def start_container(
work_dir: Union[str, Path],
image_engine: ImageForContainerEngines,
input_dirs: Optional[Iterable[str]] = None,
image_port=55555,
timeout=None,
delay=0,
) -> Bmi:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Having this isolated from the models is great!
Would it be possible to separate the image selection from the actual starting of container? I'd like to be able to start a container by simply passing in an image (assuming that I know which container engine I'm using)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added start_apptainer_container() and start_docker_container()

@Peter9192
Copy link
Collaborator

Also could you add a changelog entry?

@Peter9192 Peter9192 mentioned this pull request Mar 10, 2023
@Peter9192
Copy link
Collaborator

Note that I've made #340 which solves merge conflicts between this branch and #324

@Peter9192 Peter9192 mentioned this pull request Mar 10, 2023
@Peter9192
Copy link
Collaborator

Merged as part of #340

@Peter9192 Peter9192 closed this Mar 22, 2023
@BSchilperoort BSchilperoort deleted the bmi2 branch August 29, 2024 09:06
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.

2 participants