The Dockerfile associated with this image can be used to build an image of the weld seam detection module that is waiting to receive a 3D mesh model of a welding scene from a server and a message to begin the the detection. When it is finished, it returns an array of welding paths.
To use this image, a coordinator server to orchestrate the procedure is required. A server as such is provided in roboweldar.coordinator.
To deploy the image, apart from Docker, the following are required:
-
A computer that has an NVIDIA GPU with CUDA cores.
-
CUDA Drivers. Tested with driver 440 - Cuda 10.2 and driver 450 - Cuda 11.
-
NVIDIA docker. It can be downloaded by following the instructions from the official website or by running the quick installation script for Ubuntu.
The Dockerfile
uses an NVIDIA Docker image as base, Alicevision's Merhroom runtime version 2019.2.0. While inside the root directory of the module, to build the image run
docker build -f docker/Dockerfile -t <component-name> .
Running the image requires to expose ports 3000
and 3001
to the network and the argument --host
to show the IP of the server.
The following are two sample cases:
- Running the image standalone:
docker run --runtime=nvidia -p 3000:3000 -p 3001:3001 -d <component-name> --host <server-ip>
- Running the image in the same host as the server and using the local network:
docker run --runtime=nvidia --network host -d <component-name> --host "localhost"