-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- previous commits included bumping to py39. - going back to py3.7.3 as bumping created segfault in mpi version - added info on build readme
- Loading branch information
Showing
27 changed files
with
152 additions
and
308 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
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 was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
docker/stempy/Dockerfile.base → docker/stempy-conda-jammy/Dockerfile.base
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
15 changes: 8 additions & 7 deletions
15
docker/stempy/Dockerfile.stempy → docker/stempy-conda-jammy/Dockerfile.stempy
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 |
---|---|---|
@@ -1,24 +1,25 @@ | ||
FROM samwelborn/stempy-base:latest AS stempy | ||
FROM openchemistry/stempy-base:latest-conda-jammy AS stempy | ||
|
||
ENV PATH=/opt/miniconda3/bin:$PATH | ||
WORKDIR /source | ||
ARG PYTHON_VERSION=3.8 | ||
ARG PYTHON_VERSION=3.9 | ||
COPY ./conda/** ./ | ||
WORKDIR /source | ||
|
||
# Build stempy and add mpi4py and h5py to conda env | ||
# Build stempy | ||
RUN mamba env update -n base -f /source/environment_before.yml && \ | ||
cd /source && \ | ||
git clone --recursive -b update-dockerfile-staging https://github.com/swelborn/stempy.git && \ | ||
git clone --recursive https://github.com/OpenChemistry/stempy.git && \ | ||
mkdir -p /build/stempy && \ | ||
cd /build/stempy && \ | ||
cmake -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo \ | ||
cmake -DCMAKE_BUILD_TYPE:STRING=Release \ | ||
-Dstempy_ENABLE_VTKm:BOOL=OFF \ | ||
-Dstempy_ENABLE_MPI:BOOL=OFF \ | ||
/source/stempy . && \ | ||
make -j 16 && \ | ||
cp -r -L /build/stempy/lib/stempy \ | ||
/opt/miniconda3/lib/python${PYTHON_VERSION}/site-packages && \ | ||
rm -rf /source/stempy && \ | ||
conda env update -n base -f /source/environment_after.yml --prune | ||
mamba env update -n base -f /source/environment_after.yml && \ | ||
conda clean -a -y -q | ||
|
||
RUN /sbin/ldconfig |
15 changes: 8 additions & 7 deletions
15
docker/stempy/Dockerfile.stempy-ipykernel → ...y-conda-jammy/Dockerfile.stempy-ipykernel
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 |
---|---|---|
@@ -1,24 +1,25 @@ | ||
FROM samwelborn/stempy-base:latest AS stempy | ||
FROM openchemistry/stempy-base:latest-conda-jammy AS stempy | ||
|
||
ENV PATH=/opt/miniconda3/bin:$PATH | ||
WORKDIR /source | ||
ARG PYTHON_VERSION=3.8 | ||
ARG PYTHON_VERSION=3.9 | ||
COPY ./conda/** ./ | ||
WORKDIR /source | ||
|
||
# Build stempy and add mpi4py and h5py to conda env | ||
# Build stempy | ||
RUN mamba env update -n base -f /source/environment_before.yml && \ | ||
cd /source && \ | ||
git clone --recursive -b update-dockerfile-staging https://github.com/swelborn/stempy.git && \ | ||
git clone --recursive https://github.com/OpenChemistry/stempy.git && \ | ||
mkdir -p /build/stempy && \ | ||
cd /build/stempy && \ | ||
cmake -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo \ | ||
cmake -DCMAKE_BUILD_TYPE:STRING=Release \ | ||
-Dstempy_ENABLE_VTKm:BOOL=OFF \ | ||
-Dstempy_ENABLE_MPI:BOOL=OFF \ | ||
/source/stempy . && \ | ||
make -j 16 && \ | ||
cp -r -L /build/stempy/lib/stempy \ | ||
/opt/miniconda3/lib/python${PYTHON_VERSION}/site-packages && \ | ||
rm -rf /source/stempy && \ | ||
conda env update -n base -f /source/environment_ipykernel.yml --prune | ||
mamba env update -n base -f /source/environment_ipykernel.yml && \ | ||
conda clean -a -y -q | ||
|
||
RUN /sbin/ldconfig |
1 change: 1 addition & 0 deletions
1
docker/stempy/conda/environment_after.yml → ...y-conda-jammy/conda/environment_after.yml
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
channels: | ||
- conda-forge | ||
dependencies: | ||
- python=3.9 | ||
- pip | ||
- numpy=1.23 | ||
- deprecation | ||
|
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 |
---|---|---|
|
@@ -3,5 +3,6 @@ channels: | |
dependencies: | ||
- python=3.9 | ||
- pip | ||
- numpy=1.23 | ||
- pip: | ||
- cmake |
4 changes: 2 additions & 2 deletions
4
...er/stempy/conda/environment_ipykernel.yml → ...nda-jammy/conda/environment_ipykernel.yml
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 |
---|---|---|
@@ -1,14 +1,14 @@ | ||
channels: | ||
- conda-forge | ||
dependencies: | ||
- python=3.8 | ||
- python=3.9 | ||
- pip | ||
- numpy=1.23 | ||
- deprecation | ||
- h5py=3.6 | ||
- click | ||
- imageio | ||
- ncempy | ||
- h5py=3.6 | ||
- ipykernel=6.4.2 | ||
- ipympl=0.8.6 | ||
- matplotlib=3.4.3 |
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
17 changes: 9 additions & 8 deletions
17
...py-mpi-mpich4-apt-jammy/Dockerfile.stempy → .../stempy-mpi-conda-jammy/Dockerfile.stempy
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 |
---|---|---|
@@ -1,26 +1,27 @@ | ||
FROM samwelborn/stempy-mpi-mpich4-apt-jammy-base:latest AS stempy | ||
FROM openchemistry/stempy-mpi-base:latest-conda-jammy AS stempy | ||
|
||
WORKDIR /source | ||
ARG PYTHON_VERSION=3.9 | ||
ENV PATH=/opt/miniconda3/bin:$PATH | ||
|
||
ARG PYTHON_VERSION=3.7 | ||
COPY ./conda/** ./ | ||
WORKDIR /source | ||
|
||
# Build stempy | ||
RUN cd /source && mamba env update -n base -f /source/environment_before.yml && \ | ||
RUN mamba env update -n base -f /source/environment_before.yml && \ | ||
cd /source && \ | ||
git clone --recursive https://github.com/OpenChemistry/stempy.git && \ | ||
mkdir -p /build/stempy && \ | ||
cd /build/stempy && \ | ||
cmake -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo \ | ||
cmake -DCMAKE_BUILD_TYPE:STRING=Release \ | ||
-Dstempy_ENABLE_VTKm:BOOL=OFF \ | ||
-Dstempy_ENABLE_MPI:BOOL=ON \ | ||
/source/stempy . && \ | ||
make -j 16 && \ | ||
cp -r -L /build/stempy/lib/stempy \ | ||
/opt/miniconda3/lib/python${PYTHON_VERSION}/site-packages && \ | ||
/opt/miniconda3/lib/python${PYTHON_VERSION}/site-packages && \ | ||
rm -rf /source/stempy && \ | ||
conda env update -n base -f /source/environment_after.yml && \ | ||
mamba env update -n base -f /source/environment_after.yml && \ | ||
conda clean -a -y -q | ||
|
||
RUN /sbin/ldconfig | ||
|
||
|
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 |
---|---|---|
|
@@ -10,4 +10,4 @@ dependencies: | |
- ncempy | ||
- h5py=2.10 | ||
- pip: | ||
- mpi4py==3.0.1 | ||
- mpi4py==3.1.4 |
File renamed without changes.
Oops, something went wrong.