1
0
Fork 0
satnogs-db/docs/installation-docker.rst

45 lines
1.0 KiB
ReStructuredText
Raw Permalink Normal View History

2017-03-13 11:15:06 -06:00
Docker Installation
===================
#. **Requirements**
You will need `docker <https://docs.docker.com/installation/#installation>`_ and `docker-compose <https://docs.docker.com/compose/install/>`_.
#. **Get the source code**
2017-03-13 11:15:06 -06:00
2017-10-02 06:55:43 -06:00
Clone source code from the `repository <https://gitlab.com/librespacefoundation/satnogs/satnogs-db>`_::
2017-03-13 11:15:06 -06:00
2017-10-02 06:55:43 -06:00
$ git clone https://gitlab.com/librespacefoundation/satnogs/satnogs-db.git
2017-03-13 11:15:06 -06:00
$ cd satnogs-db
#. **Configure settings**
2017-03-13 11:15:06 -06:00
Set your environmental variables::
$ cp env-dist .env
2017-03-13 11:15:06 -06:00
#. **Install frontend dependencies**
Install dependencies with ``npm``::
$ npm install
Test and copy the newly downlodaded static assets::
$ ./node_modules/.bin/gulp
#. **Run it!**
2017-03-13 11:15:06 -06:00
Run satnogs-db::
2017-03-13 11:15:06 -06:00
$ docker-compose up -d --build
2017-03-13 11:15:06 -06:00
#. **Populate database**
2017-03-13 11:15:06 -06:00
Create, setup and populate the database with demo data::
2017-03-13 11:15:06 -06:00
$ docker-compose exec web djangoctl.sh initialize
2017-03-13 11:15:06 -06:00
Your satnogs-db development instance is available in localhost:8000. Go hack!