Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
17 changes: 17 additions & 0 deletions manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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