forked from BU-ISCIII/iskylims
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
56 lines (40 loc) · 1.51 KB
/
Dockerfile
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
56
FROM ubuntu:20.04
# ENV PYTHONUNBUFFERED 1
ENV TZ=Europe/Madrid
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# Updates
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get upgrade -y
# Essential software
RUN apt-get install -y \
lightdm git apt-utils libcairo2 libcairo2-dev wget gnuplot python3-pip \
libmysqlclient-dev apache2 apache2-dev vim
RUN mkdir /opt/interop
WORKDIR /opt/interop
RUN wget https://github.com/Illumina/interop/releases/download/v1.1.15/InterOp-1.1.15-Linux-GNU.tar.gz
RUN tar -xvf InterOp-1.1.15-Linux-GNU.tar.gz
RUN ln -s InterOp-1.1.15-Linux-GNU interop
RUN rm InterOp-1.1.15-Linux-GNU.tar.gz
RUN mkdir /opt/iSkyLIMS
WORKDIR /opt/iSkyLIMS
RUN git clone https://github.com/BU-ISCIII/iSkyLIMS.git .
# RUN git submodule init
RUN git checkout develop
# RUN git submodule init
# RUN git submodule update --checkout
RUN cd iSkyLIMS_wetlab git
RUN mkdir -p /opt/iSkyLIMS/documents/wetlab/tmp
RUN mkdir -p /opt/iSkyLIMS/documents/drylab
RUN mkdir -p /opt/iSkyLIMS/logs
# Starting iSkyLIMS
RUN python3 -m pip install -r conf/pythonPackagesRequired.txt
RUN django-admin startproject iSkyLIMS .
RUN /bin/bash -c 'grep ^SECRET iSkyLIMS/settings.py > ~/.secret'
# Copying config files and script
RUN cp conf/docker_settings.py /opt/iSkyLIMS/iSkyLIMS/settings.py
RUN cp conf/urls.py /opt/iSkyLIMS/iSkyLIMS/
RUN sed -i "/^SECRET/c\\$(cat ~/.secret)" iSkyLIMS/settings.py
ENV PATH="usr/bin:$PATH"
# Expose and run
EXPOSE 8000
CMD python3 manage.py runserver 0:8000