This script automates the installation and initial configuration of the Observatory Control System (OCS) described in the OCS Installation Guide and in the OCS Quickstart Guide.
- Clones the OCS repository
- Sets up a virtual environment
- Installs required OCS dependencies in the virtual environment
- Configures the Grafana, InfluxDB, and Crossbar components
- Configures the InfluxDB Publisher Agent and Fake Data Agent
- Creates the Docker network that connects the docker compose files
- Generates up and down scripts for easy container management
- Python 3.7 or higher
- Git
- Docker
- Windows
- Ubuntu
- Clone this repository (as of now https://github.com/GwGibson/ocs-windows-client) and navigate to the directory.
git clone <repository-url>
cd <repository-directory>- Run the script. Optionally, specify a custom Grafana Docker image. The default image is
grafana/grafana:latest
python quickstart.py
python quickstart.py --grafana-image grafana/grafana:8.0.0 # Optional: custom Grafana image- After the script completes, navigate to the
ocs-site-configsdirectory.
cd ocs-site-configs- Start the OCS services using the up script.
python up.py- Navigate to Grafana at http://localhost:3000/. The default Grafana credentials are
admin/admin. - To setup the InfluxDB in Grafana, follow the steps in the Grafana Configuration Example.
- To stop the services, use the down script.
python down.pyIf you encounter any issues related to Docker, ensure that the Docker daemon is running on your system.