From: pcarana Date: Tue, 14 Jul 2020 18:52:35 +0000 (-0500) Subject: Add the option to run from a docker container, add image build to README X-Git-Tag: v1.4.0~18 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=1c475d17b4d366f97c1cc41662f82f06673e089d;p=thirdparty%2FFORT-validator.git Add the option to run from a docker container, add image build to README --- diff --git a/docker/README.md b/docker/README.md index a01bd6b4..d9c36fa4 100644 --- a/docker/README.md +++ b/docker/README.md @@ -6,6 +6,14 @@ Special thanks to [ximon18](https://github.com/ximon18) for its [contribution](h **This image doesn't include TAL (Trust Anchor Locator) files.** They must be obtained somewhere else (here's [an example](https://github.com/NICMx/FORT-validator/tree/master/examples/tal)). +## Build + +Just run a simple: + +``` +docker build -t fort:latest . +``` + ## Usage By default, the container uses a configuration file located (inside the container) at `/etc/fort/fort.conf`. The file content is: diff --git a/docs/installation.md b/docs/installation.md index 88ac4d56..0abf73a8 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -22,6 +22,7 @@ title: Compilation and Installation 8. [Gentoo version](#gentoo-version) 9. [Alpine version](#alpine-version) 5. [Option 3: Compiling and installing the git repository](#option-3-compiling-and-installing-the-git-repository) +6. [Option 4: Running from a Docker container](#option-4-running-from-a-docker-container) ## Dependencies @@ -346,3 +347,21 @@ cd FORT-validator/ make sudo make install {% endhighlight %} + +## Option 4: Running from a Docker container + +There's also the option to run FORT validator from a Docker container. The Dockerfile to build the image is located at the official Github repository: [FORT-validator/docker](https://github.com/NICMx/FORT-validator/tree/master/docker). + +Once you have the Dockerfile, just run (from the same directory where the Dockerfile is): + +{% highlight bash %} +docker build -t fort:latest . +{% endhighlight %} + +A basic example to run the container using the default values, reading from a local TAL directory (i.e. `host/path/to/tals`), and binding to the local port `8323`: + +{% highlight bash %} +docker run --name fort -v host/path/to/tals:/etc/fort/tal:ro -p 323:323 -d fort +{% endhighlight %} + +Read more about the Docker container at the Github repository [FORT-validator/docker](https://github.com/NICMx/FORT-validator/tree/master/docker). \ No newline at end of file