-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathDockerfile
More file actions
55 lines (37 loc) · 1.46 KB
/
Dockerfile
File metadata and controls
55 lines (37 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
FROM ubuntu:20.04
LABEL maintainer="jan.freudenthal@uni-wuerzburg.de"
ENV DEBIAN_FRONTEND noninteractive
RUN apt update
RUN apt install --yes && \
apt install --yes \
locales
RUN locale-gen en_US.UTF-8
RUN apt install -y emacs git
RUN apt install -y wget bzip2 sudo
RUN adduser --disabled-password --gecos '' ubuntu
RUN adduser ubuntu sudo
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
USER ubuntu
WORKDIR /home/ubuntu/
RUN chmod a+rwx /home/ubuntu/
#### change anaconda to miniconda
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
RUN bash Miniconda3-latest-Linux-x86_64.sh -b
RUN rm Miniconda3-latest-Linux-x86_64.sh
ENV PATH /home/ubuntu/miniconda3/bin:$PATH
# Updating Anaconda packages
RUN conda update conda
# Install python packages
ADD requirements.txt .
RUN conda install python=3.7 pip
RUN pip install -r requirements.txt
# Add scripts
ADD gwas.py .
ADD gwas_flow ./gwas_flow
WORKDIR /data
ENTRYPOINT ["python","-u","/home/ubuntu/gwas.py"]
# docker build -t gwas_flow docker
### Run docker container
## docker run --rm -u $UID:$GID -v $PWD:/data gwas_flow:latest -x gwas_sample_data/AT_geno.hdf5 -y gwas_sample_data/phenotype.csv -k gwas_sample_data/kinship_ibs_binary_mac5.h5py
### Build singulartiy container from docker container locally
## docker run -v /var/run/docker.sock:/var/run/docker.sock -v ../GWAS_Flow:/output --privileged -t singularityware/docker2singularity:1.11 tf_image:latest