Skip to content

Commit

Permalink
Another attemt at getting the Additional Plugins working with Ubuntu 24
Browse files Browse the repository at this point in the history
  • Loading branch information
tronyx committed Jun 10, 2024
1 parent 595e72b commit baf71d9
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 19 deletions.
19 changes: 13 additions & 6 deletions Dockerfile.linux-amd64
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ RUN echo postfix postfix/main_mailer_type string "'Internet Site'" | debconf-set
libgd-gd2-perl \
libjson-perl \
libldap2-dev \
libmysqlclient-dev \
#libmysqlclient-dev \
libmariadb-dev \
libnagios-object-perl \
libmonitoring-plugin-perl \
libnet-snmp-perl \
Expand All @@ -106,8 +107,9 @@ RUN echo postfix postfix/main_mailer_type string "'Internet Site'" | debconf-set
postfix \
#python2 \
python3-full \
python3-pip \
python3-nagiosplugin \
python3-pip \
python3-venv \
rsync \
rsyslog \
runit \
Expand Down Expand Up @@ -227,9 +229,14 @@ RUN cd /opt && \
#python2 get-pip.py && \
#python3 get-pip.py && \
#pip install --no-cache-dir "pymssql<2.2.0" && \
pip3 install --break-system-packages --no-cache-dir pymssql && \
pip3 install --break-system-packages --no-cache-dir --find-links https://wheel-index.linuxserver.io/ubuntu/ pywbem paramiko pplogger paho-mqtt && \
pip3 install --break-system-packages --no-cache-dir --find-links https://wheel-index.linuxserver.io/ubuntu/ --upgrade requests && \
python3 -m venv .venv && \
. .venv/bin/activate && \
#pip3 install --break-system-packages --no-cache-dir pymssql && \
pip3 install --no-cache-dir pymssql && \
#pip3 install --break-system-packages --no-cache-dir --find-links https://wheel-index.linuxserver.io/ubuntu/ pywbem paramiko pplogger paho-mqtt && \
pip3 install --no-cache-dir --find-links https://wheel-index.linuxserver.io/ubuntu/ pywbem paramiko pplogger paho-mqtt && \
#pip3 install --break-system-packages --no-cache-dir --find-links https://wheel-index.linuxserver.io/ubuntu/ --upgrade requests && \
pip3 install --no-cache-dir --find-links https://wheel-index.linuxserver.io/ubuntu/ --upgrade requests && \
git clone https://github.com/willixix/naglio-plugins.git WL-Nagios-Plugins && \
git clone https://github.com/JasonRivers/nagios-plugins.git JR-Nagios-Plugins && \
git clone https://github.com/justintime/nagios-plugins.git JE-Nagios-Plugins && \
Expand Down Expand Up @@ -321,7 +328,7 @@ RUN cd /opt/nagiosgraph/etc && \
sh fix-nagiosgraph-multiple-selection.sh

