-
Notifications
You must be signed in to change notification settings - Fork 2
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 #26 from EBI-Metagenomics/develop
Removed Aspera, added boto3 + FIRE and some refactoring
- Loading branch information
Showing
16 changed files
with
280 additions
and
256 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 |
---|---|---|
@@ -1,21 +1,22 @@ | ||
FROM python:3.9-slim | ||
FROM mambaorg/micromamba:1.5.8 | ||
|
||
LABEL maintainer="Microbiome Informatics" | ||
LABEL version="0.9.0" | ||
LABEL description="EBI Fetch Tool Docker Image." | ||
LABEL version="1.0.0" | ||
LABEL description="EBI Fetch Tool." | ||
|
||
# We need curl to download aspera and ps for nextflow monitoring | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
COPY --chown=$MAMBA_USER:$MAMBA_USER conda_environment.yml /tmp/env.yaml | ||
|
||
RUN apt update && apt install -y curl procps && rm -rf /var/lib/apt/lists/* | ||
RUN micromamba install -y -n base -f /tmp/env.yaml && \ | ||
micromamba clean --all --yes | ||
|
||
COPY . . | ||
ARG MAMBA_DOCKERFILE_ACTIVATE=1 | ||
|
||
RUN pip install --no-cache-dir . | ||
ENV PATH="$MAMBA_ROOT_PREFIX/bin:$PATH" | ||
|
||
# Aspera is an IBM library for data sharing | ||
RUN ./install-aspera.sh | ||
COPY --chown=$MAMBA_USER:$MAMBA_USER . /opt/fetch-tool-src | ||
|
||
RUN export PATH=$PATH:/aspera-cli/cli/bin | ||
WORKDIR /opt/fetch-tool-src | ||
|
||
CMD [ fetch-read-tool ] | ||
RUN pip install . --no-cache-dir | ||
|
||
ENTRYPOINT ["/usr/local/bin/_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
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,16 @@ | ||
name: fetchtool | ||
channels: | ||
- bioconda | ||
- conda-forge | ||
- defaults | ||
dependencies: | ||
- python=3.10 | ||
- pip=24.0 | ||
- conda-forge::procps-ng=4.0.4 | ||
- conda-forge::wget=1.21.4 | ||
- conda-forge::rsync=3.3.0 | ||
- conda-forge::pandas=2.2.2 | ||
- pip: | ||
- requests==2.32.3 | ||
- flufl.lock==8.1.0 | ||
- boto3==1.34.134 |
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 |
---|---|---|
@@ -1,7 +1,5 @@ | ||
{ | ||
"url_max_attempts": 5, | ||
"ena_api_username": "", | ||
"ena_api_password": "", | ||
"aspera_bin": "", | ||
"aspera_cert": "" | ||
"ena_api_password": "" | ||
} |
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 |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "0.9.0" | ||
__version__ = "1.0.0" |
Oops, something went wrong.