stupro-toscana / stupro_toscana_vorprojekt Goto Github PK
View Code? Open in Web Editor NEWOpen repository for the preliminary design study for TOSCAna
License: Apache License 2.0
Open repository for the preliminary design study for TOSCAna
License: Apache License 2.0
Create the component that links the ther parser, the engine and the cli.
Feeding below model to the parser, no parsing error is thrown. The <DeploymentArtifacts>
Element is missing.
Model:
<Node>
<Name>database</Name>
<Type>service</Type>
<ImplementationArtifacts>
<Create>create</Create>
</ImplementationArtifacts>
<DeploymentArtifact key="databaseschema">createdb.sql</DeploymentArtifact>
<Properties>
<Property key="user">simpleuser</Property>
<Property key="password">pass</Property>
<Property key="databasename">awesomedatabase</Property>
</Properties>
</Node>
Log Output:
2017-07-03 20:10:33,365 DEBUG - model.ServiceNode > Parsed 1 implementation artifacts for node database.
2017-07-03 20:10:33,366 DEBUG - model.ServiceNode > Parsed 0 deployment artifacts for node database.
2017-07-03 20:10:33,366 DEBUG - model.TOSCAliteModel > Added service database
In order to allow concurrency and increase performance the engine should support the usage of threads.
Get a profile picture on GitHub and Slack in order to ease communcation
Nice to have: make sure GitHub and Slack avatars are the same
Create a simple PHP - App for test and demonstration purposes.
If model was create set variable that it cannot be called twice
The engine needs to provide methods to create, start and stop the application through a ssh connection.
To establish this connection and send the SSH commands it should use the methods provided by the executor interface.
Progress:
The .iml files and the .idea folder are not necessary to configure IntelliJ, the IDE generates these files out of the pom.xml. So theres no need for them to be in the repo.
To remove these files from git do the following steps.
git checkout --patch master .gitignore
to get the new file, or just copy and paste to your branchgit rm -r --cached .idea
git rm -r --cached *.iml
thx!
In order to be able to deploy a TOSCAlite model on Ubuntu Machines, the model.xml
contained in the deployment archive has to be parsed.
This issue is divided into the following subtasks:
model.xml
specification. (class diagram)A static folder (basically its content, bunch of shell scripts) must be transfered to every machine right after establishing initial connection. They need to be available within implementation artifacts.
export PATH="$PATH:/path/to/folder/with/scripts" <-- put this into $HOME/.profile
problem: when using sudo (ubuntu only) you cant access youre old path, but the definde 'secure path' (some scripts need to be performed as root)
solution: Additionally to above PATH extension, this 'secure path' must be modified in /etc/sudoers.
To ensure the correct functionality of the Engine classes, all methods should be tested with an example topology.
Progress:
Get Log4j onboard; use SLF4J as interface.
The engine needs to be able to interpret the data model created by the XML parser in order to generate the sequence of deployment operations. This is done by iterating through the nodes and relationships in the data model and determining the dependencies.
A documetation how to build and use the program is requiered.
Todo:
To begin the implementation of the engine, a code structure must first be designed. This can be done through dummy classes and methods.
Design an easy to use comand line interface for the transformator.
Implement all the bash scripts which are used as implementation artifacts for the test application
Create the cli, to control the engine by a cli.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.