Skip to content

wizzu/kompassi

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kompassi Event Management System

Sponsored by Leonidas

Formerly known as Turska and ConDB. Simple web app for managing (Tra)con stuff. Work in progress.

Getting Started

The Easy Way

Provided you have Docker (tested: 17.03 CE) and Docker Compose (tested: 0.11.2), you should get up and running by simply executing

docker-compose up

Now open http://localhost:8000 in your browser. A superuser mahti with password mahti has been created for you.

When the dependencies change, you need to add --build to docker-compose up to rebuild the Docker image.

On first start-up the web and celery containers may fail on start-up due to a race condition between them and the postgres container. To work around this, just stop all the containers by hitting Ctrl+C and run docker-compose up again.

Also on first start-up you may notice internalization is broken. This is because your working copy is bind-mounted into the container in order to facilitate code reload, and your working copy probably does not contain compiled translation files.

To fix this, and to update the translations when you change them (django.po files under appname/locale), run this in another terminal (with the app running under Docker Compose):

docker-compose exec --user root web python manage.py kompassi_i18n -acv2

Run tests:

alias dc-test="docker-compose -f docker-compose.test.yml up --abort-on-container-exit --exit-code-from test"
dc-test

The Hard Way

NOTE: Python 3.6 or greater is required. Python 2.7 is not supported.

python3.6 -m venv venv3-kompassi
source venv3-kompassi/bin/activate
git clone https://github.com/tracon/kompassi.git
cd kompassi
pip install -U pip setuptools wheel
pip install -r requirements.txt
./manage.py setup
./manage.py runserver
iexplore http://localhost:8000

./manage.py setup --test created a test user account mahti with password mahti.

Docker

A Docker image is available as tracon/kompassi. More info to follow.

Kubernetes

Cluster requirements

The following services are required:

Getting these deployed (eg. Docker for Mac):

kubernetes/setup_prerequisites.sh

The Kubernetes templates use emrichen for substituting variables and reducing repetition.

To deploy in a K8s cluster:

kubectl create namespace kompassi
emrichen kubernetes/template.in.yml | kubectl apply -n kompassi -f -

For production, you may want to use an external PostgreSQL (and maybe memcached and RabbitMQ).

Conventions

The 8-8-8-8 Rule: Hostname, database, username, password

All the words hostname, database, username and password are 8 characters in length. They are often abbreviated in wildly different ways. In Kompassi we choose to always use the 8-character versions of them where we get to choose ourselves. Hence the 8-8-8-8 rule.

Correct Incorrect
hostname host
database db, dbname
password pass, passwd
username user, login

License

The MIT License (MIT)

Copyright © 2009–2018 Santtu Pajukanta
Copyright © 2018 Kalle Kivimaa
Copyright © 2017 Tomi Simsiö
Copyright © 2015–2017 Miika Ojamo
Copyright © 2015–2016 Aarni Koskela, Santeri Hiltunen
Copyright © 2014–2016 Jyrki Launonen
Copyright © 2012–2015 Meeri Panula
Copyright © 2009–2015 Jussi Sorjonen
Copyright © 2014 Pekka Wallendahl
Copyright © 2013 Esa Ollitervo
Copyright © 2011 Petri Haikonen

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

For third-party component licenses, see LICENSE.

The work of Santtu Pajukanta on Kompassi has been partially sponsored by Leonidas Oy.

Releases

No releases published

Packages

No packages published

Languages

  • Python 86.5%
  • HTML 8.6%
  • JavaScript 4.4%
  • CSS 0.3%
  • Shell 0.2%
  • PLpgSQL 0.0%