Skip to content
Snippets Groups Projects

Optimize size of the docker image by creating multistage docker build and removing postgre db.

5 files
+ 30
85
Compare changes
  • Side-by-side
  • Inline
Files
5
@@ -5,15 +5,20 @@ server.port=8082
microservice.name=kypo-adaptive-training
# calling user-and-group project
user-and-group-server.uri=http://localhost:8084/kypo2-rest-user-and-group/api/v1
user-and-group-server.uri=http://localhost:8084/kypo-rest-user-and-group/api/v1
# calling kypo2-openstack
openstack-server.uri=http://localhost:8080/kypo-openstack/api/v1
# DATASOURCE (DataSourceAutoConfiguration & DataSourceProperties)
spring.datasource.url=jdbc:postgresql://localhost:5432/kypo-adaptive-training
spring.datasource.username=postgres
spring.datasource.password=postgres
spring.datasource.driver-class-name=org.postgresql.Driver
spring.datasource.url=jdbc:h2:mem:training
spring.datasource.username=sa
spring.datasource.password=
spring.datasource.driverClassName=org.h2.Driver
# JPA (JpaBaseConfiguration, HibernateJpaAutoConfiguration)
spring.data.jpa.repositories.enabled=true
spring.jpa.hibernate.ddl-auto=create-drop
spring.jpa.show-sql=false
# Jackson (e.g. converting Java 8 dates to ISO format
spring.jackson.serialization.write_dates_as_timestamps=false
Loading