mirror of
https://github.com/Icinga/docker-icinga2.git
synced 2025-11-08 10:51:03 +01:00
Dockerfile: run Icinga 2
This commit is contained in:
parent
4fecaed2dd
commit
e9c7792d1f
@ -1 +1,6 @@
|
|||||||
FROM debian:buster-slim
|
FROM icinga/icinga2-deps
|
||||||
|
|
||||||
|
COPY --chown=icinga:icinga icinga2-bin/ /
|
||||||
|
|
||||||
|
USER icinga
|
||||||
|
CMD ["icinga2", "daemon"]
|
||||||
|
|||||||
@ -34,6 +34,8 @@ mkimg () {
|
|||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
|
rm icinga2-bin/etc/icinga2/features-enabled/mainlog.conf
|
||||||
|
|
||||||
cache save
|
cache save
|
||||||
docker build -f /Dockerfile -t "${TARGET}:$TAG" .
|
docker build -f /Dockerfile -t "${TARGET}:$TAG" .
|
||||||
|
|
||||||
|
|||||||
5
deps.Dockerfile
Normal file
5
deps.Dockerfile
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
FROM debian:buster-slim
|
||||||
|
|
||||||
|
RUN ["/bin/bash", "-exo", "pipefail", "-c", "apt-get update; apt-get install --no-install-{recommends,suggests} -y libboost-{context,coroutine,date-time,filesystem,program-options,regex,system,thread}1.67 libedit2 libmariadb3 libpq5 libssl1.1; apt-get clean; rm -vrf /var/lib/apt/lists/*"]
|
||||||
|
|
||||||
|
RUN ["adduser", "--system", "--group", "--home", "/var/lib/icinga2", "--disabled-login", "--force-badname", "--no-create-home", "icinga"]
|
||||||
Loading…
x
Reference in New Issue
Block a user