Skip to content

Commit 99d0d1c

Browse files
author
Dennis Labordus
committed
Updating and adding pages.
Signed-off-by: Dennis Labordus <[email protected]>
1 parent a16dcb4 commit 99d0d1c

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

docs/DEPENDABOT.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@ SPDX-FileCopyrightText: 2021 Alliander N.V.
44
SPDX-License-Identifier: CC-BY-4.0
55
-->
66

7-
## Dependabot
7+
# Dependabot
88

9-
### Configure Dependabot Settings
9+
## Configure Dependabot Settings
1010

1111
The first step is that we want to enable Alerts from Dependabot. This needs to be done for every repository that
1212
uses Dependabot. Go to the settings of the repository and select "Security & analysis". Next enable "Dependabot alerts"
1313
and "Dependabot security updates".
1414

1515
Also remember to give the repository access to the secret DB_GITHUB_PACKAGES at organization level.
1616

17-
### Configure Dependabot (yaml)
17+
## Configure Dependabot (yaml)
1818

1919
Next step is to add a configuration file to the repository that will enable Dependabot. In the repository create a
2020
file "dependabot.yml" in the directory ".github". The basic content will be something like
@@ -80,7 +80,7 @@ the JAXB Implementation can't higher.
8080
Dependabot uses the configuration found in the default branch (often 'develop'), so to make it effective use a
8181
pull request to merge it into the default branch.
8282
83-
### Adding Dependabot Secret DB_GITHUB_PACKAGES
83+
## Adding Dependabot Secret DB_GITHUB_PACKAGES
8484
8585
Tot access GitHub Packages a secret DB_GITHUB_PACKAGES needs to be created.
8686
- First create a new personal access token from https://github.com/settings/tokens. Tokens can only be created as personal tokens.
@@ -91,7 +91,7 @@ Tot access GitHub Packages a secret DB_GITHUB_PACKAGES needs to be created.
9191
9292
Now Dependabot can use this secret to access GitHub Packages.
9393
94-
### Handling the pull request
94+
## Handling the pull request
9595
9696
Pull request created by Dependabot can be handled just like other pull request, but there is 1 issue to know.
9797
Some GitHub Actions, like SonarCloud and AutomateProjects, will fail if they are started by the pull request from

docs/DEPLOYMENT.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ SPDX-FileCopyrightText: 2021 Alliander N.V.
44
SPDX-License-Identifier: CC-BY-4.0
55
-->
66

7-
## Deployment of CoMPAS
7+
# Deployment of CoMPAS
88
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).
99

10-
### Quick Deployment instructions (under construction)
10+
## Quick Deployment instructions (under construction)
1111
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.
1212

1313
```
@@ -26,6 +26,6 @@ Few points in this single command:
2626
- `-Dquarkus.container-image.name=name` defining the name of the image. Standard it's 'app'.
2727
- `-Dquarkus.container-image.push=true` deploys to docker image to Docker Hub.
2828

29-
## Sources
30-
#### Full documentation about deploying Quarkus application to Docker Hub
31-
https://dev.to/marcuspaulo/tutorial-publish-a-quarkus-application-in-kubernetes-minikube-and-dockerhub-36nd
29+
# Sources
30+
31+
[Full documentation about deploying Quarkus application to Docker Hub](https://dev.to/marcuspaulo/tutorial-publish-a-quarkus-application-in-kubernetes-minikube-and-dockerhub-36nd)

docs/GITHUB_ACTIONS.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ SPDX-FileCopyrightText: 2021 Alliander N.V.
44
SPDX-License-Identifier: CC-BY-4.0
55
-->
66

7-
## Github Actions
7+
# Github Actions
88
Every repository within the CoMPAS Github organization need a default set of Github Actions.
99
[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.
1010

@@ -18,7 +18,7 @@ More to follow.
1818

1919
Github Actions are configured using YAML files. These files are stored in the `.github/workflows` directory of a specific repository.
2020

21-
### Building
21+
## Building
2222
All source code repositories need some kind of building step.
2323
By default, all source code repositories use Maven as the build tool.
2424

@@ -57,7 +57,7 @@ A few points to remember:
5757
check the [Contributing file](https://github.com/com-pas/contributing/blob/master/CONTRIBUTING.md).
5858
- (3): This is a default for building a Maven project. It may differ in some cases, please feel free to adjust it.
5959
60-
### REUSE check
60+
## REUSE check
6161
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:
6262

6363
```yaml
@@ -79,7 +79,7 @@ A few points to remember:
7979

8080
This is the only thing that has to be done. After this, it will be checked on every push.
8181

82-
#### REUSE badge
82+
### REUSE badge
8383
For transparancy, CoMPAS repositories also include a REUSE badge in their README for fast checking the REUSE compliance.
8484

8585
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
9595

9696
After doing all these steps, everything is set up for the REUSE check.
9797

98-
### SonarCloud
98+
## SonarCloud
9999
For static code analysis, CoMPAS is using [SonarCloud](https://sonarcloud.io/). To configure this, there are several steps that needs to be done.
100100

101101
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:
162162

163163
Once this is set, it's all done!
164164

165-
### Docker Hub Deployment
165+
## Docker Hub Deployment
166166
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.
167167

168168
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

Comments
 (0)