Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
dft-lab
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
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
CHEM6136
dft-lab
Commits
d24716f0
Commit
d24716f0
authored
7 years ago
by
dk2u09
Browse files
Options
Downloads
Patches
Plain Diff
Configured container
parent
fec3c6e0
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
container/Dockerfile
+25
-4
25 additions, 4 deletions
container/Dockerfile
with
25 additions
and
4 deletions
container/Dockerfile
+
25
−
4
View file @
d24716f0
# --- build Quantum Espresso ---
FROM
opensuse:4
3.2
as
qe-builder
FROM
opensuse:4
2.3
as
qe-builder
RUN
zypper
-n
install
gcc-fortran make git
tar
RUN
git clone https://gitlab.com/QEF/q-e.git
WORKDIR
/q-e
RUN
./configure
-
LDFLAGS
=
-static
RUN
./configure
LDFLAGS
=
"
-static
-libgfortran -static-libgcc -Bstatic"
RUN
make all
# --- Container assembly ---
FROM
kramergroup/vnc-suse:latest
# --- Put quantum espresso in place ---
COPY
--from=qe-builder /q-e/bin/* /usr/local/bin
COPY
--from=qe-builder /q-e/bin/* /usr/local/bin/
RUN
mkdir
-p
/potentials
&&
\
cd
/potentials
&&
curl
-O
https://www.quantum-espresso.org/upf_files/Cu.pbe-dn-kjpaw_psl.0.2.UPF
&&
\
cd
/potentials
&&
curl
-O
https://www.quantum-espresso.org/upf_files/Na.pbe-spn-kjpaw_psl.0.2.UPF
&&
\
cd
/potentials
&&
curl
-O
https://www.quantum-espresso.org/upf_files/N.pbe-n-kjpaw_psl.0.1.UPF
ENV
PSEUDO_DIR=/potentials
ENV
TMP_DIR=/tmp
# --- Install tooling: gnuplot, vim ---
RUN
zypper
-n
--no-gpg-checks
install
gnuplot git
RUN
zypper
-n
--no-gpg-checks
install
gnuplot git
tar
&&
\
zypper clean
# -- Install XCrysDen ---
RUN
mkdir
-p
/opt/xcrysden
&&
cd
/opt/xcrysden
&&
\
curl
-O
http://www.xcrysden.org/download/xcrysden-1.5.60-linux_x86_64-semishared.tar.gz
&&
\
tar
xvzf xcrysden-1.5.60-linux_x86_64-semishared.tar.gz
&&
\
rm
-rf
*
.tar.gz
# -- Install sublime ---
RUN
rpm
-v
--import
https://download.sublimetext.com/sublimehq-rpm-pub.gpg
&&
\
zypper addrepo
-g
-f
https://download.sublimetext.com/rpm/stable/x86_64/sublime-text.repo
&&
\
zypper
-n
install
sublime-text
&&
\
zypper clean
EXPOSE
5900
CMD
["/usr/bin/supervisord","-c","/etc/supervisord.conf"]
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