Announcement

Collapse
No announcement yet.

Creating docker image with Centreon

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Creating docker image with Centreon

    Hello,
    I'm trying to dockerize Centreon but i encounter issues with the installer client part.
    Basicaly i'm building an image with CentOs and another one with MariaDB, both with his own container.
    The MariaDB image is a the official one with a password for the root user.

    When i finish the installation i'm redirected to the Centreon upgrade to 2.8. This upgrade part loops but seems to do nothing.

    Hello,
    I'm trying to dockerize Centreon but i encounter issues with the installer client part.
    Basicaly i'm building an image with CentOs and another one with MariaDB, both with his own container.
    The MariaDB image is a the official one with a password for the root user.

    When i finish the installation i'm redirected to the Centreon upgrade to 2.8. This upgrade part loops but seems to do nothing.

    //
    Bonjour,
    J'essaie de dockerizer Centreon. Mais je reoncontre des problèmes avec le client d'installation.
    Basiquement, je build mon image avec CentOs et une autre image de Maria DB, chacun avec son propre container.
    L'Image MariaDB est l'officielle, j'ai juste paramétré un mot de passe pour l'utilisateur root.

    Quand l'installation se termine, je suis redirigé vers l'upgrade Centreon vers la 2.8. La partie Upgrade boucle, mais semble ne rien faire.
    //


    Here's my docker-compose for my docker image :

    //
    Voici mon docker-compose pour mon image docker.
    //

    Code:
    FROM centos:centos7
    LABEL Author = "AurelienH."
    LABEL Description = "DOCKERFILE : Allows the creation of a Container with a Centreon distribution installed via packages"
    
    #Update and install requirements
    RUN yum update -y
    RUN yum install -y wget nano centos-release-scl httpd git
    
    #Install Centreon repo
    RUN cd /usr/local/src
    RUN wget http://yum.centreon.com/standard/3.4/el7/stable/noarch/RPMS/centreon-release-3.4-4.el7.centos.noarch.rpm
    RUN yum install -y --nogpgcheck centreon-release-3.4-4.el7.centos.noarch.rpm
    
    #Install Centreon
    RUN yum install -y centreon-base-config-centreon-engine centreon centreon-pp-manager
    RUN yum install -y centreon-plugins
    RUN yum clean all
    
    RUN echo -n "date.timezone = Europe/Paris" > /etc/php.d/php-timezone.ini
    
    EXPOSE 22 80 443
    
    
    ENTRYPOINT [ "/usr/sbin/httpd" ]
    CMD [ "-D", "FOREGROUND" ]
    Last edited by Aurelien.H; 14 hours ago. Reason: Adding french translation

  • #2
    I have some news about this issue.
    It seems that once the installation is over the Centreon installer should move the install directory or remove it.
    How could i make that the container can do what it has to do about that directory ?

    Ok, alors j'ai du neuf.
    Il semblerai qu'une fois l'installation de Centreon terminée, l'installeur devrait bouger ou renommer le dossier d'installation.
    Comment je peux faire pour que mon container fasse ce qu'il a à faire avec ce répertoire ?

    Comment

    Working...
    X