Create a Docker image with a FactoryTalk Optix Application

Create a Docker image with a FactoryTalk Optix Application

Create a
Docker®
image with
FactoryTalk Optix Runtime
based on
Ubuntu®
22.04 x86 64-bit.
Prerequisites
Download and install
Docker
.
IMPORTANT:
Rockwell Automation
is not responsible for any third-party software, including but not limited to its performance, security, updates, or compatibility with our products. Any use of third-party software is at your own risk, and we do not provide support, warranties, or guarantees for such software. Users should refer to the respective third-party providers for assistance and licensing terms.
  1. To create a Docker image with a FactoryTalk Optix Application
  2. In
    FactoryTalk Optix Studio
    :
    1. Prepare a project to run in a
      Docker
      container. See Projects.
      TIP: (optional) If your application has GUI, replace the native presentation engine with a web presentation engine to access the application interface through web. See Presentation engines.
    2. Export the project for
      Ubuntu 22.04 x86 64-bit
      platform. See Export a FactoryTalk Optix Application.
  3. In an editor of choice, create a
    Dockerfile
    inside the folder that contains the exported application folder.
    Consider the following expected folder structure:
    C:\ exported_application_folder\ Dockerfile
    Consider the following minimal
    Dockerfile
    configuration:
    # Base image Ubuntu_22_x64 FROM ubuntu:22.04 SHELL ["/bin/bash", "-c"] # Install dependencies and clean output image RUN apt-get update RUN apt-get install -y libxcb-cursor0 libglib2.0-bin libltdl7 libevent-dev -qq RUN apt-get autoremove -y && apt-get clean -y && apt-get autoclean -y # Copy the FactoryTalk Optix Application COPY ./FTOptixApplication /root/FTOptixApplication RUN chmod +x /root/FTOptixApplication/FTOptixRuntime # Default entry is the FactoryTalk Optix Application ENTRYPOINT ["/root/FTOptixApplication/FTOptixRuntime", "-c"]
  4. In the terminal, create a
    Docker
    image by entering
    docker build -t
    image_name
    dockerfile_folder
    image_name
    The name of the image. For example:
    ftoptix-runtime
    dockerfile_folder
    Path to the folder that contains the
    Dockerfile
    and the exported application.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.