Search in sources :

Example 1 with ConnectionGraph

use of org.opentosca.toscana.plugins.kubernetes.model.transform.ConnectionGraph in project TOSCAna by StuPro-TOSCAna.

the class TransformHandler method createDockerfiles.

/**
 *     Creates the Dockerfiles (that means the dockerfile and all its dependesies get written to disk)
 */
private void createDockerfiles() {
    ConnectionGraph connectionGraph = new ConnectionGraph(lifecycle.stacks);
    lifecycle.stacks.forEach(e -> {
        logger.info("Creating Dockerfile for {}", e);
        try {
            e.buildToDockerfile(connectionGraph, lifecycle.getContext(), baseImageMapper);
        } catch (IOException ex) {
            ex.printStackTrace();
            throw new TransformationFailureException("Transformation Failed", ex);
        }
    });
}
Also used : TransformationFailureException(org.opentosca.toscana.plugins.util.TransformationFailureException) IOException(java.io.IOException) ConnectionGraph(org.opentosca.toscana.plugins.kubernetes.model.transform.ConnectionGraph)

Aggregations

IOException (java.io.IOException)1 ConnectionGraph (org.opentosca.toscana.plugins.kubernetes.model.transform.ConnectionGraph)1 TransformationFailureException (org.opentosca.toscana.plugins.util.TransformationFailureException)1