-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d60954e
commit 4c1af7e
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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,12 @@ | ||
from os import system | ||
from argparse import ArgumentParser | ||
|
||
parser = ArgumentParser() | ||
|
||
parser.add_argument('--tag', | ||
default='nerdscomputing/hermes.cam:ci', | ||
help='The tag for the new created docker image.') | ||
|
||
args = parser.parse_args() | ||
|
||
system(f'docker build -t {args.tag} -f dockerfile.ci .') |
This file contains 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,16 @@ | ||
from os import system | ||
from argparse import ArgumentParser | ||
|
||
parser = ArgumentParser() | ||
|
||
parser.add_argument('--tag', | ||
default='nerdscomputing/hermes.cam:latest', | ||
help='The tag for the new created docker image.') | ||
|
||
parser.add_argument('--version', | ||
default='2021.0.0', | ||
help='The semantic version of the cam.') | ||
|
||
args = parser.parse_args() | ||
|
||
system(f'docker build -t {args.tag} -f dockerfile.release --build-arg VERSION={args.version} .') |