- JDK >= 11
- Kotlin
- Gradle >= 5.0
- Docker >= 19
- Docker Compose >= 1.13.0
- Valid credentials for Docker registry when you want to push the image
$ docker-compose up --build -d
$ curl -v http://localhost:8080/dependent-api
$ docker-compose down
https://github.com/palantir/gradle-docker
- Make sure you login to the registry you want to push to
- Edit build.gradle.kts so that we can specify the target registry (Please see the file in detail)
- Run the following command
$ ./gradlew clean dockerPush
- Run the following command and make sure your docker-compose.yml has a proper content
$ ./gradlew clean generateDockerCompose
- Run the following command and then
docker-compose up -d
should run$ ./gradlew clean dockerComposeUp