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/.
- Prepare aFactoryTalk Optix Studioproject:
- Create a project or open an existing project.
- 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.
- Export theFactoryTalk Optix Studioproject for Ubuntu 64-bit platform to a folder.
- Create aDockerfileinside the folder that contains the exported application.MinimalDockerfileconfiguration 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
- OpenPowerShelland:
- Navigate to the folder that contains the exported application and theDockerfileby enteringcdfolder_path
- Create a Docker image by enteringdocker build -t.imageTag
- imageTag
- Image name.
- Run the Docker image in a container by enteringdocker run -pexternalPort:InternalPort--namecontainerNameimage
- externalPort
- An unused port available on the machine that runs the Docker image.
- InternalPort
- InFactoryTalk Optix Studio, thePortproperty 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