This repository has been archived by the owner on Jul 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'development' for 0.0.2
- Loading branch information
Showing
73 changed files
with
3,345 additions
and
1,918 deletions.
There are no files selected for viewing
Empty file.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,3 @@ | ||
FROM azul/zulu-openjdk-alpine:8 as copy | ||
|
||
# Copy files | ||
#COPY target/lib /usr/share/myservice/lib | ||
RUN mkdir /5geve-experiment-builder | ||
ARG JAR_FILE | ||
ENV JAR_FILE=${JAR_FILE} | ||
COPY target/${JAR_FILE} /5geve-experiment-builder | ||
WORKDIR /5geve-experiment-builder | ||
|
||
|
||
FROM copy as dev | ||
|
||
LABEL target=DEV | ||
|
||
# Enable remote debugger | ||
EXPOSE 5005 | ||
ENV JAVA_TOOL_OPTIONS="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005" | ||
|
||
CMD java -jar ${JAR_FILE} | ||
|
||
|
||
FROM copy as prod | ||
|
||
LABEL maintainer="Matteo Pergolesi" | ||
LABEL org.label-schema.schema-version="1.0" | ||
ARG BUILD_DATE | ||
LABEL org.label-schema.build-date=$BUILD_DATE | ||
ARG REPOSITORY | ||
LABEL org.label-schema.name=$REPOSITORY | ||
ARG DESCRIPTION | ||
LABEL org.label-schema.description=$DESCRIPTION | ||
ARG VERSION | ||
LABEL org.label-schema.version=$VERSION | ||
ARG VCS_URL | ||
LABEL org.label-schema.vcs-url=$VCS_URL | ||
ARG VCS_REF | ||
LABEL org.label-schema.vcs-ref=$VCS_REF | ||
ARG COMMAND | ||
LABEL org.label-schema.docker.cmd=$COMMAND | ||
|
||
CMD java -jar ${JAR_FILE} | ||
FROM azul/zulu-openjdk-alpine:8-jre | ||
COPY ./target/*.jar /app.jar | ||
CMD java -jar app.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
version: '3.7' | ||
services: | ||
exp-nsd-composer: | ||
build: | ||
context: . | ||
container_name: exp-nsd-composer | ||
ports: | ||
- 8086:8086 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package it.cnit.blueprint.composer; | ||
|
||
import lombok.extern.slf4j.Slf4j; | ||
import org.springframework.boot.SpringApplication; | ||
import org.springframework.boot.autoconfigure.SpringBootApplication; | ||
import org.springframework.boot.autoconfigure.domain.EntityScan; | ||
|
||
@SpringBootApplication | ||
@EntityScan(basePackages = {"it.nextworks.nfvmano.libs.ifa", "it.cnit.blueprint.composer"}) | ||
@Slf4j | ||
public class App { | ||
|
||
public static void main(String[] args) { | ||
SpringApplication.run(App.class, args); | ||
} | ||
|
||
} |
8 changes: 8 additions & 0 deletions
8
src/main/java/it/cnit/blueprint/composer/exceptions/ContextInvalidException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package it.cnit.blueprint.composer.exceptions; | ||
|
||
public class ContextInvalidException extends Exception { | ||
|
||
public ContextInvalidException(String message) { | ||
super(message); | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
src/main/java/it/cnit/blueprint/composer/exceptions/DescriptorInvalidException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package it.cnit.blueprint.composer.exceptions; | ||
|
||
public class DescriptorInvalidException extends Exception { | ||
|
||
private String descId; | ||
|
||
public DescriptorInvalidException(String descId, String message) { | ||
super(message); | ||
this.descId = descId; | ||
} | ||
|
||
public DescriptorInvalidException(String descId, String message, Throwable cause) { | ||
super(message, cause); | ||
this.descId = descId; | ||
} | ||
|
||
@Override | ||
public String getMessage() { | ||
return String.join(" ", descId, "is invalid:", super.getMessage()); | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
src/main/java/it/cnit/blueprint/composer/exceptions/NsdCompositionException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package it.cnit.blueprint.composer.exceptions; | ||
|
||
public class NsdCompositionException extends DescriptorInvalidException { | ||
|
||
public NsdCompositionException(String descId, String message) { | ||
super(descId, message); | ||
} | ||
|
||
public NsdCompositionException(String descId, String message, Throwable cause) { | ||
super(descId, message, cause); | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
src/main/java/it/cnit/blueprint/composer/exceptions/NsdGenerationException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package it.cnit.blueprint.composer.exceptions; | ||
|
||
public class NsdGenerationException extends DescriptorInvalidException { | ||
|
||
public NsdGenerationException(String descId, String message) { | ||
super(descId, message); | ||
} | ||
|
||
public NsdGenerationException(String descId, String message, Throwable cause) { | ||
super(descId, message, cause); | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
src/main/java/it/cnit/blueprint/composer/exceptions/NsdInvalidException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package it.cnit.blueprint.composer.exceptions; | ||
|
||
public class NsdInvalidException extends DescriptorInvalidException { | ||
|
||
public NsdInvalidException(String descId, String message) { | ||
super(descId, message); | ||
} | ||
|
||
public NsdInvalidException(String descId, String message, Throwable cause) { | ||
super(descId, message, cause); | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
src/main/java/it/cnit/blueprint/composer/exceptions/TransRuleCompositionException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package it.cnit.blueprint.composer.exceptions; | ||
|
||
public class TransRuleCompositionException extends Exception { | ||
|
||
public TransRuleCompositionException(String message) { | ||
super(message); | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
src/main/java/it/cnit/blueprint/composer/exceptions/TransRuleInvalidException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package it.cnit.blueprint.composer.exceptions; | ||
|
||
public class TransRuleInvalidException extends Exception { | ||
|
||
public TransRuleInvalidException(String message) { | ||
super(message); | ||
} | ||
} |
Oops, something went wrong.