4.0 KiB
Resgrid Cloudron Package Build Notes
This document provides instructions for building, testing, and deploying the Resgrid Cloudron package.
Package Overview
Resgrid is an open-source Computer Aided Dispatch (CAD), Personnel, Shift Management, Automatic Vehicle Location (AVL), and Emergency Management Platform. This Cloudron package installs Resgrid with the following components:
- Resgrid Web Core (user interface)
- Resgrid Web Services (API backend)
- Resgrid Workers Console (background processing)
- Resgrid Events Service (real-time notifications using SignalR)
Prerequisites
- Cloudron server (version 7.2.0 or higher)
- Docker installed on your build machine
- Git installed on your build machine
- About 2GB+ of RAM available on your Cloudron server
- MySQL, Redis, and RabbitMQ addons available on your Cloudron server
Build Instructions
-
Clone the repository to your local machine:
git clone https://github.com/yourusername/cloudron-resgrid.git cd cloudron-resgrid
-
Download the Resgrid logo and save it as
logo.png
in the package directory:curl -o logo.png https://resgrid.com/images/logo.png
-
Build the Cloudron package:
cloudron build
-
If successful, the package file will be created in the current directory with a
.tar.gz
extension.
Deployment Instructions
Method 1: Direct Installation from Package
-
Install the package on your Cloudron server:
cloudron install —image resgrid.tar.gz
-
Follow the on-screen instructions to complete the installation.
Method 2: Using the Cloudron App Store (if published)
- Log into your Cloudron dashboard
- Go to App Store
- Search for “Resgrid”
- Click “Install”
- Follow the on-screen instructions
Post-Installation Configuration
After installation, you should:
-
Log in with the default admin credentials:
- Username: admin@example.com
- Password: (Auto-generated, check Cloudron post-install message)
-
Change the default admin password
-
Configure your department settings:
- Set the department name
- Configure time zone
- Set up groups and roles
-
If using Cloudron SSO (recommended):
- The app is already configured to use Cloudron’s OIDC provider
- Users who log in via SSO will be created in Resgrid automatically
- You’ll need to assign appropriate roles to these users in the Resgrid admin interface
Troubleshooting
Database Connection Issues
If you encounter database connection issues:
- Check the logs via the Cloudron dashboard
- Verify the MySQL addon is running
- Ensure the database credentials are correctly configured
Redis or RabbitMQ Issues
- Check the logs for connection errors
- Verify the addons are running
- Restart the app if necessary:
cloudron restart —app resgrid.yourdomain.com
Container Startup Problems
If one or more containers fail to start:
- SSH into the app:
cloudron exec —app resgrid.yourdomain.com
- Check Docker container status:
docker ps -a | grep resgrid
- View container logs:
docker logs resgrid-web
(or replace with the problematic container name)
Backup and Restore
The Cloudron platform automatically backs up all Resgrid data stored in:
- MySQL database (via the MySQL addon)
- Redis (via the Redis addon)
- RabbitMQ (via the RabbitMQ addon)
- Local files in
/app/data
(file uploads, configuration, etc.)
To manually create a backup:
cloudron backup create —app resgrid.yourdomain.com
To restore from a backup:
cloudron restore —app resgrid.yourdomain.com —backup backup_id
Updating
When a new version of the Resgrid Cloudron package is available:
- Download the new package version
- Update your existing installation:
cloudron update —app resgrid.yourdomain.com —image new-resgrid.tar.gz