Skip to content
Snippets Groups Projects
Commit 3ef7c772 authored by Alžbeta Hajná's avatar Alžbeta Hajná
Browse files

feat: readme updated to reflect changes in docker magic

parent 2635692c
No related branches found
No related tags found
4 merge requests!54Merge develop into main,!48Scenario,!47Docker fix,!44Security
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment