-
Notifications
You must be signed in to change notification settings - Fork 50
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 #111 from amarquand/dev
Dev
- Loading branch information
Showing
13 changed files
with
227 additions
and
45 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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Installs software and cleans up unnecessary memory: the smaller, the less downtime | ||
FROM continuumio/miniconda3:latest | ||
RUN apt-get update | ||
RUN apt-get install -y libhdf5-dev \ | ||
pkg-config \ | ||
gcc \ | ||
g++ \ | ||
zip | ||
|
||
# Make sure we have the right version of numpy | ||
RUN conda install numpy=1.21 | ||
|
||
# Install directly from GitHub (master branch) | ||
#RUN pip install scikit-learn | ||
#RUN pip install pcntoolkit==0.26 | ||
|
||
# This is an alternative method that pulls from the dev branch | ||
RUN wget https://github.com/amarquand/PCNtoolkit/archive/dev.zip | ||
RUN unzip dev.zip | ||
RUN pip install scikit-learn | ||
RUN cd PCNtoolkit-dev; pip install . ; cd .. | ||
|
||
# Add command line links | ||
RUN ln -s /opt/conda/lib/python3.10/site-packages/pcntoolkit /opt/ptk | ||
RUN chmod 755 /opt/ptk/normative.py | ||
RUN chmod 755 /opt/ptk/normative_parallel.py | ||
RUN chmod 755 /opt/ptk/trendsurf.py | ||
RUN echo "export PATH=${PATH}:/opt/ptk" >> ~/.bashrc | ||
|
||
# clean up | ||
RUN rm -rf PCNtoolkit-dev dev.zip | ||
RUN conda clean -a | ||
RUN pip cache purge | ||
RUN apt-get clean | ||
|
||
# execute entrypoint | ||
COPY entrypoint.sh ./entrypoint.sh | ||
RUN chmod +x ./entrypoint.sh | ||
ENTRYPOINT [ "./entrypoint.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
|
||
# take the pcntoolkit function from the first argument specified | ||
func="$1" | ||
shift | ||
|
||
# run using all remaining arguments | ||
/opt/ptk/${func} "$@" |
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
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
Oops, something went wrong.