-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
45 lines (37 loc) · 1.69 KB
/
Dockerfile
File metadata and controls
45 lines (37 loc) · 1.69 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
FROM continuumio/miniconda3
WORKDIR .
# setup conda and other dependencies
RUN apt-get update
RUN apt-get install -y libgl1-mesa-dev qtbase5-dev libxcb-xinerama0-dev build-essential
RUN conda create --name pychron3 python=3.8
SHELL ["conda", "run", "--name", "pychron3", "/bin/bash", "-c"]
RUN conda install --yes traits traitsui pyqt qt yaml pyyaml pymysql numpy importlib_resources apptools envisage \
gitpython cython pytables pyproj requests xlrd xlwt xlsxwriter lxml reportlab statsmodels scikit-learn pyparsing
RUN conda install --yes swig=3 sqlalchemy=1.3
RUN conda install -c dbanas chaco
RUN pip3 install uncertainties qimage2ndarray peakutils
# copy src
RUN git clone https://github.com/NMGRL/pychron
WORKDIR pychron
RUN git checkout dev/dr
WORKDIR ..
# copy setupfiles
RUN mkdir /home/Pychron
COPY ./setupfiles /home/Pychron/setupfiles
COPY ./preferences /home/Pychron/preferences
COPY ./demo.sqlite /home/Pychron/demo.sqlite
COPY ./.appdata /home/Pychron/.appdata
RUN mkdir /home/Pychron/data
RUN mkdir /home/Pychron/data/.dvc
RUN mkdir /home/Pychron/data/.dvc/repositories
RUN git clone https://github.com/PychronTrainingData/Irradiation-NM-313 /home/Pychron/data/.dvc/repositories/Irradiation-NM-313
RUN git clone https://github.com/PychronTrainingData/Morgan01099 /home/Pychron/data/.dvc/repositories/Morgan01099
RUN git clone https://github.com/PychronTrainingData/MetaData /home/Pychron/data/.dvc/MetaData
# setup environment
ENV QT_GRAPHICSSYSTEM="native"
ENV QT_DEBUG_PLUGINS=0
ENV PYTHONPATH=./pychron
ENV PYCHRON_APPNAME=pycrunch
ENV PYCHRON_ENV=/home/Pychron
ENV PYCHRON_USE_LOGIN=0
ENTRYPOINT ["conda", "run", "--no-capture-output", "--name", "pychron3", "python", "./pychron/launchers/launcher.py"]