-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Working version. Ready to merge with main.
- Loading branch information
Showing
1 changed file
with
5 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,18 +17,14 @@ LABEL name="heatcluster/${HEATCLUSTER_VER}" | |
LABEL maintainer="Stephen Beckstrom-Sternberg" | ||
LABEL maintainer.email="[email protected]" | ||
|
||
# 'RUN' executes code during the build | ||
# Install Python and pip | ||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
apt-utils python3 python3-pip && \ | ||
apt-get clean && rm -rf /var/lib/apt/lists/* | ||
|
||
USER "$USER" | ||
# Install Python dependencies | ||
RUN pip3 install pandas numpy pathlib seaborn matplotlib scipy | ||
|
||
ENV PATH="$PATH" | ||
|
||
# Set /data as working dir | ||
RUN mkdir /data | ||
WORKDIR /data | ||
|
@@ -37,33 +33,20 @@ RUN echo "installing heatcluster" && echo | |
|
||
COPY . . | ||
|
||
RUN echo "Change to lowercase name: " && \ | ||
mv HeatCluster-${HEATCLUSTER_VER} heatcluster-${HEATCLUSTER_VER} | ||
RUN chmod +x bin/heatcluster | ||
RUN echo && echo && ls -latr /data && echo | ||
|
||
# 'ENV' instructions set environment variables that persist from the build into the resulting image | ||
# Use for e.g. $PATH and locale settings for compatibility with Singularity | ||
ENV PATH="/heatcluster-${HEATCLUSTER_VER}/bin:$PATH" \ | ||
LC_ALL=C | ||
|
||
# 'CMD' instructions set a default command when the container is run. | ||
CMD HeatCluster.py --help | ||
|
||
FROM app as test | ||
|
||
# set working directory so that all test inputs & outputs are kept in /test | ||
#WORKDIR /test | ||
|
||
# print help and version info; check dependencies (not all software has these options available) | ||
# print help and version info | ||
# Mostly this ensures the tool of choice is in path and is executable | ||
#RUN heatcluster --help && \ | ||
# heatcluster --check && \ | ||
# heatcluster --version | ||
|
||
# Demonstrate that the program is successfully installed | ||
|
||
RUN echo && echo "Show heatcluster help file: " && echo && \ | ||
python3 HeatCluster.py -h && echo | ||
RUN echo && echo "Show heatcluster help file and program version number: " && echo && \ | ||
python3 HeatCluster.py --help && \ | ||
python3 HeatCluster.py --version | ||
|
||
RUN echo && echo "Run a test matrix thru the program" && \ | ||
python3 HeatCluster.py -i snp-dists.txt && echo |