tfe 适配 container

This commit is contained in:
luwenpeng
2021-03-12 17:22:38 +08:00
parent c6a966db2f
commit 9a3ac3e15a
11 changed files with 660 additions and 17 deletions

View File

@@ -1,39 +1,52 @@
FROM centos:7
FROM docker.io/centos:7
COPY MESA-Framework.repo /etc/yum.repos.d/
COPY MESA-Framework.repo /etc/yum.repos.d/
COPY framework.conf /etc/ld.so.conf.d/
RUN yum makecache && yum install -y \
RUN yum makecache && yum install -y \
mrzcpd \
numactl \
zlib \
librdkafka \
systemd \
libcjson \
libdocumentanalyze \
libmaatframe \
libMESA_field_stat \
libMESA_field_stat2 \
libMESA_handle_logger \
libMESA_htable\
libMESA_htable \
libMESA_prof_load \
librdkafka \
librulescan \
libtsglua \
libwiredcfg \
libWiredLB \
lz4 \
sapp \
libbreakpad_mini \
mrzcpd \
tfe
libmnl \
libnfnetlink \
iptables \
iproute \
&& ldconfig
RUN yum install -y \
epel-release \
python3 \
gdb \
numactl \
strace \
htop \
tcpdump \
net-tools \
curl \
vim \
&& pip3 install supervisor \
python3 \
&& pip3 install supervisor \
&& yum clean all
CMD tail -f /dev/null
COPY tfe-env.sh /opt/tsg/tfe/
COPY tfe-4.3.30.202103111806030800.ce55dbd-1.el7.x86_64.rpm /root/
RUN rpm -ivh /root/tfe-4.3.30.202103111806030800.ce55dbd-1.el7.x86_64.rpm && chmod o+x /opt/tsg/tfe/tfe-env.sh
COPY supervisord.conf /etc/supervisord/
#ENTRYPOINT ["cat","/root/test.txt"]
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