Getting Started
Install
Build Image
$ docker build -t dietxurl-app .
Load PostgreSQL as locally
$ docker-compose -f docker-compose-pg.yml up -d
...
Creating network "dietxurl_default" with the default driver
Creating volume "dietxurl_dietxurl_local_db" with default driver
Creating dietxurl_db_1 ... done
Run
$ docker run --rm -p 8080:8080 dietxurl-app
Integration Testing
$ curl -d '{"firstName":"sawol", "lastName":"jung"}' \
-H "Content-Type: application/json" \
-X POST http://localhost:8080/api/v1/customers
Deploy
$ docker build --build-arg ENVIRONMENT=prod -t dietxurl-app-prod:0.0.1 .
$ docker run --rm -p 8080:8080 dietxurl-app-prod:0.0.1
Reference Documentation
For further reference, please consider the following sections:
- Official Gradle documentation
- Spring Boot Gradle Plugin Reference Guide
- Create an OCI image
- Coroutines section of the Spring Framework Documentation
- Spring Data R2DBC
Guides
The following guides illustrate how to use some features concretely:
Additional Links
These additional references should also help you: