Last active
April 13, 2023 20:13
-
-
Save alxrogan/c3574370d6e753879dc7fba7ef510271 to your computer and use it in GitHub Desktop.
Dockerfile for genmon
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# syntax=docker/dockerfile:1.2 | |
FROM ubuntu:focal | |
WORKDIR /tmp | |
RUN apt update \ | |
&& apt -y upgrade \ | |
&& DEBIAN_FRONTEND="noninteractive" TZ="America/Chicago" apt install -yq sudo cron curl nano git \ | |
build-essential libssl-dev libffi-dev \ | |
python3-dev tzdata python3-pip cmake apt-utils \ | |
&& apt-get autoremove -y \ | |
&& apt-get clean | |
ADD https://github.com/jgyates/genmon/raw/master/requirements.txt /tmp | |
RUN --mount=type=cache,mode=0755,target=/root/.cache pip install -r requirements.txt | |
RUN mkdir /git && cd /git && git clone https://github.com/jgyates/genmon.git && cd genmon && sudo chmod 775 startgenmon.sh && chmod 775 genmonmaint.sh | |
VOLUME /etc/genmon | |
VOLUME /var/log | |
EXPOSE 443 | |
EXPOSE 8000 | |
CMD bash -c "/git/genmon/startgenmon.sh -p 3 start && tail -f /dev/null" | |
## After first run Modify /etc/genmon/genmon.conf to disable serial and enable serial over TCP or the services won't start up. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment