2021-03-29 08:52:45 -07:00
|
|
|
# OpenBMP docker files
|
|
|
|
|
Docker files for OpenBMP.
|
|
|
|
|
|
2021-03-29 11:13:57 -07:00
|
|
|
## (Prerequisite) Platform Docker Install
|
2021-03-29 08:52:45 -07:00
|
|
|
|
|
|
|
|
> Ignore this step if you already have a current docker install
|
|
|
|
|
|
2021-03-29 11:13:57 -07:00
|
|
|
> **NOTE**
|
2021-03-29 08:52:45 -07:00
|
|
|
> You should use the latest docker version, documented in this section.
|
|
|
|
|
|
|
|
|
|
Follow the instructions on https://docs.docker.com/get-docker/
|
|
|
|
|
|
|
|
|
|
### Optionally add a non-root user to run docker as
|
|
|
|
|
usermod -aG docker ubuntu
|
|
|
|
|
|
|
|
|
|
# Logout and log back so the group takes affect.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Optionally configure **/etc/default/docker** (e.g. for proxy config)
|
|
|
|
|
|
|
|
|
|
export http_proxy="http://proxy:80/"
|
|
|
|
|
export https_proxy="http://proxy:80/"
|
|
|
|
|
export no_proxy="127.0.0.1,openbmp.org,/var/run/docker.sock"
|
|
|
|
|
|
|
|
|
|
Make sure you can run '**docker run hello-world**' successfully.
|
|
|
|
|
|
|
|
|
|
|
2021-03-29 11:13:57 -07:00
|
|
|
## OpenBMP Docker Files
|
2021-03-29 08:52:45 -07:00
|
|
|
Each docker file contains a readme file, see below:
|
|
|
|
|
|
|
|
|
|
* [Collector](collector/README.md)
|
|
|
|
|
* [PostgreSQL](postgres/README.md)
|
2021-03-29 11:13:57 -07:00
|
|
|
* [PSQL Consumer](psql-consumer/README.md)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Using Docker Compose to run everything
|
2021-03-29 08:52:45 -07:00
|
|
|
|
2021-03-29 11:13:57 -07:00
|
|
|
### Install Docker Compose
|
|
|
|
|
You will need docker-compose. You can install that via [Docker Compose](https://docs.docker.com/compose/install/)
|
|
|
|
|
instructions. Docker compose will run everything, including handling restarts of containers.
|
2021-03-29 08:52:45 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
```
|
2021-03-29 11:13:57 -07:00
|
|
|
docker-compose -p obmp up
|
2021-03-29 08:52:45 -07:00
|
|
|
```
|
|
|
|
|
|