This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
tango-tsg-container/dockerfile/tfe/Dockerfile
2021-03-25 11:09:02 +08:00

54 lines
1.3 KiB
Docker

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