forked from cms-tedd-ip2i/low_voltage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
41 lines (30 loc) · 1.16 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
FROM centos:centos7
#FROM --platform=linux/amd64 centos:centos7
WORKDIR /usr/app
RUN yum update -y && \
yum install -y python3 && \
python3 -m pip install --upgrade pip && \
python3 -m pip install -U PyVISA-py PyVISA
#====install rpm & deltarpm====================//
RUN yum install -y rpm && \
yum provides applydeltarpm && \
yum install -y deltarpm && \
yum install -y unzip
WORKDIR /usr/app/low_voltage/
COPY low_voltage/lv-HMP .
#===rpm and zip packages (provided by Pierre) are in driver directory====//
COPY low_voltage/driver/ .
##===install the rsvisa-centos_.rpm package==============//
RUN rpm -ivh --nodeps rsvisa-centos_5.12.1-1.x86_64.rpm && \
unzip NILinux2019DeviceDrivers.zip && \
rpm -ivh --nodeps ni-software-2019-19.2.0.49152-0+f0.el7.noarch.rpm
#===other packages====//
RUN yum install -y libusb && \
yum install -y libivivisa0 && \
yum install -y ni-icp.noarch && \
yum install -y ni-visa && \
touch /tmp/smap_install_ni_anyway && \
yum install -y ni-daqmx && \
yum install -y kernel-devel
COPY requirements ./requirements
RUN python3 -m pip install --no-cache-dir -r requirements/docker.txt