Deployment
The code can be deployed to a Raspberry PI system with the help of the arpi_managment project. The full installation process is described here! You can also update an existing system by deploying the software components from the source code.
You find how to get the source code here!
Prerequisites¶
- Source code
- Existing running security system accessible with SSH
Deployment configuration¶
The project contains a template file for creating configurations.
Configuration template on GitHub!
- Create a copy of the template.
cp install/install.yaml install/test.yaml
- Update the configuration in the file.
- Use the new file.
The '-e' argument will select the new configuration file.
pipenv run ./install.py -e test {component}
Configuration file name template: 'install/[.< environment >].yaml'
Deploying components¶
# deploying
pipenv run ./install.py server
pipenv run ./install.py monitor
pipenv run ./install.py database
pipenv run ./install.py webapplication
The install script has different option for deploying the components.
- Restarting the component after deployment
- Updating the python virtual environment of server and monitoring components
# deploying and restart
pipenv run ./install.py -r server
pipenv run ./install.py -r monitor
# deploying, update (python virtual environment) and restart
pipenv run ./install.py -ur server
pipenv run ./install.py -ur monitor