diff --git a/README.md b/README.md index e4229d999..f8888c3ed 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ The application use Spring Java configuration and [bean profiles](http://docs.sp ## Building -This project requires Java 8 or later to compile. +This project compiles with Java 8 and Java 11. Other versions are not tested. To build a runnable Spring Boot jar file, run the following command: diff --git a/manifest.yml b/manifest.yml index e983909ee..e12832e01 100644 --- a/manifest.yml +++ b/manifest.yml @@ -3,8 +3,25 @@ applications: - name: spring-music memory: 1G random-route: true + + #uncomment next 2 lines to disable buildpack autodetect + #buildpacks: + #- java_buildpack_offline + path: build/libs/spring-music-1.0.jar + health-check-type: http + health-check-http-endpoint: /actuator/health env: JBP_CONFIG_SPRING_AUTO_RECONFIGURATION: '{enabled: false}' # JBP_CONFIG_OPEN_JDK_JRE: '{ jre: { version: 11.+ } }' + + #Enable graceful shutdown to avoid 502 errors + SPRING_APPLICATION_JSON: '{ "server.shutdown": "graceful", "spring.lifecycle.timeout-per-shutdown-phase": "10s" , "sever.max-keep-alive-requests": -1}' + + #A side car example, "command" can be anything that you ship with spring-music-1.0.jar + #sidecars: + #- name: connection-collector + # process_types: [ 'web' ] + # command: ./check-connections.sh + # memory: 32MB