summaryrefslogtreecommitdiff
path: root/dockerfile/tfe/Dockerfile
blob: fc1c7ffca403c850848b51c54fcef820c9c15f1b (plain)
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
FROM docker.io/centos:7

COPY MESA-Framework.repo /etc/yum.repos.d/
COPY framework.conf /etc/ld.so.conf.d/

RUN yum makecache && yum install -y \
  mrzcpd \
  numactl \
  zlib \
  librdkafka \
  systemd \
  libcjson \
  libmaatframe \
  libMESA_field_stat2 \
  libMESA_handle_logger \
  libMESA_htable \
  libMESA_prof_load \
  librulescan \
  libwiredcfg \
  libWiredLB \
  sapp \
  libbreakpad_mini \
  libmnl \
  libnfnetlink \
  iptables \
  iproute \
  && ldconfig

RUN yum install -y \
  epel-release \
  gdb \
  strace \
  htop \
  tcpdump \
  net-tools \
  curl \
  vim \
  python3 \
  && pip3 install supervisor \
  && yum clean all

COPY tfe-4.3.30.202103251012260800.7e54768-1.el7.x86_64.rpm /tmp/
COPY tfe-debuginfo-4.3.30.202103251012260800.7e54768-1.el7.x86_64.rpm /tmp/
RUN rpm -ivh /tmp/tfe-4.3.30.202103251012260800.7e54768-1.el7.x86_64.rpm && rpm -ivh /tmp/tfe-debuginfo-4.3.30.202103251012260800.7e54768-1.el7.x86_64.rpm

COPY supervisord.conf /etc/supervisord/

WORKDIR /opt/tsg/tfe/

ENTRYPOINT ["/usr/local/bin/supervisord", "-n", "-c", "/etc/supervisord/supervisord.conf"]

# docker run -it --cap-add=NET_ADMIN --cap-add=SYS_PTRACE --security-opt seccomp=unconfined --device /dev/net/tun:/dev/net/tun tfe:v1 /bin/bash
# supervisorctl -c /etc/supervisord/supervisord.conf status