forked from OSU-CMS/Ph2_ACF_GUI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (23 loc) · 1.03 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
ARG FROM_IMAGE=gitlab-registry.cern.ch/cms_tk_ph2/docker_exploration/cmstkph2_udaq_c7:latest
FROM $FROM_IMAGE AS base
SHELL ["/bin/bash", "-c"]
ENV Ph2_ACF_VERSION=v4-14
ENV GUI_dir=/home/cmsTkUser/Ph2_ACF_GUI
ENV PH2ACF_BASE_DIR=${GUI_dir}/Ph2_ACF
ENV DATA_dir=${GUI_dir}/data/TestResults
ENV PYTHONPATH=${PYTHONPATH}:${GUI_dir}
USER root
LABEL Name=ph2acfgui Version=4.13.1
WORKDIR /home/cmsTkUser/Ph2_ACF_GUI/
ADD . /home/cmsTkUser/Ph2_ACF_GUI/
RUN ls -lrt
RUN yum -y install libxkbcommon-x11-devel mesa-libGL-devel xcb-util-wm xcb-util-image xcb-util-keysyms xcb-util-renderutil xcb-util-wm python3-pyqt5
RUN yum -y install dbus-x11 build-essential qtcreator qt5-default usbutils udev
RUN python3 -m pip install --upgrade pip
RUN python3 -m pip install -r requirements.txt
RUN sh ./compileSubModules.sh
RUN chmod +x prepare_Ph2ACF.sh
CMD ["prepare_Ph2ACF.sh"]
#The following would open the GUI when docker run is called. Otherwise it will just give a terminal.
#CMD ["./QtApplication.py"]
#ENTRYPOINT ["python3"]