FROM mips64le/debian:stable-slim
LABEL MAINTAINER="zhangguanzhang [email protected]" \
URL="https://github.com/zhangguanzhang/dummy-tool"
COPY dummy-tool /dummy-tool
RUN if [ ! -e /etc/nsswitch.conf ];then echo 'hosts: files dns myhostname' > /etc/nsswitch.conf; fi && \
if [ -e /etc/apt/sources.list ];then sed -ri 's/(deb|security).debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list; fi && \
chmod a+x /dummy-tool && \
apt-get update && \
apt-get install -y curl iproute2 && \
rm -rf /var/cache/apt/*
ENTRYPOINT ["/dummy-tool"]
$ docker run --rm -ti --privileged --net host dummy-tool:v0.1 -local-ip=169.254.20.10 -interface-name=svc -health-port 8070
Name: dummy-tool
Version: v0.1-dirty
CommitID: e051814b2c1ec020b6bd9b8864d228bfb42424e1
GitTreeState: clean
BuildDate: 2021-09-25T06:41:22Z
GoVersion: go1.16.7
Compiler: gc
Platform: linux/mips64le
2021/09/25 08:11:37 [INFO] Added interface - wps-svc
2021/09/25 08:11:37 [INFO] Start http health at :8070
2021/09/25 08:11:37 [INFO] Received signal: window changed, tearing down
2021/09/25 08:11:37 [INFO] Tearing down
2021/09/25 08:11:37 [WARNING] Exiting check interface