Manual Service update#
This section describes the process of migrating to a new version of the Service.
Follow these steps.
Switch to the super user:
sudo su
Place the distribution files in a directory on the server before the installation of a new version of the Service. For example, to the /root directory.
Move the distribution package to the previously created directory (for details see the "Preparing and unpacking the distribution"), or create a new directory if the specified item is missing.
Creating a directory for unpacking the distribution:
mkdir -p /var/lib/point
Moving the distribution:
mv /root/luna_point_1.2.0 /var/lib/point
Go to the distribution package folder:
cd /var/lib/point
Unpack files:
unzip luna_point_1.2.0.zip
Go to the Docker directory of the current version of the Service:
cd /var/lib/point/current/example-docker
Run the command:
docker-compose down
Transfer the settings from the .env configuration file of the previous version of the Service to the new one:
cp /var/lib/point/luna_point_1.2.0/example-docker/.env /var/lib/point/current/example-docker/.env
Go to the distribution package folder:
cd /var/lib/point
Create a symbolic link. The link indicates that it is the current version of the distribution package that is used to run:
ln -s luna_point_1.2.0 current
Copy the necessary component data (for example, filters.json
from the /vlnotifier directory
), if any.
cp -f /var/lib/point/example-docker/vlnotifier/data/filters.json /var/lib/point/current/example-docker/vlnotifier/data/filters.json
Go to the Docker directory of the new version of the Service:
cd /var/lib/point/current/example-docker
To start the Service, enter the command:
./start_point.sh
Check the status of all running Docker-containers:
docker-compose ps
Delete unused containers:
docker-compose up --no-start --remove-orphans