Skip to content

Commit

Permalink
compose & minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimmy Bristow committed Jul 29, 2024
1 parent c2e5fb7 commit d4deb5c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ COPY *.sh /app
RUN chmod +x /app/docker-entrypoint.sh /app/get-package.sh

RUN apt-get update && \
mkdir /app/backups && \
dpkg --print-architecture && \
ARCH=$(dpkg --print-architecture) && \
CODENAME=$(env -i bash -c '. /etc/os-release; echo $VERSION_CODENAME') && \
Expand All @@ -36,4 +37,5 @@ HEALTHCHECK --interval=1m --timeout=5s \
CMD omd status || exit 1

WORKDIR /app
VOLUME [ "/backups" ]
ENTRYPOINT ["/app/docker-entrypoint.sh"]
1 change: 1 addition & 0 deletions docker-compose-ARMv7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ services:
container_name: checkmk
volumes:
- './sites:/opt/omd/sites'
- './backups:/app/backups'
environment:
- CMK_SITE_ID=Monitor
ports:
Expand Down
1 change: 1 addition & 0 deletions docker-compose-ARMv8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ services:
container_name: checkmk
volumes:
- './sites:/opt/omd/sites'
- './backups:/app/backups'
environment:
- CMK_SITE_ID=Monitor
ports:
Expand Down
6 changes: 3 additions & 3 deletions upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ else
echo "Starting upgrade process
fi
echo "Creating a site backup located at: /app/updatebackup.tar"
/usr/bin/omd backup Monitor /app/updatebackup.tar
mkdir /app/backups -p
echo "Creating a site backup located at: /app/backups/updatebackup.tar"
/usr/bin/omd backup Monitor /app/backups/updatebackup.tar
curl https://raw.githubusercontent.com/JzJad/rpi-checkmk/master/get-package.sh | bash
Expand Down

0 comments on commit d4deb5c

Please sign in to comment.