-
Notifications
You must be signed in to change notification settings - Fork 117
[doc] Document the container platforms feature #985
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
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
1958414
add doc for the container platform
rsarm 970cf8d
Enhance tutorial documentation about container support
d7893b4
Document container_platforms configuration option
c43d512
Merge branch 'master' into containers/doc
4b04af4
Finalize container documentation.
2dcaa16
Merge branch 'containers/doc' of github.com:rsarm/reframe into contai…
f72e094
Merge branch 'master' into containers/doc
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| import reframe as rfm | ||
| import reframe.utility.sanity as sn | ||
|
|
||
|
|
||
| @rfm.required_version('>=2.20-dev2') | ||
| @rfm.simple_test | ||
| class Example10Test(rfm.RunOnlyRegressionTest): | ||
| def __init__(self, **kwargs): | ||
| super().__init__() | ||
| self.descr = 'Run commands inside a container' | ||
| self.valid_systems = ['daint:gpu'] | ||
| self.valid_prog_environs = ['PrgEnv-cray'] | ||
| self.container_platform = 'Singularity' | ||
| self.container_platform.image = 'docker://ubuntu:18.04' | ||
| self.container_platform.commands = [ | ||
| 'pwd', 'ls', 'cat /etc/os-release' | ||
| ] | ||
| self.container_platform.workdir = '/workdir' | ||
| self.sanity_patterns = sn.all([ | ||
| sn.assert_found(r'^' + self.container_platform.workdir, | ||
| self.stdout), | ||
| sn.assert_found(r'^advanced_example1.c', self.stdout), | ||
| sn.assert_found(r'18.04.\d+ LTS \(Bionic Beaver\)', self.stdout), | ||
| ]) | ||
| self.maintainers = ['put-your-name-here'] | ||
| self.tags = {'tutorial'} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.