Skip to content

GwGibson/ocs-windows-client

Repository files navigation

OCS Quickstart Script

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.

Features

  • 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

Prerequisites

  • Python 3.7 or higher
  • Git
  • Docker

Tested Operating Systems

  • Windows
  • Ubuntu

Usage

  1. 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>
  1. 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
  1. After the script completes, navigate to the ocs-site-configs directory.
cd ocs-site-configs
  1. Start the OCS services using the up script.
python up.py
  1. Navigate to Grafana at http://localhost:3000/. The default Grafana credentials are admin/admin.
  2. To setup the InfluxDB in Grafana, follow the steps in the Grafana Configuration Example.
  3. To stop the services, use the down script.
python down.py

Troubleshooting

If you encounter any issues related to Docker, ensure that the Docker daemon is running on your system.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages