Commit c099310e authored by Sean Solari's avatar Sean Solari
Browse files

Add docker recipes

parent 220fc612
# syntax=docker/dockerfile:1
FROM python:3.8-slim-buster
WORKDIR /app
COPY requirements.txt requirements.txt
RUN pip3 install -r requirements.txt
COPY . .
RUN apt update
RUN apt-get -y install build-essential
RUN python3 setup.py install
CMD ["expam", "--help"]
......@@ -8,7 +8,7 @@ then
exit 1
fi
rsync -vaRP docs src/expam src/benchmark/*.py src/benchmark/database_access_profiling/*.py test .gitignore .pyirc .readthedocs.yaml LICENSE MANIFEST.in pyproject.toml README.md setup.cfg setup.py buildandtwine.sh requirements.txt $EXPAM_PUBLIC_DIR
rsync -vaRP docs recipes src/expam src/benchmark/*.py src/benchmark/database_access_profiling/*.py test .gitignore .pyirc .readthedocs.yaml LICENSE MANIFEST.in pyproject.toml README.md setup.cfg setup.py buildandtwine.sh requirements.txt $EXPAM_PUBLIC_DIR
echo "\nbuildandtwine.sh" >> $EXPAM_PUBLIC_DIR/.gitignore
echo "\n==================================\nLocal push completed successfully!\n==================================\n\nNow run build and run twine :)"
# syntax=docker/dockerfile:1
FROM continuumio/miniconda3
WORKDIR /app
COPY environment.yml .
RUN conda env create -f environment.yml
# Make RUN commands use the new environment:
RUN echo "conda activate expam" >> ~/.bashrc
SHELL ["/bin/bash", "--login", "-c"]
# The code to run when container is started:
COPY entrypoint.sh ./
ENTRYPOINT ["./entrypoint.sh"]
#!/bin/bash --login
# The --login ensures the bash configuration is loaded,
# enabling Conda.
# Temporarily disable strict mode and activate conda:
set +euo pipefail
conda activate expam
# Re-enable strict mode:
set -euo pipefail
expam --help
name: expam
channels:
- conda-forge
- bioconda
dependencies:
- python>=3.8
- expam
\ No newline at end of file
# syntax=docker/dockerfile:1
FROM python:3.8-slim-buster
WORKDIR /app
RUN apt update
RUN apt-get -y install build-essential
RUN apt -y install git-all
RUN mkdir ${HOME}/.ssh
RUN ssh-keyscan -t rsa github.com >> ${HOME}/.ssh/known_hosts
RUN git clone https://github.com/seansolari/expam.git
WORKDIR /app/expam
RUN python3 -m pip install --upgrade pip
RUN python3 -m pip install -r requirements.txt
RUN python3 setup.py install
CMD ["expam", "--help"]
# syntax=docker/dockerfile:1
FROM python:3.8-slim-buster
WORKDIR /app
RUN apt update
RUN apt-get -y install build-essential
RUN python3 -m pip install --upgrade pip
RUN python3 -m pip install expam
CMD ["expam", "--help"]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment