Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
spack
spack-tutorial-container
Commits
4e4d8c26
Commit
4e4d8c26
authored
Jan 28, 2020
by
Scott Wittenburg
Committed by
Todd Gamblin
Mar 09, 2020
Browse files
Replace broken/missing pkgs, fix typos
parent
952c43f3
Changes
2
Hide whitespace changes
Inline
Side-by-side
docker/Dockerfile
View file @
4e4d8c26
...
...
@@ -6,20 +6,19 @@ ARG AWS_ACCESS_KEY_ID="None"
ARG
AWS_SECRET_ACCESS_KEY="None"
RUN
apt-get update
-y
&&
\
apt-get upgrade
-y
&&
\
apt-get
install
-y
--no-install-recommends
\
autoconf
DEBIAN_FRONTEND
=
noninteractive apt-get
install
-y
--no-install-recommends
\
autoconf
\
ca-certificates
\
curl
\
clang
\
clang-3.7
\
emacs
\
g++
\
g++-4.
7
\
g++-4.
8
\
gcc
\
gcc-4.
7
\
gcc-4.
8
\
gfortran
\
gfortran-4.
7
\
gfortran-4.
8
\
git
\
gnupg2
\
iproute2
\
...
...
@@ -34,25 +33,26 @@ RUN apt-get update -y && \
python3
-m
pip
install
--upgrade
pip setuptools wheel
&&
\
python3
-m
pip
install
--upgrade
gnureadline
&&
\
python3
-m
pip
install
--upgrade
awscli
&&
\
update-alternatives
--install
/usr/bin/python python /usr/bin/python3 1
&&
\
apt-get autoremove
--purge
&&
\
apt-get clean && \
ln -s /usr/bin/gpg /usr/bin/gpg2
apt-get clean
RUN
mkdir
-p
/mirror/build_cache
&&
\
aws s3
sync
${
REMOTE_BUILDCACHE_URL
}
/mirror/build_cache
COPY
/public.key /mirror/public.key
COPY
/packages.yaml /etc/spack/packages.yaml
#
COPY /packages.yaml /etc/spack/packages.yaml
COPY
/tutorial-test.sh /tutorial/.test/tutorial-test.sh
### TODO: Find another way to set perms without increasing the image download size
RUN
useradd
-ms
/bin/bash spack
&&
\
chmod
-R
go+r /mirror
&&
\
chmod
-R
go+r /etc/spack
&&
\
#
chmod -R go+r /etc/spack &&
\
chmod
go+rx /tutorial/.test/tutorial-test.sh
USER
spack
WORKDIR
/home/spack
CMD
["bash"]
CMD
["bash"]i
docker/tutorial-test.sh
View file @
4e4d8c26
...
...
@@ -28,7 +28,7 @@ spack mirror add tutorial /mirror
spack gpg trust /mirror/public.key
spack
install
zlib %clang
spack
install
zlib @1.2.8
spack
install
zlib %gcc@4.
7
spack
install
zlib %gcc@4.
8
spack
install
zlib @1.2.8
cppflags
=
-O3
spack find
spack find
-lf
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment