diff --git a/README.md b/README.md index 5b1c1126d611240e2ea21db9b315724dc3e77d26..5efc8883f466bd00bda094d710f7c5ccae622d89 100644 --- a/README.md +++ b/README.md @@ -115,48 +115,32 @@ is required, steps to do so are not provided here. ### Building Docker images -To build images you will need `alpine` image -you can get it by running +To build individual docker images ```bash -docker pull registry.hub.docker.com/library/eclipse-temurin:17-jdk-alpine +docker build -t pa165-formula-team-management-<module> --target pa165-formula-team-management-<module> . ``` -After successful pull, run - -```bash -mvn clean install -``` - -in root directory to build `jar` file for every module. - -*Note: You can use flag `-Dskiptests` to save some time.* - -For every module listed above you need to run: - -```bash -cd <module> -docker build -t pa165/formula-team-management/<module>-image . -``` +*Note: make sure you are in root directory of this project* ### Running Docker images -To run specific docker image use command +To run specific built docker image use command ```bash -docker run -p 8090:8090 pa165/formula-team-management/<module>-image +docker run -p 8090:8090 pa165-formula-team-management-<module> ``` To avoid confusion the best way is to be consistent with ports listed above, e.g. for running `application` image use: ```bash -docker run -p 8081:8081 pa165/formula-team-management/application-image +docker run -p 8081:8081 pa165-formula-team-management-application ``` ### Docker compose -To run all modules at once in one container, you can run in root directory +To run all modules at once in one container, you can run (in root directory) ```bash docker-compose up