xmatters-xa docker

Not Yet Reviewed

I'm setting up a Xmatters integration with my LibreNMS docker enivournment and I was wondering if anyone had working docker image/deployment for Xmatters agent?

I've already tried the 2 year old "xm-labs-xAgent-Dockerfile" but it centos, outdate and no longer boots.

 

 

 

0

Comments

6 comments
Date Votes

Please sign in to leave a comment.

  • I see what you mean.  The Dockerfile is using a CentOS base image, which is now end of life.  We will get the Dockerfile updated, but in the meantime you can replace the contents of the Dockerfile with the configuration below.  This will build the image using Debian instead.  The rest of the instructions are the same.

    FROM debian:latest
    RUN apt-get update && \
    apt-get install -y wget gnupg && \
    echo 'deb https://software.xmatters.com/apt/ stable main' > /etc/apt/sources.list.d/xmatters.list && \
    wget -qO - https://software.xmatters.com/apt/xmatters_repo.gpg.key | apt-key add - && \
    apt-get update && \
    apt-get install -y xmatters-xa && \
    touch /etc/xmatters/xa/auth.conf && \
    ln -sf /dev/stdout /var/log/xmatters/xmatters-xa/agent-communication-xmatters.log && \
    apt-get remove -y wget gnupg
    COPY docker_entrypoint.sh /docker_entrypoint.sh
    RUN chmod +x ./docker_entrypoint.sh
    ENTRYPOINT ["/docker_entrypoint.sh"]
    CMD ["start"]
    0
  • Hi Eric, I'm a colleague of OP, I did a PR on your git repo already which fixes the issue and adds few improvements please take a look.

    https://github.com/xmatters/xm-labs-xAgent-Dockerfile/pull/2

    0
  • Thanks we will check out

    0
  • Can you commit the changes out so I can start using them.

    0
  • *BUMP*

    0
  • The changes were merged last week.  Thanks.

    0

Didn't find what you were looking for?

New post