Herder is a tool for automagically generate schedules for your convention
304
Herder is a tool for automagically generate schedules for your convention, given such information as "when", "who's coming" and "what events do they want to attend". It leverages OptaPlanner for constraint satisfaction solving to be able to figure out the best schedule it can given your constraints, or at least the one that violates the smallest number of them.
It's a Clojure(Script) Boot app, with a tiny little bit of Java for helping OptaPlanner along.
boot devThis will get you a running dev setup using h2.
dev boot target builds, tests and runs the system. There's also prod-build which makes a target directory with all the parts in and prod-run which assumes you've done prod-build and runs that.
This uses Docker, PostgreSQL and Let's Encrypt, but if you set DATABASE_URL and HOST you can run this outside of Docker. See docker-compose.yml for information. We're using prebuilt images from Docker Hub using prod-build/prod-run
apt-get install vim curldocker version and then follow https://github.com/docker/compose/releases instructions for latest releasegit clone https://github.com/palfrey/herder.gitcd herderdocker-compose-public.yml. Set VIRTUAL_HOST and LETSENCRYPT_HOST to your host (hereafter assumed to be "herder.example.com"). Set LETSENCRYPT_EMAIL to your email.docker-compose -f docker-compose-public.yml up -ddocker logs -f herder_herder_1 for "Starting #'herder.systems/prod-system" at the end. This takes a bit to occur after the "Postgres is up" linedocker logs -f letsencrypt-nginx-proxy-companion for no ERROR lines ports:
- "3000:3000"
becomes
expose:
- "3000"
and docker-compose -f docker-compose-public.yml up -d, which will stop the port 3000 version being exposed to the outside world.
If you've done the Production setup, backing up your data is good. Here's an example way to backup the Postgres data
apt-get install postgresql-client ssmtp uudeview#!/bin/bash
PGPASSWORD=mysecretpassword pg_dump postgres --host localhost --username=postgres | gzip -c - > backup.sql.gz
echo -e "From: [email protected]\nTo: [email protected]\nSubject: Herder backup\n\n"|uuenview -a -bo backup.sql.gz |sendmail -t
and doing a chmod +x backup.sh
3. To then backup every night at 2am, crontab -e and add the following 0 2 * * * /root/herder/backup.sh (assuming that's the path to backup.sh)
Content type
Image
Digest
Size
332.2 MB
Last updated
almost 8 years ago
docker pull palfrey/herder