1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
------
Docker
------
It's as simple as:
$ sudo apt install docker.io config-manager
$ make fetch-sourcedeps
$ make docker-build
$ make docker-run
.. important:
Notice that docker.io can't be run inside a container easily, thus the suggested way to run it is to
install it on your host and run it from there directly (or run everything inside a virtual machine like VirtualBox or KVM).
.. important:
Before running any docker commands you'll need to add yourself to the `docker` group. Otherwise all docker commands will
have to be run as root.
sudo groupadd -a -G docker $USER
sg docker bash
.. note:
You only need to run the `sg` command in the current terminal. The next time you login with your user, you should
already be a part of the docker group.
You can now interact with the service by opening http://localhost:8000 in your browser of choice.
To run the tests simply do:
$ make docker-test
|