Skip to content
Snippets Groups Projects
Commit f1bf31a4 authored by Maxime PAKULA's avatar Maxime PAKULA
Browse files

Renumber questions

parent e64e2319
Branches
No related tags found
1 merge request!12Update 2025 / Spring 3.4.2 / Java 21
...@@ -70,7 +70,7 @@ We use `-–network` instead of `-–link` because the latter is deprecated. ...@@ -70,7 +70,7 @@ We use `-–network` instead of `-–link` because the latter is deprecated.
Also, does it seem right to have passwords written in plain text in a file? You may rather define those environment parameters when running the image using the flag `-e`. Also, does it seem right to have passwords written in plain text in a file? You may rather define those environment parameters when running the image using the flag `-e`.
!!! question !!! question
Why should we run the container with a flag `-e` to give the environment variables? 1-1 Why should we run the container with a flag `-e` to give the environment variables?
It would be nice to have our database structure initialized with the docker image as well as some initial data. Any sql scripts found in `/docker-entrypoint-initdb.d` will be executed in alphabetical order, therefore let’s add a couple scripts to our image: It would be nice to have our database structure initialized with the docker image as well as some initial data. Any sql scripts found in `/docker-entrypoint-initdb.d` will be executed in alphabetical order, therefore let’s add a couple scripts to our image:
...@@ -137,10 +137,10 @@ Check that data survives when your container gets destroyed. ...@@ -137,10 +137,10 @@ Check that data survives when your container gets destroyed.
<a href="https://docs.docker.com/storage/volumes/" target="_blank">Docker volumes</a> <a href="https://docs.docker.com/storage/volumes/" target="_blank">Docker volumes</a>
!!! question !!! question
Why do we need a volume to be attached to our postgres container? 1-2 Why do we need a volume to be attached to our postgres container?
!!! question !!! question
1-1 Document your database container essentials: commands and Dockerfile. 1-3 Document your database container essentials: commands and Dockerfile.
## Backend API ## Backend API
...@@ -259,7 +259,7 @@ ENTRYPOINT ["java", "-jar", "myapp.jar"] ...@@ -259,7 +259,7 @@ ENTRYPOINT ["java", "-jar", "myapp.jar"]
``` ```
!!! question !!! question
1-2 Why do we need a multistage build? And explain each step of this dockerfile. 1-4 Why do we need a multistage build? And explain each step of this dockerfile.
!!! check !!! check
A working Springboot application with a simple HelloWorld endpoint. A working Springboot application with a simple HelloWorld endpoint.
...@@ -347,7 +347,7 @@ LoadModule proxy_http_module modules/mod_proxy_http.so ...@@ -347,7 +347,7 @@ LoadModule proxy_http_module modules/mod_proxy_http.so
``` ```
!!! question !!! question
Why do we need a reverse proxy? 1-5 Why do we need a reverse proxy?
!!! check !!! check
Checkpoint: a working application through a reverse proxy. Checkpoint: a working application through a reverse proxy.
...@@ -401,11 +401,11 @@ Once your containers are orchestrated as services by docker-compose you should h ...@@ -401,11 +401,11 @@ Once your containers are orchestrated as services by docker-compose you should h
The ports of both your backend and database should not be opened to your host machine. The ports of both your backend and database should not be opened to your host machine.
!!! question !!! question
Why is **docker-compose** so important? 1-6 Why is **docker-compose** so important?
!!! question !!! question
1-3 Document docker-compose most important commands. 1-7 Document docker-compose most important commands.
1-4 Document your docker-compose file. 1-8 Document your docker-compose file.
!!! check !!! check
A working 3-tier application running with docker-compose. A working 3-tier application running with docker-compose.
...@@ -435,10 +435,10 @@ docker push USERNAME/my-database:1.0 ...@@ -435,10 +435,10 @@ docker push USERNAME/my-database:1.0
Once you publish your images to dockerhub, you will see them in your account: having some documentation for your image would be quite useful if you want to use those later. Once you publish your images to dockerhub, you will see them in your account: having some documentation for your image would be quite useful if you want to use those later.
!!! question !!! question
1-5 Document your publication commands and published images in dockerhub. 1-9 Document your publication commands and published images in dockerhub.
!!! question !!! question
Why do we put our images into an online repo? 1-10 Why do we put our images into an online repo?
<p align="center">&copy; Takima 2025</p> <p align="center">&copy; Takima 2025</p>
......
...@@ -227,7 +227,7 @@ And after modify job `Build image and push backend` to add a `push` action: ...@@ -227,7 +227,7 @@ And after modify job `Build image and push backend` to add a `push` action:
Do the same for other containers. Do the same for other containers.
!!! question !!! question
For what purpose do we need to push docker images? 2-3 For what purpose do we need to push docker images?
Now you should be able to find your docker images on your docker repository. Now you should be able to find your docker images on your docker repository.
...@@ -274,7 +274,7 @@ If you did your configuration correctly, you should be able to see the **SonarCl ...@@ -274,7 +274,7 @@ If you did your configuration correctly, you should be able to see the **SonarCl
Working quality gate. Working quality gate.
!!! question !!! question
Document your quality gate configuration. 2-4 Document your quality gate configuration.
Well done buddies, you’ve created your very first Quality Gate! Yay! Well done buddies, you’ve created your very first Quality Gate! Yay!
......
...@@ -222,7 +222,7 @@ You must have at least this roles : ...@@ -222,7 +222,7 @@ You must have at least this roles :
You should be able to access your API on your server. You should be able to access your API on your server.
!!! question !!! question
Document your docker_container tasks configuration. 3-3 Document your docker_container tasks configuration.
## Front ## Front
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment