You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We deploy the (native) Docker image of all CoMPAS services to Docker Hub. This way, it can be pulled and deployed into environments of your choice (OpenShift for example).
The following instructions are terminal instructions for publishing a Quarkus docker image to Docker Hub. This should be done by a Github Action in the future.
12
12
13
13
```
@@ -26,6 +26,6 @@ Few points in this single command:
26
26
-`-Dquarkus.container-image.name=name` defining the name of the image. Standard it's 'app'.
27
27
-`-Dquarkus.container-image.push=true` deploys to docker image to Docker Hub.
28
28
29
-
##Sources
30
-
#### Full documentation about deploying Quarkus application to Docker Hub
[Full documentation about deploying Quarkus application to Docker Hub](https://dev.to/marcuspaulo/tutorial-publish-a-quarkus-application-in-kubernetes-minikube-and-dockerhub-36nd)
Every repository within the CoMPAS Github organization need a default set of Github Actions.
9
9
[Github Actions](https://github.com/features/actions) are CI/CD steps within a Github Repository that you can configure. This way, you can ensure that certain steps (like building) are always triggered on for example a commit push.
10
10
@@ -18,7 +18,7 @@ More to follow.
18
18
19
19
Github Actions are configured using YAML files. These files are stored in the `.github/workflows` directory of a specific repository.
20
20
21
-
###Building
21
+
## Building
22
22
All source code repositories need some kind of building step.
23
23
By default, all source code repositories use Maven as the build tool.
24
24
@@ -57,7 +57,7 @@ A few points to remember:
57
57
check the [Contributing file](https://github.com/com-pas/contributing/blob/master/CONTRIBUTING.md).
58
58
- (3): This is a default for building a Maven project. It may differ in some cases, please feel free to adjust it.
59
59
60
-
### REUSE check
60
+
## REUSE check
61
61
For keeping our copyright and licensing information up to date and correct, we use [REUSE](https://reuse.software/) to check this. This is also configured for every separate repository in an easy manner: just create a `reuse.yml` file in the `.github/workflows` directory containing the following source code:
62
62
63
63
```yaml
@@ -79,7 +79,7 @@ A few points to remember:
79
79
80
80
This is the only thing that has to be done. After this, it will be checked on every push.
81
81
82
-
#### REUSE badge
82
+
### REUSE badge
83
83
For transparancy, CoMPAS repositories also include a REUSE badge in their README for fast checking the REUSE compliance.
84
84
85
85
Two steps are needed to get a REUSE badge to work:
@@ -95,7 +95,7 @@ There is one steps left: Replace `repoName` with the name of the specific reposi
95
95
96
96
After doing all these steps, everything is set up for the REUSE check.
97
97
98
-
### SonarCloud
98
+
## SonarCloud
99
99
For static code analysis, CoMPAS is using [SonarCloud](https://sonarcloud.io/). To configure this, there are several steps that needs to be done.
100
100
101
101
1. Go to the [CoMPAS Github organization settings](https://github.com/organizations/com-pas/settings/profile), and click on "Installed Github Apps". SonarCloud is listed here already (because we are already using it). Click on the 'configure' button next to it.
@@ -162,7 +162,7 @@ A few points to remember:
162
162
163
163
Once this is set, it's all done!
164
164
165
-
### Docker Hub Deployment
165
+
## Docker Hub Deployment
166
166
For automatic deployment of our microservices, CoMPAS uses Docker Hub as the central docker image repository. This way, all Docker images can be pulled from a central image repository.
167
167
168
168
This step is easy to configure. Just create a `dockerhub_deployment.yml` file in the `.github/workflows` directory containing the following source code:
0 commit comments