forked from dream-lab/VIoLET
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
executable file
·49 lines (42 loc) · 1.62 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
FROM centos
ENV container docker
#COPY coremark_benchmark/c_coremark.py /
#COPY coremark_benchmark/coremark_1.exe /
#COPY coremark_benchmark/coremark_2.exe /
#COPY coremark_benchmark/coremark_4.exe /
#COPY coremark_benchmark/coremark_16.exe /
RUN mkdir -p /etc/selinux/targeted/contexts/
RUN echo '<busconfig><selinux></selinux></busconfig>' > /etc/selinux/targeted/contexts/dbus_contexts
RUN yum install -y iproute
RUN yum install -y traceroute
RUN yum install -y iptables-services
RUN yum install -y iperf3
RUN yum install -y nmap
RUN yum install -y net-tools
RUN yum --enablerepo=extras install -y epel-release
RUN yum install -y python-pip
RUN pip install paho-mqtt
RUN pip install numpy
RUN pip install flask
RUN pip install requests
RUN yum install -y mosquitto
RUN yum install -y wget
RUN yum install -y java-1.8.0-openjdk
RUN yum install -y java-1.8.0-openjdk-devel
RUN yum install -y epel-release
RUN yum install -y fping
RUN yum install htop -y
RUN yum install -y openssh-clients
#COPY Raspberry_Pi_Benchmarks.tar.tgz /
#RUN tar -zxvf Raspberry_Pi_Benchmarks.tar.tgz
RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == \
systemd-tmpfiles-setup.service ] || rm -f $i; done); \
rm -f /lib/systemd/system/multi-user.target.wants/*;\
rm -f /etc/systemd/system/*.wants/*;\
rm -f /lib/systemd/system/local-fs.target.wants/*; \
rm -f /lib/systemd/system/sockets.target.wants/*udev*; \
rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \
rm -f /lib/systemd/system/basic.target.wants/*;\
rm -f /lib/systemd/system/anaconda.target.wants/*;
VOLUME [ "/sys/fs/cgroup", "/tmp", "/run", "/run/lock" ]
CMD ["/usr/sbin/init"]