docker image on dockerhub info

Started by madmucho, April 01, 2016, 12:37:41 AM

Previous topic - Next topic

madmucho

Dear users,
let me inform you about docker image which i created and maintain on dockerhub
https://hub.docker.com/r/madmucho/netxms/

this release contains netxms base sqlite version, it is very small based od debian 8 fast and running in seconds.

If you miss something inside let me know here so i will add futures and items to next versions.

pheller

This is useful, thanks for publishing it.  Would you be willing to share the Dockerfile and other things you add to the image?  If so, could you push to github and link that repository from the dockerhub entry?

Regards,

  Phil

madmucho

#2
Hello,
it is simple docker file i putting it here, so you can use it or help me make it better.
after docker image is completed on my NAS I export it as backup and import again, so it basicaly flatten all layers and image is smaller.

FROM debian:jessie
MAINTAINER Chuck Norris
RUN DEBIAN_FRONTEND=noninteractive apt-get update && DEBIAN_FRONTEND=noninteractive  apt-get install apt-utils -y && DEBIAN_FRONTEND=noninteractive apt-get install wget nano -y
RUN echo 'deb http://packages.netxms.org/debian jessie main' >> /etc/apt/sources.list && wget -q -O - http://packages.netxms.org/netxms.gpg | apt-key add -
RUN DEBIAN_FRONTEND=noninteractive apt-get update | apt-get upgrade -y
RUN DEBIAN_FRONTEND=noninteractive apt-get install netxms-server nano snmp -y
COPY *.conf /etc/
RUN mkdir /opt/netxmsdb

RUN nxdbmgr init /usr/share/netxms/sql/dbinit_sqlite.sql
RUN DEBIAN_FRONTEND=noninteractive apt-get remove wget apt-utils -y && DEBIAN_FRONTEND=noninteractive apt-get autoremove -y && DEBIAN_FRONTEND=noninteractive apt-get clean -y
RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp*

VOLUME /opt/netxmsdb
EXPOSE 4700
EXPOSE 4701
EXPOSE 4702
EXPOSE 4747


CMD ["netxmsd", "nxagentd"]


About docker hub, i will think about it, for now, i dont see much reason go there, i will better consult changes here with others. But it is standart i understand.
in atachment two copied configs

madmucho

It has been 5 Years since I created the first netxms docker image and publish it on docker hub, now it is time to update from old debian jessie to buster and server to 3.8.

I do this image and publish it on docker hub, https://hub.docker.com/repository/docker/madmucho/netxms

In this time there are plenty of docker images of netxms in dockerhub repository, i must say i inspire from many of them but many of them is obsolete and dont fit my needs

Main news in 3.8 tag and current latest is that image is put to supervisord control, long running container needs from time to time upgrade some config and packages, make some tweaks, supervisord allow all configured services make changes on fly, start/stop them with no need to reboot container itself.

If you want you can try to use it, test it and let me know you opinion.

Idea of this image is make basic netxms server available fast, image keeps clean and minimalistic, do not take necessary dependencies to base image (not webui, not mta, no docker compose necesary) and allow You to make all this changes if you want them.

Tested on portainer, synology docker package, vps hosting as swarm node.

And at end, i was able to upgrade my old 2.0.2 server instance schema/data to 3.8 just using change netxmsd.conf and mariadb tables ROW_FORMAT=DYNAMIC.
Cheers  ;D