Run FactoryTalk Optix Application in Docker
Run
FactoryTalk Optix Application
in a Docker container based on Debian 10.
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.
Prerequisites:
Download and install Docker. See https://docs.docker.com/get-docker/.
- Prepare aFactoryTalk Optix Studioproject:
- Create a project or open an existing project. See Projects.
- Replace the Native Presentation Engine with a Web Presentation Engine. See Presentation Engines.TIP: Completing this step enables you to access the application interface from a web browser.
- Export theFactoryTalk Optix Studioproject for Debian 64-bit platform to a folder. See Export a FactoryTalk Optix Application to a folder.
- Create aDockerfileinside the folder that contains the exported application.MinimalDockerfileconfiguration example:FROM debian:10 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--namecontainerNameimageTIP: Some plugins may require external libraries to run correctly. See System requirements.
- 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