-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reduce size by bringing all spack commands into a single script that …
…deletes everything but the view after successfully building
- Loading branch information
Showing
6 changed files
with
48 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,6 @@ packages=( | |
# fetchers | ||
ca-certificates | ||
curl | ||
git | ||
wget | ||
# interactive tools | ||
valgrind | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,6 @@ FROM ubuntu:20.04@sha256:33a5cc25d22c45900796a1aca487ad7a7cb09f09ea00b779e3b2026 | |
|
||
LABEL maintainer="Chris White <[email protected]>,@vsoch" | ||
|
||
ARG uptodate_github_commit_spack__spack__develop=e381e166ec27bb56c2d3bc856e7020224a005d1d | ||
ENV spack_commit=${uptodate_github_commit_spack__spack__develop} | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
ENV TZ=America/Los_Angeles | ||
|
||
|
@@ -14,12 +12,12 @@ ENV PATH=/opt/view/bin:/opt/spack/bin:$PATH \ | |
CMAKE_PREFIX_PATH=/opt/view \ | ||
ACLOCAL_PATH=/opt/view/share/aclocal | ||
|
||
# Install repository scripts dir to /opt/scripts | ||
RUN apt-get -qq update && apt-get -qq install -y --no-install-recommends git | ||
# TODO: REMOVE THE BRANCH BEFORE MERGING | ||
RUN GIT_SSL_NO_VERIFY=1 git clone -b task/white238/reduce_size https://github.com/rse-ops/docker-images.git && cp -R docker-images/scripts /opt/scripts && rm -rf docker-images | ||
|
||
# Install base packages | ||
WORKDIR /opt | ||
COPY ./scripts /opt/scripts | ||
# Install spack | ||
RUN ./scripts/ubuntu/apt-install-defaults-plus-args.sh && \ | ||
./scripts/install-cmake-binary.sh && \ | ||
./scripts/set-up-spack.sh | ||
# Tell spack to use this one without arguments | ||
# NOTE: this has to be here, setting it earlier will kill spack | ||
ENV SPACK_ENV=/opt/env | ||
./scripts/install-cmake-binary.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters