Verified Commit 11ae2063 authored by Peter Stanko's avatar Peter Stanko
Browse files

Instructions to run the platform

parent 5874e44b
Loading
Loading
Loading
Loading

platform/README.adoc

0 → 100644
+65 −0
Original line number Original line Diff line number Diff line
= Run the platform


== Instructions

The simplest way is to build all the images and then run the `docker-compose up`

=== Prepare the main directory

Somewhere on your file system create main directory for kontr repositories, for example:

[source, shell]
----
$ mkdir $HOME/kontr
$ cd $HOME/kontr
----

=== Checkout main kontr dictionaries

Required are only, `portal`,`kontr-worker` and `docker`

[source, shell]
----
$ git clone https://gitlab.fi.muni.cz/grp-kontr2/docker.git
$ git clone https://gitlab.fi.muni.cz/grp-kontr2/portal.git
$ git clone https://gitlab.fi.muni.cz/grp-kontr2/kontr-worker.git
$ git clone https://gitlab.fi.muni.cz/grp-kontr2/kontrctl.git
$ git clone https://gitlab.fi.muni.cz/grp-kontr2/portal-frontend.git
----

=== Go to the `docker/platform`

Go to the docker platform directory

[source, shell]
----
$ cd docker/platform
----


=== Run the build

Run the `docker-compose build`

[source, shell]
----
$ docker-compose build
----

Wait for build to end.


=== Start the whole platform

Will start the whole backend - portal, worker, celery workers for each component, redis, and postgres.

[source, shell]
----
$ docker-compose up
----