Skip to content
Snippets Groups Projects
Verified Commit 763b2642 authored by Lars Bilke's avatar Lars Bilke
Browse files

Bump base image to 19.10 for gcc 9.

parent 4696f8fa
No related branches found
No related tags found
No related merge requests found
......@@ -170,3 +170,11 @@ python ThirdParty/container-maker/ogscm/cli.py -B -C -R --ogs . --pm system --cv
- Rename the file `config/deploy_hosts_example.yml` to `config/deploy_hosts.yml`
- `host` has to be a SSH host to which you have passwordless access
- Deploy to the host with `... -D myhost`
## PyPi Publication
- Check if requirements.txt has changed, change `setup.py` accordingly
- Bump version in `version.py`
- `python setup.py sdist`
- `twine upload dist/*`
......@@ -16,7 +16,7 @@ subprocess.run(f"python ogscm/cli.py --out {args.out} --file Dockerfile.clang.fu
"--base_image ubuntu:18.04 --compiler clang --jenkins --iwyy "
"--compiler_version 9",
shell=True)
subprocess.run(f"python ogscm/cli.py --out {args.out} --file Dockerfile.clang.gui "
"--base_image ubuntu:18.04 --compiler clang --jenkins --iwyy "
"--compiler_version 9 --gui",
shell=True)
# subprocess.run(f"python ogscm/cli.py --out {args.out} --file Dockerfile.clang.gui "
# "--base_image ubuntu:18.04 --compiler clang --jenkins --iwyy "
# "--compiler_version 9 --gui",
# shell=True)
......@@ -113,6 +113,7 @@ def main(): # pragma: no cover
args.compiler_version = None # Use default
if args.compiler == 'clang':
compiler = llvm(extra_repository=True,
extra_tools=True,
version=args.compiler_version)
else:
compiler = gnu(fortran=False,
......@@ -122,18 +123,8 @@ def main(): # pragma: no cover
Stage0 += compiler
# Upgrade stdc++ lib after installing new compiler
# https://stackoverflow.com/a/46613656/80480
if args.compiler == 'gcc' and args.compiler_version != None:
if args.compiler == 'gcc' and args.compiler_version is not None:
Stage0 += packages(apt=['libstdc++6'])
if args.compiler == 'clang':
Stage0 += packages(
apt=[
"clang-tidy-{}".format(args.compiler_version),
"clang-format-{}".format(args.compiler_version)
],
yum=[
"llvm-toolset-{}-clang-tools-extra".format(
args.compiler_version)
])
# Prepare runtime stage
Stage1 = hpccm.Stage()
......
......@@ -125,7 +125,7 @@ class Cli_Args(argparse.ArgumentParser):
switches_g = self.add_argument_group('Additional options')
switches_g.add_argument('--base_image',
type=str,
default='ubuntu:19.04',
default='ubuntu:19.10',
help='The base image.')
switches_g.add_argument(
'--compiler',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment