2020-07-03 14:32:50 +00:00
# Reviewboard in a container
2020-07-03 15:44:36 +00:00
## Preparation
2020-07-03 14:32:50 +00:00
* Create a database and a database user on a MariaDB/MySQL server, grant all privileges on all tables of that database to that user
* If you want to inject custom CA certificates for repository access, create a volume, put these certificates (use the extension .ext) into and mount it to `/usr/local/share/ca-certificates/` of the container when starting it.
2020-07-03 15:44:36 +00:00
## Example Start script
2020-07-03 14:34:19 +00:00
< pre >
< code >
2020-07-03 14:32:50 +00:00
docker run \
-d \
--rm \
--name reviews \
-p 8080:80 \
-e DBHOST=10.8.10.5 \
-e DBNAME=reviewboard \
-e DBUSER=reviewboard \
-e DBPASS=test123 \
-e ADMINPASS=test123 \
2020-07-03 14:56:27 +00:00
-e SITEROOT=reviews \
2020-07-03 14:32:50 +00:00
-v RB_CERTS:/usr/local/share/ca-certificates/ \
2020-07-03 14:34:19 +00:00
wollud1969/reviewboard
< / code >
< / pre >
2020-07-03 15:44:36 +00:00
## Reverse Proxy configuration
2020-07-03 15:49:53 +00:00
```
2020-07-03 15:49:29 +00:00
< VirtualHost 0 . 0 . 0 . 0:443 >
2020-07-03 15:44:36 +00:00
ServerName ...
ServerAlias ...
CustomLog /usr/local/apache2/logs/access.log combined
ErrorLog /usr/local/apache2/logs/error.log
< Location / reviews / >
ProxyPass "http://servicehost:8082/reviews/" nocanon
ProxyPassReverse "http://servicehost:8082/reviews/"
ProxyPreserveHost On
RequestHeader set X-Forwarded-Proto "https"
< / Location >
SSLCertificateKeyFile ...
SSLCertificateFile ...
SSLCACertificateFile ...
SSLEngine on
< / VirtualHost >
2020-07-03 15:49:29 +00:00
```
2020-07-03 14:32:50 +00:00
2020-07-03 15:44:36 +00:00
The `Location` shall match to the `SITEROOT` set when starting the container.
2020-07-03 14:32:50 +00:00