Part of the OpenTOSCA Ecosystem
The OpenTOSCA Container is java/maven based runtime for deploying and managing TOSCA-based applications. The backend uses Winery therefore all CSAR exported from a Winery repository should be compatible within the runtime.
master is the main development branch, the stable branch represents the latest stable branch and is also available as tags
- Run
git update-index --assume-unchanged ./org.opentosca.container.core/src/main/resources/application.propertiesto ignore custom configuration changes inside the application.properties. - Update application.properties and replace
localhostwith your external IP address, e.g.,192.168.1.100. - Run
mvn package -DskipTestsinside the root folder to build without tests (See also Tests in the next section). - Afterwards, the OpenTOSCA-container.war can be deployed using a tomcat webserver.
- Update application.properties and replace
localhostwith your external IP address, e.g.,192.168.1.100. - Be sure that your Dockerengine is running and is accessible via its REST API on tcp://your-ip:2375 (Or you change the port in the test cases under
org.opentosca.container.war/src/test). - Make sure the docker containers defined in
./test.ymlare running (E.g. viadocker compose -f test.yml up) and the ports match the ports in your application.properties. - Afterwards, you can either start the test via
mvn packageor start the JUnit tests underorg.opentosca.container.war/src/testwithin your preferred IDE directly. - The test cases download the test applications from the test repository themselves. However, you can configure to use a local clone or another test repository by adding the line
org.opentosca.test.local.repository.path=/path/to/repository/tosca-definitions-test-applicationsto application.properties.
- Open the project using
File>Openand navigate to the container folder. - Right click the pom.xml and select
Add as Maven project. - Run the
Containerrun configuration.
- Import project via
Import existing maven projects.. - Add created war file of project
org.opentosca.container.warto suitable server configured within your eclipse, e.g., Tomcat - (AdditionalInfo) Usually the application runs on port 1337 and without a prefix in the path -> change port of tomcat to 1337 and remove the path of the added WAR project
- Run
mvn installin root of project - Go to directory
org.opentosca.container.warand runmvn spring-boot:runand the runtime should be available under localhost:1337
- Run
mvn release:update-versions -DautoVersionSubmodules=trueand set the version to the prefered version for the container, or just usemvn --batch-mode release:update-versions -DautoVersionSubmodules=trueto increment the current version. Remove -SNAPSHOT viamvn versions:set -DremoveSnapshotMore Info - Lock winery SNAPSHOT version via
mvn versions:lock-snapshots - Then run
git tag <tagname>where tagname is the version and if a major release add name to it, afterwards rungit push origin --tags
Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
Dies ist ein Forschungsprototyp. Die Haftung für entgangenen Gewinn, Produktionsausfall, Betriebsunterbrechung, entgangene Nutzungen, Verlust von Daten und Informationen, Finanzierungsaufwendungen sowie sonstige Vermögens- und Folgeschäden ist, außer in Fällen von grober Fahrlässigkeit, Vorsatz und Personenschäden, ausgeschlossen.
The initial code contribution has been supported by the Federal Ministry for Economic Affairs and Energy as part of the CloudCycle project (01MD11023). Current development is supported by the Federal Ministry for Economic Affairs and Energy as part of the the PlanQK project (01MK20005N), the DFG (Deutsche Forschungsgemeinschaft) project ReSUS (425911815), as well as the DFG’s Excellence Initiative project SimTech (EXC 2075 - 390740016). Additional development has been funded by the Federal Ministry for Economic Affairs and Energy projects SmartOrchestra (01MD16001F) and SePiA.Pro (01MD16013F), as well as by the DFG projects SustainLife (641730) and ADDCompliance (636503). Further development is also funded by the European Union’s Horizon 2020 project RADON (825040).