-
Notifications
You must be signed in to change notification settings - Fork 7
/
Dockerfile
64 lines (49 loc) · 1.82 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
57
58
59
60
61
FROM centos
ENV container docker
RUN mkdir -p /etc/selinux/targeted/contexts/
RUN echo '<busconfig><selinux></selinux></busconfig>' > /etc/selinux/targeted/contexts/dbus_contexts
#RUN mkdir -p /violet/sensors
#RUN mkdir -p /violet/sanity/pub_sub
#RUN mkdir -p /violet/
#COPY coremark_exe /violet/coremark_exe
#COPY sensors_data_gen/bin /violet/sensors/bin
#COPY sensors_data_gen/data /violet/sensors/data
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 gunicorn
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
RUN mkdir -p /violet/sensors
RUN mkdir -p /violet/sanity/pub_sub
RUN mkdir -p /violet/
COPY coremark_exe /violet/coremark_exe
COPY sensors_data_gen/bin /violet/sensors/bin
COPY sensors_data_gen/data /violet/sensors/data
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/*;
RUN yum install -y gcc
VOLUME [ "/sys/fs/cgroup", "/tmp", "/run", "/run/lock" ]
CMD ["/usr/sbin/init"]