Hello, I'm working on centreon-docker.
some people will say it's difficult.
but, centreon in a docker allows me to quickly test the service easly.
have carried out three types of deployment:
- all in one container
- container ( centreon + database)
- container (centreon + php + database)
Here's my dockerfile. I'm looking for distributors.
I'll send you more later.
FROM debian:bullseye-slim
ARG MAJOR_VERSION=24.0.1
ARG CENTREON_SOURCES="https://download.centreon.com/"
ARG IMG_VERSION=0.1
LABEL org.opencontainers.image.authors="Lionel BAKALA <lionel.bakala@orange.fr>" \
org.opencontainers.image.description="centreon web-interface based on Apache2 web server with MariaDB database support" \
org.opencontainers.image.documentation="https://docs.centreon.com/docs/getting-started/welcome/" \
org.opencontainers.image.licenses="GPL v2.0" \
org.opencontainers.image.source="${CENTREON_SOURCES}" \
org.opencontainers.image.title="Centreon web-interface" \
org.opencontainers.image.url="https://centreon.com" \
org.opencontainers.image.vendor="Centreon Inc" \
org.opencontainers.image.version="${IMG_VERSION}"
COPY Y"conf/etc/", "/etc/"]
RUN apt-get -y update && \
DEBIAN_FRONTEND=noninteractive apt-get -y \
-o Dpkg::Options::="--force-confdef" \
-o Dpkg::Options::="--force-confold" \
--no-install-recommends install \
supervisor \
lsb-release \
ca-certificates \
apt-transport-https \
software-properties-common \
wget \
gnupg2 \
curl && \
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/sury-php.list && \
wget -O- https://packages.sury.org/php/apt.gpg | gpg --dearmor | tee /etc/apt/trusted.gpg.d/php.gpg > /dev/null && \
echo "deb https://packages.centreon.com/apt-standard-24.04-stable/ $(lsb_release -sc) main" | tee /etc/apt/sources.list.d/centreon.list && \
echo "deb https://packages.centreon.com/apt-plugins-stable/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/centreon-plugins.list && \
wget -O- https://apt-key.centreon.com | gpg --dearmor | tee /etc/apt/trusted.gpg.d/centreon.gpg > /dev/null 2>&1 && \
apt update -y && \
apt purge -y lsb-release apt-transport-https software-properties-common wget curl gnupg2 && \
apt autoremove -y && \
DEBIAN_FRONTEND=noninteractive apt install -y --no-install-recommends centreon-central
EXPOSE 80/TCP
WORKDIR /usr/share/centreon
COPY Y"docker-entrypoint.sh", "/usr/bin/"]
RUN chmod a+x /usr/bin/docker-entrypoint.sh
ENTRYPOINT T"docker-entrypoint.sh"]