Once you’ve created a deployed QNX SDP installation, you can transfer it to a Docker image.
sudo docker pull ubuntu
To perform the following steps, you need to use two terminals.
sudo docker run -it --name user_defined_name ubuntu
where user_defined_name is a name that you assign to the container.
In response, the terminal should display this prompt: root@docker_container_ID
cd deployed_qnx710_directory sudo docker cp . user_defined_name:/deployed_qnx710_directory
Return to the first terminal and enter the following commands.
source /qnx710/qnxsdp-env.sh
The default Docker user is root and the home directory is /home/root. When qnxsdp-env.sh is sourced for the first time, it creates a /root/.qnx directory and populates it accordingly.
ln -s /lib64/ld-linux-x86-64.so.2 /lib64/ld-lsb-x86-64.so.3
lmutil lmpath -override qnxlm @server_addresswhere server_address is the IP address of your floating license server.
sudo docker ps
sudo docker commit docker_container_ID image_namewhere image_name is the name you assign to the Docker image.
sudo docker stop user_defined_name sudo docker rm user_defined_name
sudo docker run -it image_name
Your Docker image is now configured to be used in a build server environment. When launching Docker containers of this image, you must source /qnx710/qnxsdp-env.sh in order to set up the environment to build QNX-based applications.