Running in a Docker Container
![]() | Using Iotellect Server in a container will be successful only when using a license server with a complex license that’s not relying to activation keys. |
To install Iotellect into a Docker, proceed as follows:
1. Install Docker in a way suitable for your OS, for example:
$ apt-get install docker
2. Run Iotellect installer:
$ ./<Iotellect_full_x.x.x_unix-x64.sh>
3. Go to Iotellect directory:
$ cd /opt/Iotellect
4. Create a file with name Dockerfile
in this directory and fill it with the following text:
# Dockerfile
# OS template
FROM centos:7
# Working Iotellect dir in docker image
WORKDIR /Iotellect
ADD ./Iotellect
# Next lines needs to enable working with widgets
RUN yum install -y xorg-x11-server-Xvfb
RUN yum install -y libXrender.x86_64
RUN yum install -y libXtst.x86_64
RUN yum install -y which
# Ports opened from docker. You could add all needed ports
EXPOSE 6460
EXPOSE 8080
EXPOSE 6480
CMD xvfb-run --auto-servernum ./iot_server -r
5. Run the docker build process:
$ docker build -t Iotellect .
6. Check the created image in the local docker registry:
root@ubuntu:/opt/Iotellect # docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
Iotellect latest 32a4dd3d23e8 4 hours ago 1.272 GB
centos 7 328edcd84f1b 2 weeks ago 192.5 MB
7. Now you can run the application from the docker image:
$ docker run Iotellect
In addition, you can create a volume for storing data and mount it to docker.
Was this page helpful?