Skip to content

Latest commit

 

History

History
56 lines (40 loc) · 1.9 KB

README.md

File metadata and controls

56 lines (40 loc) · 1.9 KB

Docker-based demo setup

Prerequisites

Running

  • From the root folder in the project ../, run
docker-compose -f docker/docker-compose.yml up --build

Debugging

  • After running npm manually, it might be necessary to delete the local packages, by deleting the folder ../www/node_modules. (On linux and mac, run rm -rf www/node_modules)

  • To get shell access into one of the docker images, run docker container ls while they are runing, and then docker exec -it <continaer-id> /bin/bash

  • For container logs, run docker container logs <contiainer-id> (Get container id with docker container ls while container is running)

Running and building faster

To start the containers faster when there are no changes to the docker setup, dont build:

docker-compose -f docker/docker-compose.yml up

Symbol-translator

The symbol-translator api swagger openpi is at http://localhost:5000/swagger (To disable swagger, remove the Development env in the symbol-translator Dockerfile)

The api itself is available at http://localhost:5000/symbol

To test, try f.ex.

curl http://localhost:5000/symbol/PF009A

which will give you

{
  "id":"PF009A",
  "description":"Flow T. Flow Glass",
  "labelAttributeA":"<ProcessPlantIdentificationCode>-<PlantSystemIdentificationCode>",
  "labelAttributeB":"<TagType>",
  "labelAttributeC":"<TagSequence><TagSuffix>",
  "labelAttributeD":"",
  "labelAttributeE":""
}