Skip to content
This repository was archived by the owner on Oct 14, 2020. It is now read-only.

Dev install

Michael edited this page May 28, 2015 · 5 revisions

Ubuntu 15.04

In your shell:

# Update your system // System updaten
sudo apt-get update && sudo apt-get upgrade

# Install dependencies // Benötigte Programme installieren 
sudo apt-get install git docker.io python-pip
pip install -U docker-compose

# Clone git repository // Git-Repository klonen
git clone https://github.com/momorientes/metaEFA.git

# Add your user to the group `docker` // User zur Gruppe `docker` hinzufügen
sudo adduser USERNAME docker

# Log out and in // Neu anmelden

# Optional: Add an alias for `docker-compose`. Add it to your ~/.bashrc or ~/.zshrc to make it permanent.
# Optional: Alias für `docker-compose` anlegen. Zur ~/.bashrc oder ~/.zshrc hinzufügen um den Alias in allen (neuen) Shell-Sitzungen verfügbar zu machen.
alias dc=docker-compose

# Change into the `metaEFA` directory // ins Verzeichnis `metaEFA` wechseln
cd …/metaEFA

# Create the docker containers // Dockercontainer erstellen
docker-compose build
docker-compose run web reset_db
docker-compose run web migrate

# Open shell_plus // shell_plus öffnen
docker-compose run web shell_plus

In the python shell (shell_plus):

# Import VVS stations // VVS Haltestellen importieren
from main.utils import populate_stations
populate_stations()

# Exit with Ctrl-d // shell mit Strg-d beenden
Clone this wiki locally