Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
OGS Container Maker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ogs
OGS Container Maker
Commits
763b2642
Verified
Commit
763b2642
authored
5 years ago
by
Lars Bilke
Browse files
Options
Downloads
Patches
Plain Diff
Bump base image to 19.10 for gcc 9.
parent
4696f8fa
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
README.md
+8
-0
8 additions, 0 deletions
README.md
ogscm/build_jenkins_definitions.py
+4
-4
4 additions, 4 deletions
ogscm/build_jenkins_definitions.py
ogscm/cli.py
+2
-11
2 additions, 11 deletions
ogscm/cli.py
ogscm/cli_args.py
+1
-1
1 addition, 1 deletion
ogscm/cli_args.py
with
15 additions
and
16 deletions
README.md
+
8
−
0
View file @
763b2642
...
...
@@ -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/*`
This diff is collapsed.
Click to expand it.
ogscm/build_jenkins_definitions.py
+
4
−
4
View file @
763b2642
...
...
@@ -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)
This diff is collapsed.
Click to expand it.
ogscm/cli.py
+
2
−
11
View file @
763b2642
...
...
@@ -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
()
...
...
This diff is collapsed.
Click to expand it.
ogscm/cli_args.py
+
1
−
1
View file @
763b2642
...
...
@@ -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.0
4
'
,
default
=
'
ubuntu:19.
1
0
'
,
help
=
'
The base image.
'
)
switches_g
.
add_argument
(
'
--compiler
'
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment