add distr
This commit is contained in:
parent
7b11adfa2e
commit
ba1511037d
7 changed files with 17 additions and 14 deletions
|
|
@ -52,7 +52,7 @@
|
||||||
<resource>
|
<resource>
|
||||||
<directory>src/main/resources</directory>
|
<directory>src/main/resources</directory>
|
||||||
<excludes>
|
<excludes>
|
||||||
<exclude>application.yaml</exclude>
|
<exclude>application.properties</exclude>
|
||||||
<exclude>keycloak.json</exclude>
|
<exclude>keycloak.json</exclude>
|
||||||
</excludes>
|
</excludes>
|
||||||
<filtering>false</filtering>
|
<filtering>false</filtering>
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import org.springframework.context.annotation.PropertySource;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
@Component
|
@Component
|
||||||
@PropertySource("file:${spring.config.location}/application.yaml")
|
@PropertySource("file:${spring.config.location}/application.properties")
|
||||||
@ConfigurationProperties("backend-api")
|
@ConfigurationProperties("backend-api")
|
||||||
public class BackendApiSettings {
|
public class BackendApiSettings {
|
||||||
public String getExampleSetting() {
|
public String getExampleSetting() {
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,8 @@
|
||||||
server:
|
server.port=8080
|
||||||
port: 8080
|
server.servlet.context-path=/backend-api
|
||||||
servlet:
|
spring.main.web-application-type=servlet
|
||||||
context-path: /backend-api
|
|
||||||
spring:
|
|
||||||
main:
|
|
||||||
web-application-type: servlet
|
|
||||||
|
|
||||||
backend-api:
|
backend-api.example-setting=test
|
||||||
example-setting: test
|
|
||||||
|
|
||||||
|
|
||||||
##keycloak
|
##keycloak
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
server.port=8080
|
||||||
|
server.servlet.context-path=/exporter
|
||||||
|
spring.main.web-application-type=servlet
|
||||||
|
|
||||||
db.jdbc-url=jdbc:postgresql://10.200.200.133:5432/postgres
|
db.jdbc-url=jdbc:postgresql://10.200.200.133:5432/postgres
|
||||||
db.driver=org.postgresql.Driver
|
db.driver=org.postgresql.Driver
|
||||||
db.login=clearing
|
db.login=clearing
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
server.port=8080
|
||||||
|
server.servlet.context-path=/importer
|
||||||
|
spring.main.web-application-type=servlet
|
||||||
|
|
||||||
db.jdbc-url=jdbc:postgresql://10.200.200.133:5432/postgres
|
db.jdbc-url=jdbc:postgresql://10.200.200.133:5432/postgres
|
||||||
db.driver=org.postgresql.Driver
|
db.driver=org.postgresql.Driver
|
||||||
db.login=clearing
|
db.login=clearing
|
||||||
|
|
|
||||||
|
|
@ -96,8 +96,8 @@
|
||||||
<destinationFile>${folder.clearing.distr.modules}/backend-api/backend-api.jar</destinationFile>
|
<destinationFile>${folder.clearing.distr.modules}/backend-api/backend-api.jar</destinationFile>
|
||||||
</fileSet>
|
</fileSet>
|
||||||
<fileSet>
|
<fileSet>
|
||||||
<sourceFile>${folder_root_clearing_backend-api}/src/main/resources/application.yaml</sourceFile>
|
<sourceFile>${folder_root_clearing_backend-api}/src/main/resources/application.properties</sourceFile>
|
||||||
<destinationFile>${folder.clearing.distr.modules}/backend-api/application.yaml</destinationFile>
|
<destinationFile>${folder.clearing.distr.modules}/backend-api/application.properties</destinationFile>
|
||||||
</fileSet>
|
</fileSet>
|
||||||
<fileSet>
|
<fileSet>
|
||||||
<sourceFile>${folder_root_clearing_backend-api}/src/main/resources/keycloak.json</sourceFile>
|
<sourceFile>${folder_root_clearing_backend-api}/src/main/resources/keycloak.json</sourceFile>
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
FROM debian:stable-20220125-jdk17
|
FROM debian:stable-20220125-jdk17
|
||||||
|
|
||||||
ADD backend-api.jar /opt/clearing/bin/backend-api.jar
|
ADD backend-api.jar /opt/clearing/bin/backend-api.jar
|
||||||
ADD application.yaml /opt/clearing/bin/application.yaml
|
ADD application.properties /opt/clearing/bin/application.properties
|
||||||
ADD keycloak.json /opt/clearing/bin/keycloak.json
|
ADD keycloak.json /opt/clearing/bin/keycloak.json
|
||||||
USER root
|
USER root
|
||||||
ENTRYPOINT java -jar /opt/clearing/bin/backend-api.jar --spring.config.location=/opt/clearing/bin/
|
ENTRYPOINT java -jar /opt/clearing/bin/backend-api.jar --spring.config.location=/opt/clearing/bin/
|
||||||
Loading…
Add table
Reference in a new issue