Create Docker Container with tiscamera and tcam-capture

From The Imaging Source Knowledgebase
Jump to navigation Jump to search

Create a directory "tiscamera" and copy the following needed deb files into it:

  • tcamdutils_*_amd64.deb
  • tiscamera_*_amd64_ubuntu_1804.deb

from The Imaging Source Downloads

Now create a "Dockerfile" with following content:

FROM ubuntu
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get -y update
RUN apt-get -y install libgstreamer1.0-0 
RUN apt-get -y install gstreamer1.0-tools 
COPY ./tiscamera_1.0.0.4005_amd64_ubuntu_1804.deb /
RUN apt install -y /tiscamera_1.0.0.4005_amd64_ubuntu_1804.deb
COPY ./tcamdutils_1.0.0.560_amd64.deb /
RUN apt install -y /tcamdutils_1.0.0.560_amd64.deb
RUN groupadd -g 1000 tcam
RUN useradd -d /home/tcam -s /bin/bash -m tcam -u 1000 -g 1000
USER tcam
ENV HOME /home/tcam
CMD /usr/bin/tcam-capture

Building the container:

sudo docker build -t tiscamera .


sudo docker run -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY -h $HOSTNAME -v $HOME/.Xauthority:/home/tcam/.Xauthority --net host --privileged --volume=/dev:/dev:rw tiscamera

For further questions, please use our contact form