This project is a blueprint on how to build a standalone submodel component and provide it as a Docker Image.
- ExampleSubmodelFactory: Creates a submodel with Id Example and two SubmodelElements:
- Property test with value 123
- Operation square that takes a property and squares its value
- ExampleSubmodelConfiguration: Contains the spring setup
- ExampleSubmodelComponent: Starts the ExampleSubmodelComponent
The standalone submodel can be build as docker image via:
mvn clean install -Ddocker.namespace=yournamespace
For image name configuration, see the docker.image.name property in pom.xml.
After successful installation, the container can be access on http://localhost:8081/submodel after being started via:
docker run -p 8081:8081 testnamespace/standalone_submodel_example:2.0.0-SNAPSHOT