# Enable all runit services
RUN ln -s /etc/sv/* /etc/service
RUN ln -sf /etc/sv/* /etc/service

# Fix ping permissions for Nagios user
RUN chmod u+s /usr/bin/ping
Expand Down
20 changes: 13 additions & 7 deletions Dockerfile.linux-arm-v7
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ RUN echo postfix postfix/main_mailer_type string "'Internet Site'" | debconf-set
libgd-gd2-perl \
libjson-perl \
libldap2-dev \
libmysqlclient-dev \
#libmysqlclient-dev \
libmariadb-dev \
libnagios-object-perl \
libmonitoring-plugin-perl \
libnet-snmp-perl \
Expand All @@ -106,8 +107,9 @@ RUN echo postfix postfix/main_mailer_type string "'Internet Site'" | debconf-set
postfix \
#python2 \
python3-full \
python3-pip \
python3-nagiosplugin \
python3-pip \
python3-venv \
rsync \
rsyslog \
runit \
Expand Down Expand Up @@ -238,10 +240,14 @@ RUN cd /opt && \
#echo "Cython==0.29.35" >> constraints.txt && \
#export PIP_CONSTRAINT="$(pwd)/constraints.txt" && \
#pip install --no-cache-dir "pymssql<2.2.0" && \
pip3 install --break-system-packages --no-cache-dir pymssql && \
#python3 -m pip install --upgrade pip && \
pip3 install --break-system-packages --no-cache-dir --find-links https://wheel-index.linuxserver.io/ubuntu/ pywbem paramiko pplogger paho-mqtt bcrypt && \
pip3 install --break-system-packages --no-cache-dir --find-links https://wheel-index.linuxserver.io/ubuntu/ --upgrade requests && \
python3 -m venv .venv && \
. .venv/bin/activate && \
#pip3 install --break-system-packages --no-cache-dir pymssql && \
pip3 install --no-cache-dir pymssql && \
#pip3 install --break-system-packages --no-cache-dir --find-links https://wheel-index.linuxserver.io/ubuntu/ pywbem paramiko pplogger paho-mqtt && \
pip3 install --no-cache-dir --find-links https://wheel-index.linuxserver.io/ubuntu/ pywbem paramiko pplogger paho-mqtt && \
#pip3 install --break-system-packages --no-cache-dir --find-links https://wheel-index.linuxserver.io/ubuntu/ --upgrade requests && \
pip3 install --no-cache-dir --find-links https://wheel-index.linuxserver.io/ubuntu/ --upgrade requests && \
git clone https://github.com/willixix/naglio-plugins.git WL-Nagios-Plugins && \
git clone https://github.com/JasonRivers/nagios-plugins.git JR-Nagios-Plugins && \
git clone https://github.com/justintime/nagios-plugins.git JE-Nagios-Plugins && \
Expand Down Expand Up @@ -333,7 +339,7 @@ RUN cd /opt/nagiosgraph/etc && \
sh fix-nagiosgraph-multiple-selection.sh

# Enable all runit services
RUN ln -s /etc/sv/* /etc/service
RUN ln -sf /etc/sv/* /etc/service

# Fix ping permissions for Nagios user
RUN chmod u+s /usr/bin/ping
Expand Down
19 changes: 13 additions & 6 deletions Dockerfile.linux-arm64
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ RUN echo postfix postfix/main_mailer_type string "'Internet Site'" | debconf-set
libgd-gd2-perl \
libjson-perl \
libldap2-dev \
libmysqlclient-dev \
#libmysqlclient-dev \
libmariadb-dev \
libnagios-object-perl \
libmonitoring-plugin-perl \
libnet-snmp-perl \
Expand All @@ -106,8 +107,9 @@ RUN echo postfix postfix/main_mailer_type string "'Internet Site'" | debconf-set
postfix \
#python2 \
python3-full \
python3-pip \
python3-nagiosplugin \
python3-pip \
python3-venv \
rsync \
rsyslog \
runit \
Expand Down Expand Up @@ -233,9 +235,14 @@ RUN cd /opt && \
#echo "Cython==0.29.35" >> constraints.txt && \
#export PIP_CONSTRAINT="$(pwd)/constraints.txt" && \
#pip install --no-cache-dir "pymssql<2.2.0" && \
pip3 install --break-system-packages --no-cache-dir pymssql && \
pip3 install --break-system-packages --no-cache-dir --find-links https://wheel-index.linuxserver.io/ubuntu/ pywbem paramiko pplogger paho-mqtt && \
pip3 install --break-system-packages --no-cache-dir --find-links https://wheel-index.linuxserver.io/ubuntu/ --upgrade requests && \
python3 -m venv .venv && \
. .venv/bin/activate && \
#pip3 install --break-system-packages --no-cache-dir pymssql && \
pip3 install --no-cache-dir pymssql && \
#pip3 install --break-system-packages --no-cache-dir --find-links https://wheel-index.linuxserver.io/ubuntu/ pywbem paramiko pplogger paho-mqtt && \
pip3 install --no-cache-dir --find-links https://wheel-index.linuxserver.io/ubuntu/ pywbem paramiko pplogger paho-mqtt && \
#pip3 install --break-system-packages --no-cache-dir --find-links https://wheel-index.linuxserver.io/ubuntu/ --upgrade requests && \
pip3 install --no-cache-dir --find-links https://wheel-index.linuxserver.io/ubuntu/ --upgrade requests && \
git clone https://github.com/willixix/naglio-plugins.git WL-Nagios-Plugins && \
git clone https://github.com/JasonRivers/nagios-plugins.git JR-Nagios-Plugins && \
git clone https://github.com/justintime/nagios-plugins.git JE-Nagios-Plugins && \
Expand Down Expand Up @@ -327,7 +334,7 @@ RUN cd /opt/nagiosgraph/etc && \
sh fix-nagiosgraph-multiple-selection.sh

# Enable all runit services
RUN ln -s /etc/sv/* /etc/service
RUN ln -sf /etc/sv/* /etc/service

# Fix ping permissions for Nagios user
RUN chmod u+s /usr/bin/ping
Expand Down

0 comments on commit baf71d9

Please sign in to comment.