Skip to content

Latest commit

 

History

History

32-docker

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Docker, Docker Compose, Testcontainers

Task

Pack application to docker containers. Start application using docker-compose, stacks, kubernetes. Implement integration tests that use real database.

Used

  • Docker
  • Docker compose
  • Testcontainers
Launch tests (including integration on real db)

Command to launch tests

mvn clean test

Build docker-images (you need this one time)

Command to build backend docker-image

docker build -t 32-docker-backend:v1 ./backend

Command to build frontend docker-image

docker build -t 32-docker-frontend:v1 ./frontend

Start application using Docker Compose

Command to start

docker-compose up

Command to start with images building

docker-compose --file docker-compose-with-build.yml up

The first time it takes about 10 minutes to build and to start.

Application UI

Available users:

username password
user1 !user1
admin !admin

HAL-Explorer