-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* DockerFile * Fixes for pull request 63 * removed unnecessary war file * Added docker directory to RAT exclude because coverity fails and they don't require licensing * Removed Coverty from CI * Swapped Dockerfile location and swapped war location to use war file that release pipeline creates * Dockerfile added to excluded rat list * CFE-18 was with lowercase and not dash * Return Coverity for merging to main repository * Documentation changes for usage instructions
- Loading branch information
1 parent
598886b
commit 9103e34
Showing
6 changed files
with
119 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -64,3 +64,21 @@ jobs: | |
with: | ||
files: | | ||
target/cfe_18.war | ||
- name: Set up Docker Buildx | ||
uses: docker/[email protected] | ||
|
||
- name: Login to GitHub Container Registry | ||
uses: docker/[email protected] | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Lowercase repository name | ||
run: echo "REPO_LC=${GITHUB_REPOSITORY,,}" >> $GITHUB_ENV | ||
|
||
- name: 'Build Image' | ||
run: | | ||
docker buildx build --output type=docker --tag ghcr.io/${{ env.REPO_LC }}:${{ github.event.release.tag_name }} --tag ghcr.io/${{ env.REPO_LC }}:latest . | ||
docker push ghcr.io/${{ env.REPO_LC }} --all-tags |
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 @@ | ||
# Tomcat image | ||
FROM tomcat:8-jre8-temurin-focal | ||
|
||
COPY target/cfe_18.war ${CATALINA_HOME}/webapps/ | ||
|
||
EXPOSE 8080 | ||
|
||
CMD ["catalina.sh", "run"] | ||
|
||
|
||
|
||
|
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,33 @@ | ||
# Database Config | ||
spring.datasource.url=jdbc:mariadb://INSERT_DATASOURCE_IP:INSERT_DATASOURCE_PORT/cfe_18 | ||
spring.datasource.username=INSERT_DATASOURCE_USERNAME | ||
spring.datasource.password=INSERT_DATASOURCE_PASSWORD | ||
spring.datasource.driver-class-name=org.mariadb.jdbc.Driver | ||
# To show logs for each query | ||
spring.jpa.show-sql=true | ||
## Hibernate settings | ||
# This prevents hibernate query turning table columns into snake case. | ||
spring.jpa.hibernate.naming.physical-strategy=org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl | ||
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MariaDB103Dialect | ||
spring.jpa.hibernate.use-new-id-generator-mappings=false | ||
# Flyway settings | ||
spring.flyway.validateMigrationNaming=true | ||
spring.flyway.enabled=true | ||
spring.flyway.locations=classpath:db/migration | ||
spring.flyway.schemas=cfe_18,cfe_03,cfe_01,cfe_07,cfe_00,flow,location | ||
# MyBatis settings | ||
mybatis.check-config-location=true | ||
mybatis.config-location=classpath:mybatis-config.xml | ||
# SpringDoc | ||
application-description=@project.description@ | ||
application-version=@project.version@ | ||
springdoc.swagger-ui.syntax-highlight.activated=false | ||
# Something to do with spring deployed to host? IDK. trying. | ||
server.forward-headers-strategy=framework | ||
# Fixes flyway problem where entitymanagerfactory creates user via spring security | ||
# Spring security | ||
# CORS | ||
management.endpoints.web.cors.allowed-origins=* | ||
management.endpoints.web.cors.max-age=3600 | ||
management.endpoints.web.cors.allowed-headers=* | ||
management.endpoints.web.cors.allowed-methods=* |
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,16 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Configuration> | ||
<Appenders> | ||
<Console name="Console" target="SYSTEM_OUT"> | ||
<PatternLayout | ||
pattern="%style{%d{ISO8601}}{black} %highlight{%-5level }[%style{%t}{bright,blue}] %style{%C{1.}}{bright,yellow}: %msg%n%throwable"/> | ||
</Console> | ||
</Appenders> | ||
<Loggers> | ||
<Root level="info"> | ||
<AppenderRef ref="Console"/> | ||
</Root> | ||
<Logger name="org.mybatis" level="info"/> | ||
</Loggers> | ||
|
||
</Configuration> |
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