Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Addedn environment.yml file to repo so that the conda environment can…
Browse files Browse the repository at this point in the history
… be created
  • Loading branch information
daminton committed Jun 9, 2023
1 parent bfe55af commit 1453773
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 104 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ dump*
!singularity/
!Dockerfile
!swiftest.def
!environment.yml

bin/
build/*
Expand Down
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,12 @@ ENV SHELL="/bin/bash"
ENV PATH="/opt/conda/bin:${PATH}"
ENV LD_LIBRARY_PATH="/usr/local/lib"

COPY environment.yml .

RUN conda update --all -y && \
conda install conda-libmamba-solver -y && \
conda config --set solver libmamba && \
conda env create -f environment.yml && \
conda config --set solver libmamba

COPY environment.yml .
RUN conda env create -f environment.yml && \
conda init bash && \
echo "conda activate swiftest-env" >> ~/.bashrc

Expand Down
1 change: 0 additions & 1 deletion docker/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@
!bin
!bin/swiftest
!bin/swiftest_driver
!Dockerfile.swiftest_driver
99 changes: 0 additions & 99 deletions docker/Dockerfile.swiftest_driver

This file was deleted.

22 changes: 22 additions & 0 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: swiftest-env

channels:
- conda-forge
- defaults

dependencies:
- numpy
- scipy
- matplotlib
- pandas
- xarray
- h5netcdf
- netcdf4
- dask
- bottleneck
- astropy
- astroquery
- tqdm
- x264
- ffmpeg
- conda-build

0 comments on commit 1453773

Please sign in to comment.