Run FactoryTalk Optix Application in Docker

Run
FactoryTalk Optix Application
in a Docker container.
TIP:
Running
FactoryTalk Optix Application
in a Docker container is useful for:
  • Deploying a data collector that reads values from multiple production lines and storing them in a data store.
  • Displaying the application UI in a web browser with Web Presentation Engine.
Download and install Docker. See https://docs.docker.com/get-docker/.
  1. Prepare a
    FactoryTalk Optix Studio
    project:
    1. Create a project or open an existing project.
    2. Replace the Native Presentation Engine with a Web Presentation Engine.
      TIP: Completing this step enables you to access the application interface from a web browser.
  2. Export the
    FactoryTalk Optix Studio
    project for Ubuntu 64-bit platform to a folder.
  3. Create a
    Dockerfile
    inside the folder that contains the exported application.
    Minimal
    Dockerfile
    configuration example:
    FROM ubuntu:22_04 LABEL maintainer=
    user_name
    @
    company
    .com WORKDIR /app RUN chmod 777 /app RUN mkdir -p /app/FTOptixApplication ADD FTOptixApplication /app/FTOptixApplication/ CMD /app/FTOptixApplication/FTOptixRuntime -c
  4. Open
    PowerShell
    and:
    1. Navigate to the folder that contains the exported application and the
      Dockerfile
      by entering
      cd
      folder_path
    2. Create a Docker image by entering
      docker build -t
      imageTag
      .
      imageTag
      Image name.
    3. Run the Docker image in a container by entering
      docker run -p
      externalPort
      :
      InternalPort
      --name
      containerName
      image
      externalPort
      An unused port available on the machine that runs the Docker image.
      InternalPort
      In
      FactoryTalk Optix Studio
      , the
      Port
      property value of the Web Presentation Engine object.
      containerName
      The Docker container name.
To access the application web UI, depending on the selected protocol, open one of the following address in your web browser:
  • http://localhost:
    externalPort
  • https://localhost:
    externalPort
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.