Skip to content

Commit

Permalink
[chaos] Create python scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
radubuciuceanu committed Jun 11, 2021
1 parent d60954e commit 4c1af7e
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
12 changes: 12 additions & 0 deletions scripts/docker.build.ci.py
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 .')
16 changes: 16 additions & 0 deletions scripts/docker.build.release.py
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} .')

0 comments on commit 4c1af7e

Please sign in to comment.