Skip to content

ou-astrophysics/vespa

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Vespa

The SuperWASP Variable Star Photometry Archive.

Running Locally

You can run the latest build of the main branch in Docker with:

docker pull ghcr.io/ou-astrophysics/vespa
docker run -it --rm -p 8080:8080 ghcr.io/ou-astrophysics/vespa

This will run the Django dev server backed by a SQLite database.

You can also use docker-compose:

docker-compose build && docker-compose up

Or without Docker, install Pipenv in you Python environment and run:

pipenv install
./start_server.sh

Data Import

There are three management commands for importing data:

  • python manage.py importclassifications class_top.csv -- this must be run first. It will create database entries for all non-junk classifications.
  • python manage.py importlightcurves results_total.dat -- this imports metadata about the period folding (skipping any records which don't already have database entries).
  • python manage.py importzooniverse superwasp-variable-stars-subjects.csv -- this imports Zooniverse metadata (skipping any records which don't already have database entries).

VPS Services

This is deployed on a VPS with Podman. Here are the initial commands used to set up the services:

podman pod create --name vespa -p 80:80

podman run -d --restart=always --pod=vespa --name vespa-postgres --label "io.containers.autoupdate=image" -v /opt/vespa/psql:/var/lib/postgresql/data:z --env-file /opt/vespa/postgres.env ghcr.io/ou-astrophysics/vespa-postgresql:latest

podman run -d --restart=always --pod=vespa --name vespa-rabbitmq --label "io.containers.autoupdate=image" -v /opt/vespa/rabbitmq/:/var/lib/rabbitmq/:z --env-file /opt/vespa/rabbitmq.env docker.io/rabbitmq:3.8

podman run -d --restart=always --pod=vespa --name vespa-nginx --label "io.containers.autoupdate=image" -v /opt/vespa/nginx.conf:/etc/nginx/nginx.conf:ro -v /opt/vespa/static/:/opt/vespa/static:z -v /srv/www/superwasp-live/media:/opt/vespa/media -v /src/www/superwasp-live/nginx-logs:/var/log/nginx -v /srv/www/superwasp-live/awstats/html:/opt/vespa/stats -v /opt/vespa/awstats.htpasswd:/etc/nginx/awstats.htpasswd docker.io/nginx:1

podman run -d --restart=always --pod=vespa --name=vespa-django --label "io.containers.autoupdate=image"  --env-file /opt/vespa/prod.env -v /opt/vespa/import:/opt/vespa/import:z -v /opt/vespa/static:/opt/vespa/static:z -v /srv/www/superwasp-live/astropy:/opt/vespa/astropy:z -v /srv/www/superwasp-live/media:/opt/vespa/media ghcr.io/ou-astrophysics/vespa

podman run -d --restart=always --pod=vespa --name=vespa-celery --label "io.containers.autoupdate=image"  --env-file /opt/vespa/prod.env -v /opt/vespa/import:/opt/vespa/import:z -v /opt/vespa/static:/opt/vespa/static:z -v /srv/www/superwasp-live/astropy:/opt/vespa/astropy:z -v /srv/www/superwasp-live/media:/opt/vespa/media:z ghcr.io/ou-astrophysics/vespa bash ./start_worker.sh

cd /etc/systemd/system

podman generate systemd --new --name -f vespa

systemctl daemon-reload
systemctl enable pod-vespa.service
systemctl start pod-vespa.service

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Contributors 4

  •  
  •  
  •  
  •  

Languages