Simple demonstration of running pypylon(https://github.com/basler/pypylon) samples within a docker container.
-
Install latest docker cli/docker daemon by following https://docs.docker.com/install/linux/docker-ce/ubuntu/#install-docker-ce. Follow Install using the repository and Install Docker CE (follow first 2 steps) sections there. Also, follow the manage docker as a non-root user section at https://docs.docker.com/install/linux/linux-postinstall/ to run docker without sudo
-
Download the latest version of BASLER application from HERE (download the .deb file) and put it in a app folder.
-
Building docker container:
$ docker-compose build
-
Running docker container:
$ docker-compose up -d
-
Run this below command to list running containers:
$ docker ps
-
Once you obtain the name of the container from the previous step, run below command to exec into the container:
$ docker exec -it <your_conatiner_name> bash
This should get you inside the docker container with pypylon samples present at (/pypylon/samples).