-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #549 from DeepRank/534_conda_dssp_gcroci2
build: switch to conda dssp installation
- Loading branch information
Showing
16 changed files
with
349 additions
and
122 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 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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Pull base image | ||
FROM --platform=linux/x86_64 condaforge/miniforge3:23.3.1-1 | ||
|
||
# Add files | ||
ADD ./tutorials /home/deeprank2/tutorials | ||
ADD ./env/environment.yml /home/deeprank2 | ||
ADD ./env/requirements.txt /home/deeprank2 | ||
|
||
# Install | ||
RUN \ | ||
apt update -y && | ||
apt install unzip -y && | ||
## GCC | ||
apt install -y gcc && | ||
## Conda and pip deps | ||
mamba env create -f /home/deeprank2/environment.yml && | ||
## Get the data for running the tutorials | ||
if [ -d "/home/deeprank2/tutorials/data_raw" ]; then rm -Rf /home/deeprank2/tutorials/data_raw; fi && | ||
if [ -d "/home/deeprank2/tutorials/data_processed" ]; then rm -Rf /home/deeprank2/tutorials/data_processed; fi && | ||
wget https://zenodo.org/records/8349335/files/data_raw.zip && | ||
unzip data_raw.zip -d data_raw && | ||
mv data_raw /home/deeprank2/tutorials | ||
|
||
# Activate the environment | ||
RUN echo "source activate deeprank2" >~/.bashrc | ||
ENV PATH /opt/conda/envs/deeprank2/bin:$PATH | ||
|
||
# Define working directory | ||
WORKDIR /home/deeprank2 | ||
|
||
# Define default command | ||
CMD ["jupyter", "notebook", "--ip=0.0.0.0", "--NotebookApp.token=''","--NotebookApp.password=''", "--allow-root"] |
Oops, something went wrong.