]> git.ipfire.org Git - thirdparty/FORT-validator.git/commitdiff
Add the option to run from a docker container, add image build to README
authorpcarana <pc.moreno2099@gmail.com>
Tue, 14 Jul 2020 18:52:35 +0000 (13:52 -0500)
committerpcarana <pc.moreno2099@gmail.com>
Tue, 14 Jul 2020 18:52:35 +0000 (13:52 -0500)
docker/README.md
docs/installation.md

index a01bd6b4aae0651104a55e990bb873d497f7fb7c..d9c36fa4d7a3a366fedc1a1533bd6480ffbd9a4c 100644 (file)
@@ -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:
index 88ac4d562105f9a11efbfb436d03bee3d9e65cda..0abf73a80e6b4218128fea7057da58bba576fd40 100644 (file)
@@ -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