1. Installation
The Cybercommons framework is a Django Rest Framework API. The API leverages MongoDB to provide a Catalog and Data Store for storing metadata and data within a JSON document database. The API also includes Celery which is an asynchronous task queue/jobs based on distributed message passing.
1.1. Requirements
Docker
Docker Compose
pip install docker-compose
GNU Make or equivalent
1.2. Installation
Clone Repository
git clone https://github.com/cybercommons/cybercommons.git
Edit values within dc_config/cybercom_config.env
Copy secrets_template.env into secrets.env under the same folder and add required credentials into it.
Initialize database and generate internal SSL certs
make init
Build and Deploy on local system.
make build make superuser make run
Make Django’s static content available. It only needs to be run once or after changing versions of Django.
make collectstatic
API running http://localhost
Admin credentials set from above
make superuser
Shutdown cybercommons
make stop
1.3. cybercommons Installation on servers with a valid domain name.
Edit values within dc_config/cybercom_config.env[NGINX_HOST,NOTIFY_EMAIL,NGINX_TEMPLATE(These values must be set).
Copy secrets_template.env into secrets.env under the same folder and add required credentials into it.
Initialize database and generate internal SSL certs
make init
Initialize and Get TLS certificates from LetsEncrypt
make init_certbot
Build and Deploy on local system.
make build make superuser make run
Make Django’s static content available. This only needs to be ran once or after changing versions of Django.
make collectstatic
API running https://{domain-name-of-server}
Admin credentials set from above
make superuser
Shutdown cybercommons
make stop
1.4. TODO
Integration with Kubernetes