-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
32 lines (23 loc) · 1.72 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Install octopus via spack.
# Using most recent spack version with preferred version of octopus
spack-develop:
# Setting BERKELEYGW_VER to 3.0.1 as v4 is released but its compatibility with octopus is not tested and the download link is broken!
# This should be removed when the link is fixed and the compatibility with berkeleygw version 4 is tested (octopus issue 1003)
# as the versions for octopus stable should be infered by spack from the package.py file and not here.
docker build -f Dockerfile --build-arg SPACK_VERSION=develop --build-arg BERKELEYGW_VER="@3.0.1" -t octopus-spack .
# Using most recent spack version with most recent version of octopus
spack-develop-octopus-develop:
docker build -f Dockerfile --build-arg SPACK_VERSION=develop --build-arg OCT_VERSION=develop --build-arg BERKELEYGW_VER="@3.0.1" -t octopus-spack .
# use particular versions of spack (these are not in the CI as older version of
# spack may not work with the most recent octopus/package.py file)
spack-latest:
docker build -f Dockerfile --build-arg SPACK_VERSION=releases/latest -t octopus-spack .
spack-latest-octopus-develop:
docker build -f Dockerfile --build-arg SPACK_VERSION=releases/latest --build-arg OCT_VERSION=develop --build-arg BERKELEYGW_VER="@3.0.1" -t octopus-spack .
run-spack:
docker run --rm -ti -v $PWD:/io octopus-spack
.PHONY: spack-develop spack-develop-octopus-develop spack-latest spack-latest-octopus-develop spack-latest run-spack
diff:
@echo "Compare (diff) spack/package.py with current package.py from spack develop"
wget --output-document=spack/package-upstream.py https://raw.githubusercontent.com/spack/spack/develop/var/spack/repos/builtin/packages/octopus/package.py
diff spack/package-upstream.py spack/package.py