Creating Experiment Report
In this lesson, we will be using a Docker container to handle dependencies and generating the experiment report.
Now that we have the journal with all the information, let’s convert JSON into something more humanly readable. We’re going to choose PDF, even though we could use some other format. For example, it could be HTML, which is useful if we would like to publish it online. However, we’re going to choose PDF because I will imagine that the goal is to hand over a document, either to your colleagues or to managers.
Now we’re getting to the potentially problematic part.
Docker for handling dependencies
To create a report, we need to install quite a few dependencies, and they can be tricky to install. Therefore, we’re going to skip trying to figure out all the dependencies we might need to install and configure. Instead, we’re going to run it as a container. To be more precise, we’re going to run a process to create a report through Docker.
Make sure that you have Docker up and running on your laptop. If you don’t have it already, go to the Docker Engine Overview page and install the version for your platform.
Once Docker is up and running, we can create a container that will generate a report based on the journal file we created earlier.
Creating the Docker container and generating report
The command we are about to execute will be slightly longer than we’re used to. If that’s too much for you and your colleagues, you can convert it into a script, so that it’s a bit easier to run.
Get hands-on with 1200+ tech skills courses.