-
Notifications
You must be signed in to change notification settings - Fork 1
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 #145 from getwilds/sourmash
Adding initial versions of Sourmash Dockerfiles
- Loading branch information
Showing
2 changed files
with
58 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Using the miniforge base image | ||
FROM condaforge/miniforge3:24.7.1-2 | ||
|
||
# Adding labels for the GitHub Container Registry | ||
LABEL org.opencontainers.image.title="sourmash" \ | ||
org.opencontainers.image.description="Container image for the use of Sourmash in FH DaSL's WILDS" \ | ||
org.opencontainers.image.version="4.8.2" \ | ||
org.opencontainers.image.authors="[email protected]" \ | ||
org.opencontainers.image.url="https://hutchdatascience.org/" \ | ||
org.opencontainers.image.documentation="https://getwilds.org/" \ | ||
org.opencontainers.image.source="https://github.com/getwilds/wilds-docker-library" \ | ||
org.opencontainers.image.licenses="MIT" | ||
|
||
# Configure conda to run in non-interactive mode | ||
ENV CONDA_ALWAYS_YES=true | ||
|
||
# Create the conda environment and install sourmash with specific version | ||
SHELL ["/bin/bash", "-c"] | ||
RUN /opt/conda/bin/conda create -n sourmash_env -c conda-forge sourmash-minimal=4.8.2 && \ | ||
echo "source /opt/conda/bin/activate sourmash_env" >> ~/.bashrc | ||
|
||
# Set default command to activate conda environment | ||
SHELL ["/bin/bash", "-c"] | ||
|
||
# Verify installation and version | ||
RUN /opt/conda/bin/conda run -n sourmash_env sourmash --version | ||
|
||
# Set the default command to run bash with the conda environment activated | ||
ENTRYPOINT ["/bin/bash", "-c", "source /opt/conda/bin/activate sourmash_env && exec /bin/bash"] |
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,29 @@ | ||
# Using the miniforge base image | ||
FROM condaforge/miniforge3:24.7.1-2 | ||
|
||
# Adding labels for the GitHub Container Registry | ||
LABEL org.opencontainers.image.title="sourmash" \ | ||
org.opencontainers.image.description="Container image for the use of Sourmash in FH DaSL's WILDS" \ | ||
org.opencontainers.image.version="latest" \ | ||
org.opencontainers.image.authors="[email protected]" \ | ||
org.opencontainers.image.url="https://hutchdatascience.org/" \ | ||
org.opencontainers.image.documentation="https://getwilds.org/" \ | ||
org.opencontainers.image.source="https://github.com/getwilds/wilds-docker-library" \ | ||
org.opencontainers.image.licenses="MIT" | ||
|
||
# Configure conda to run in non-interactive mode | ||
ENV CONDA_ALWAYS_YES=true | ||
|
||
# Create the conda environment and install sourmash with specific version | ||
SHELL ["/bin/bash", "-c"] | ||
RUN /opt/conda/bin/conda create -n sourmash_env -c conda-forge sourmash-minimal=4.8.2 && \ | ||
echo "source /opt/conda/bin/activate sourmash_env" >> ~/.bashrc | ||
|
||
# Set default command to activate conda environment | ||
SHELL ["/bin/bash", "-c"] | ||
|
||
# Verify installation and version | ||
RUN /opt/conda/bin/conda run -n sourmash_env sourmash --version | ||
|
||
# Set the default command to run bash with the conda environment activated | ||
ENTRYPOINT ["/bin/bash", "-c", "source /opt/conda/bin/activate sourmash_env && exec /bin/bash"] |