[增添]于opcua_exporter增添了supervisor服务

This commit is contained in:
makotocc0107
2024-09-10 13:52:35 +08:00
committed by Coding
parent 68325bc759
commit c075ada573
4 changed files with 64 additions and 3 deletions

View File

@@ -39,9 +39,16 @@ RUN mkdir build && \
FROM openeuler/openeuler:24.03
RUN mkdir /data
RUN dnf update -y && \
dnf install -y supervisor &&\
dnf clean all && \
rm -rf /var/cache/dnf/*
RUN curl -fsSL https://github.com/abtreece/confd/releases/download/v0.20.0/confd-v0.20.0-linux-amd64.tar.gz | tar -xz -C /usr/local/bin && \
chmod +x /usr/local/bin/confd
COPY ./supervisord/ /etc/supervisord/
COPY --from=build /app/build/opcua_exporter /usr/local/bin
CMD [ "opcua_exporter", "/data/opcua/opcua.yaml" ]
CMD [ "supervisord", "-c", "/etc/supervisord/supervisord.conf" ]