Dockerfile 891 Bytes
Newer Older
Shiva Ramani's avatar
Shiva Ramani committed
1
FROM python
Rayan  CHIKHI's avatar
Rayan CHIKHI committed
2
# https://pythonspeed.com/articles/alpine-docker-python/
Shiva Ramani's avatar
Shiva Ramani committed
3 4 5 6

COPY batch_processor.py /

RUN pip install --upgrade pip && \
Rayan  CHIKHI's avatar
Rayan CHIKHI committed
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
    pip install boto3 awscli 

# local AWS credentials
ARG AWS_DEFAULT_REGION
#ENV AWS_DEFAULT_REGION=$AWS_DEFAULT_REGION

ARG AWS_ACCESS_KEY_ID
#ENV AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID

ARG AWS_SECRET_ACCESS_KEY
#ENV AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY

# BCALM install from binaries
RUN aws s3 cp s3://aws-unitigs-tools/bcalm-binaries-v2.2.3-Linux.tar.gz .
RUN tar xf bcalm-binaries-v2.2.3-Linux.tar.gz && rm bcalm-binaries-v2.2.3-Linux.tar.gz
RUN mv bcalm-binaries-v2.2.3-Linux/bin/bcalm ./

# MFcompress
RUN aws s3 cp s3://aws-unitigs-tools/MFCompress-linux64-1.01.tgz .
RUN tar xf MFCompress-linux64-1.01.tgz && rm MFCompress-linux64-1.01.tgz
RUN mv MFCompress-linux64-1.01/MFCompressC ./
Shiva Ramani's avatar
Shiva Ramani committed
28 29 30 31

RUN pwd
RUN ls

Rayan  CHIKHI's avatar
Rayan CHIKHI committed
32
#CMD ["python", "batch_processor.py"]