v2.1.1
Released on 31th August 2020
Improvements
- (UI Setup) When the user inputs the password during the UI setup process, the password is not displayed on the terminal. Note that for this setup script to execute as expected, the UI setup process must be executed inside a proper terminal.
- (UI Server) The UI server now requires authentication to get data from any endpoint.
Bug Fixes
- (UI Nodes and Repos pages) The remove button in the Added Nodes/Repos table no longer fails to remove a node from the list if there are more than 9 nodes.
Update Instructions
To update an instance of PANIC to this version, run these commands inside the project directory:
git fetch # Fetch these changes
git checkout v2.1.1 # Switch to this version
# At this stage, you should stop the alerter and the UI
pipenv sync # Update dependenciesThe next step is to follow one of the guides below depending on whether you were running PANIC from source, or using docker-compose.
Running from Source
Restart the UI
Start by navigating into the the UI directory and install the packages defined in package.json:
cd src/web/ui
npm ci --only=production # use sudo in linux if necessaryRe-build the UI, re-direct to the PANIC Polkadot directory, and start the UI
npm run-script build # use sudo in linux if necessary
cd ../../../
bash run_ui_server.shRestart the Alerter
The final step is to restart the alerter. If the alerter was running as a Linux service, the service should now be restarted:
sudo systemctl restart panic_alerterOtherwise, if you are not using Linux services perform this command in the project directory:
pipenv sync
pipenv run python run_alerter.py # use sudo in linux if necessary
# If multiple versions of Python are installed, the python executable may be `python3.6`, `python3.7`, etc.Run using Docker-Compose
Update and Run the UI Container
The first step is to obtain the updated UI docker image. This can either be done by re-building it manually or downloading it from Docker Hub.
Option 1: Building the Docker Image
Run the following command in the project directory to build the image:
docker-compose build uiOption 2: Downloading the Pre-Built Docker Image from Docker Hub
The pre-built Docker image can simply be downloaded by running the following command:
docker pull simplyvc/panic_polkadot_ui:2.1.1Run the UI docker image using this command:
docker-compose up -d uiUpdate and Run the Alerter Container
Start by obtaining the updated alerter docker image. This can either be done by re-building it manually or by downloading it from Docker Hub
Option 1: Building The Docker Image
Run the following command to build the image:
docker-compose build alerterOption 2: Downloading the Pre-Built Docker Image from Docker Hub
The pre-built Docker image can simply be downloaded by running the following command:
docker pull simplyvc/panic_polkadot:2.1.1Now that the Docker image is on your machine, you can run it as follow:
docker-compose up -d alerter