Skip to content

Latest commit

 

History

History
72 lines (48 loc) · 2.16 KB

README.md

File metadata and controls

72 lines (48 loc) · 2.16 KB

mySAGW

!!!WIP!!!

Build Status Coverage Black License: GPL-3.0-or-later

Application management for SAGW

Getting started

Installation (dev)

Requirements

  • docker
  • docker-compose

After installing and configuring those, download docker-compose.yml and run the following command:

echo "UID=$(id -u)" > .env
docker-compose up -d

Load the config data into Caluma:

make caluma-loadconfig

Add mysagw.local to /etc/hosts:

echo "127.0.0.1 mysagw.local" | sudo tee -a /etc/hosts

You can now access the application under the following URIs:

Configuration

mySAGW is a 12factor app which means that configuration is stored in environment variables. Different environment variable types are explained at django-environ.

Deployment

cp -r ./.envs/.production.example ./.envs/.production

Then edit the files under ./.envs/.production/ to your needs.

For the staging envireonment, copy to ./.envs/.staging/.

echo -e "UID=$(id -u)\nCOMPOSE_FILE=docker-compose.yml:docker-compose.prod.yml" > .env
# on staging environments:
# echo -e "UID=$(id -u)\nCOMPOSE_FILE=docker-compose.yml:docker-compose.staging.yml" > .env
docker-compose up -d
make caluma-loadconfig

Contributing

Look at our contributing guidelines to start with your first contribution.