kinnou02 / navitia-docker-builder

Building navitia images per componant without dependancies to fabric. This is experimental

Home Page:https://github.com/canaltp/navitia

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This project aim at building a set of docker images for navitia. The end result will be three images for jormungandr, kraken and tyr

First step, build the builder:

    docker build -t navitia-builder .

Then use to build the images, you need to mount your docker's socket into the builder. It will compile navitia from scratch and create the images

    docker run -v /var/run/docker.sock:/var/run/docker.sock navitia-builder

This should take a while. Since Navitia isn't really container ready you will need to create some configuration files and mount them in the different containers. You will find example for each file in the example directory

Their is a few external dependancies that are require for navitia to work: - rabbitmq - postgresql - redis

So first we will start our dependencies, we need one postgres database for jormungandr/tyr and one postgis for our instance

docker run --name postgres_jormungandr -e POSTGRES_PASSWORD=navitia -e POSTGRES_USER=jormungandr -d postgres
docker run --name postgres_default -e POSTGRES_PASSWORD=navitia -e POSTGRES_USER=default -d mdillon/postgis
docker run --name rabbitmq rabbitmq:management

About

Building navitia images per componant without dependancies to fabric. This is experimental

https://github.com/canaltp/navitia


Languages

Language:Shell 52.2%Language:Python 47.8%