Skip to content

Files

Failed to load latest commit information.

Latest commit

 Cannot retrieve latest commit at this time.

History

History

docker

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

kathara-lab-checker - Docker

This guide explains how to build a Docker image based on DinD containing both Kathará and the lab-checker.

Build the image

Open a terminal in this directory and type:

docker build -t kathara/lab-checker .

Run the image

To run the image execute the following command:

docker run -it --privileged -d --name lab-checker kathara/lab-checker

To connect to the container:

docker exec -it lab-checker bash

Run the example on Docker

To run the example on the container, we need to mount the example directory:

docker run -it --privileged -d --name lab-checker -v <absolute-path-to-the-examples-dir>:/example kathara/lab-checker

Substitute <absolute-path-to-the-examples-dir> with the absolute of the examples path on your host.

To connect to the container:

docker exec -it lab-checker bash

For running the example, type the following commands inside the container:

python3 -m kathara_lab_checker --config examples/palabra/correction.json --no-cache --labs examples/palabra/labs