@@ -64,9 +64,23 @@ After that, we configure the external repository "Zinnwerk" which provides us wi
...
@@ -64,9 +64,23 @@ After that, we configure the external repository "Zinnwerk" which provides us wi
As a last step, we configure the entry point. The entry point is a script that is started inside the container whenever someone creates runs a container.
As a last step, we configure the entry point. The entry point is a script that is started inside the container whenever someone creates runs a container.
### `entrypoint.sh`
This script is run inside the Docker container. It first creates an `xlerc` file containing instructions to create a parser for the specified grammar and parse the sentence. This file is automatically loaded by XLE on startup.
It then starts the headless X server, waits to ensure it has properly started and then executes the `xle` command. `xle` will load `xlerc`, create a parser, parse the sentence and display windows with the parse results.
As last step, we take a screenshot of the displayed windows, which is the output of the container.
:books: [How do I take a screen shot of my Xvfb buffer?][screenshot]