forked from metincansiper/factoid-to-biopax-server
-
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.
Bumped to v0.4.1: upgraded Spring Boot and migrated Swagger SpringFox…
… to OpenAPI.
- Loading branch information
1 parent
da5d7b4
commit 51dfbe1
Showing
9 changed files
with
89 additions
and
76 deletions.
There are no files selected for viewing
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,9 +1,11 @@ | ||
#Build jar file | ||
FROM openjdk:13-jdk-alpine as build-jar | ||
COPY . / | ||
FROM eclipse-temurin:latest as build-jar | ||
WORKDIR /app | ||
COPY . /app/ | ||
RUN ./gradlew clean | ||
RUN ./gradlew build | ||
|
||
#Run jar file | ||
FROM openjdk:13-jdk-alpine | ||
COPY --from=build-jar build/libs/*.jar app.jar | ||
FROM eclipse-temurin:latest | ||
COPY --from=build-jar /app/build/libs/factoid-converters-0.4.1.jar app.jar | ||
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-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
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
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,42 @@ | ||
package factoid.web; | ||
|
||
import io.swagger.v3.oas.models.OpenAPI; | ||
import io.swagger.v3.oas.models.info.Contact; | ||
import io.swagger.v3.oas.models.info.Info; | ||
import io.swagger.v3.oas.models.info.License; | ||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Configuration; | ||
|
||
@Configuration | ||
public class OpenApiConfig { | ||
|
||
@Bean | ||
public OpenAPI customOpenAPI() { | ||
return new OpenAPI() | ||
.info(apiInfo()); | ||
} | ||
|
||
private Info apiInfo() { | ||
return new Info() | ||
.title("Factoid data converters") | ||
.description("A RESTful web service, built with Spring Boot and Paxtools java libraries, that converts " + | ||
"Factoid documents to BioPAX or SBGN formats.") | ||
.version("2") | ||
.contact(apiContact()) | ||
.license(apiLicence()); | ||
} | ||
|
||
private License apiLicence() { | ||
return new License() | ||
.name("MIT Licence") | ||
.url("https://opensource.org/licenses/mit-license.php"); | ||
} | ||
|
||
private Contact apiContact() { | ||
return new Contact() | ||
.name("Pathway Commons") | ||
.email("[email protected]") | ||
.url("https://www.pathwaycommons.org"); | ||
} | ||
|
||
} |
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
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