Skip to content

binkley/docker-java11

Repository files navigation

Docker and Java 11

Build and run

# Use `Dockerfile`, manually spin up container
$ ./run-it.sh

Or:

$ ./gradlew dockerRun

Or:

$ ./batect run -- -Dspring.profiles.active=demo

After the service is running, in another terminal:

# Outputs elided
$ http localhost:8080/actuator/health
$ http localhost:8080/actuator/info
$ http localhost:8080/actuator/env/activeProfiles

Note: the container image name is "tmp" when using Docker directly.

TODO:

  • ./gradlew dockerRun fails (at least on Windows)
  • Merge into binkley/docker

About

Building and running a Spring Boot Java 11 server in Docker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •