Change entrypoint.
This commit is contained in:
@@ -11,5 +11,5 @@ COPY apc-deamon.conf /etc/apcupsd/apcupsd.conf
|
|||||||
COPY entrypoint.sh /sbin/entrypoint.sh
|
COPY entrypoint.sh /sbin/entrypoint.sh
|
||||||
COPY --from=build /go/bin/apcupsd_exporter /sbin/apcupsd_exporter
|
COPY --from=build /go/bin/apcupsd_exporter /sbin/apcupsd_exporter
|
||||||
EXPOSE 9162 3551/tcp 3551/udp
|
EXPOSE 9162 3551/tcp 3551/udp
|
||||||
ENTRYPOINT /sbin/entrypoint.sh
|
ENTRYPOINT ["sh", "/sbin/entrypoint.sh"]
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
/sbin/apcupsd
|
|
||||||
|
|
||||||
/sbin/apcupsd_exporter -apcupsd.addr localhost:3551 &
|
/sbin/apcupsd_exporter -apcupsd.addr localhost:3551 &
|
||||||
|
|
||||||
|
/sbin/apcupsd -b
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user