Add Netdata to app page

This commit is contained in:
Taylor Helsper 2021-07-12 22:15:22 -05:00
parent f4ba553d56
commit 7db323f8a9
7 changed files with 24 additions and 3 deletions

View File

@ -23,8 +23,23 @@ while true; do
# Pull images that don't need to be built
# ???
# Upgrade WebSSH2
# Upgrade Netdata
echo "Checking for new netdata..."
CURRENT=""
if [ -f $NETDATA_VERSION_FILE ]; then
CURRENT=$(cat $NETDATA_VERSION_FILE)
fi
if [ "$CURRENT" != "$NETDATA_VERSION" ]; then
docker rmi $(docker images --format '{{.Repository}}:{{.Tag}}' | grep 'netdata') || true
docker pull netdata/netdata:${NETDATA_VERSION}
echo $NETDATA_VERSION > $NETDATA_VERSION_FILE
fi
touch /tmp/need_application_refresh
# Upgrade WebSSH2
echo "Checking for new webssh2..."
WEBSSH2_UPGRADE_URL=https://github.com/billchurch/webssh2/archive/${WEBSSH2_VERSION}.tar.gz
CURRENT=""

View File

@ -517,6 +517,7 @@ fi
# Setup Netdata
mkdir -p /opt/mynode/netdata
cp -f /usr/share/mynode/netdata-compose.yml /opt/mynode/netdata/netdata-compose.yml
echo "NETDATA_VERSION=${NETDATA_VERSION}" > /opt/mynode/netdata/.env
cp -f /usr/share/mynode/netdata.conf /opt/mynode/netdata/netdata.conf
# Setup webssh2

View File

@ -27,6 +27,7 @@ echo $LNDCONNECT_VERSION > $LNDCONNECT_LATEST_VERSION_FILE
echo $CKBUNKER_VERSION > $CKBUNKER_LATEST_VERSION_FILE
echo $BOS_VERSION > $BOS_LATEST_VERSION_FILE
echo $SPHINXRELAY_VERSION > $SPHINXRELAY_LATEST_VERSION_FILE
echo $NETDATA_VERSION > $NETDATA_LATEST_VERSION_FILE
echo $WEBSSH2_VERSION > $WEBSSH2_LATEST_VERSION_FILE
echo $PYBLOCK_VERSION > $PYBLOCK_LATEST_VERSION_FILE
echo $WARDEN_VERSION > $WARDEN_LATEST_VERSION_FILE

View File

@ -253,7 +253,7 @@
{
"name": "Netdata",
"short_name": "netdata",
"show_on_application_page": false
"can_reinstall": false
},
{
"name": "Tor",

View File

@ -121,6 +121,10 @@ WARDEN_VERSION="0.91"
WARDEN_VERSION_FILE=/home/bitcoin/.mynode/warden_version
WARDEN_LATEST_VERSION_FILE=/home/bitcoin/.mynode/warden_version_latest
NETDATA_VERSION="v1.19.0"
NETDATA_VERSION_FILE=/mnt/hdd/mynode/settings/netdata_version
NETDATA_LATEST_VERSION_FILE=/mnt/hdd/mynode/settings/netdata_version_latest
WEBSSH2_VERSION="v0.2.10-0"
WEBSSH2_VERSION_FILE=/mnt/hdd/mynode/settings/webssh2_version
WEBSSH2_LATEST_VERSION_FILE=/mnt/hdd/mynode/settings/webssh2_version_latest

View File

@ -1,7 +1,7 @@
version: '3'
services:
netdata:
image: netdata/netdata:v1.19.0
image: netdata/netdata:${NETDATA_VERSION}
hostname: mynode.local # set to fqdn of host
ports:
- 19999:19999

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB