Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
opensuse
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sebastian Achilles
opensuse
Commits
81e5f61f
Commit
81e5f61f
authored
4 years ago
by
Sebastian Achilles
Browse files
Options
Downloads
Patches
Plain Diff
Update Dockerfile: Update gcc, g++ & gfortan to verison 9 and update to OpenMPI 4
parent
c5646091
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+4
-14
4 additions, 14 deletions
Dockerfile
with
4 additions
and
14 deletions
Dockerfile
+
4
−
14
View file @
81e5f61f
FROM
opensuse/leap:latest
RUN
zypper
install
-y
git
\
RUN
zypper ar
-f
-n
OSS http://download.opensuse.org/distribution/leap/15.2/repo/oss/ OSS
\
&&
zypper
install
-y
git
\
&&
zypper
install
-y
unzip
\
&&
zypper
install
-y
gzip
\
&&
zypper
install
-y
-t
pattern devel_basis devel_C_C++ devel_java
\
&&
zypper
install
-y
python curl
\
&&
zypper
install
-y
boost-devel cmake cgal-devel lcov
\
&&
zypper
install
-y
gcc7-c++ gcc-fortran
\
&&
zypper ar
-f
-n
OSS http://download.opensuse.org/distribution/leap/15.2/repo/oss/ OSS
\
&&
zypper
install
-y
gcc8 gcc8-c++ gcc8-fortran
\
&&
zypper
install
-y
gcc9 gcc9-c++ gcc9-fortran
\
&&
zypper
install
-y
libqt5-qtbase-devel
\
&&
zypper
install
-y
wget
\
&&
zypper
install
-y
doxygen
\
&&
zypper
install
-y
openmpi
3
-devel
\
&&
zypper
install
-y
openmpi
4
-devel
\
&&
zypper
install
-y
openblas-devel openblas-devel-headers
\
&&
zypper
install
-y
libopenblas_pthreads0 libopenblas_pthreads-devel
\
&&
update-alternatives
--install
/usr/bin/gcc gcc /usr/bin/gcc-7 7
\
&&
update-alternatives
--install
/usr/bin/g++ g++ /usr/bin/g++-7 7
\
&&
update-alternatives
--install
/usr/bin/gfortran gfortran /usr/bin/gfortran-7 7
\
&&
update-alternatives
--install
/usr/bin/gcc gcc /usr/bin/gcc-8 8
\
&&
update-alternatives
--install
/usr/bin/g++ g++ /usr/bin/g++-8 8
\
&&
update-alternatives
--install
/usr/bin/gfortran gfortran /usr/bin/gfortran-8 8
\
&&
update-alternatives
--install
/usr/bin/gcc gcc /usr/bin/gcc-9 9
\
&&
update-alternatives
--install
/usr/bin/g++ g++ /usr/bin/g++-9 9
\
&&
update-alternatives
--install
/usr/bin/gfortran gfortran /usr/bin/gfortran-9 9
# Define the ENTRYPOINT for subsequent commands (CMD)
ENTRYPOINT
["/bin/bash", "-l", "-c"]
# SHELL defines which login shell will be used within RUN steps
...
...
@@ -35,4 +25,4 @@ SHELL ["/bin/bash", "-l", "-c"]
CMD
["bash"]
# Source MPI environment script
RUN
echo
"source /usr/lib64/mpi/gcc/openmpi
3
/bin/mpivars.sh"
>>
/etc/bash.bashrc
RUN
echo
"source /usr/lib64/mpi/gcc/openmpi
4
/bin/mpivars.sh"
>>
/etc/bash.bashrc
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