-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add a template description (GSI-545) (#188)
Is only present on the template and automatically removed for relying service repos.
- Loading branch information
1 parent
d27da9d
commit 0e9b5e0
Showing
5 changed files
with
80 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,3 @@ | ||
<!-- Please provide a short overview of the features of this service. --> | ||
|
||
This repo is a template for creating a new microservice. | ||
|
||
The directories, files, and their structure herein are recommendations | ||
from the GHGA Dev Team. | ||
|
||
### Naming Conventions | ||
|
||
The GitHub repository contains only lowercase letters, numbers, and hyphens "-", | ||
e.g.: `my-microservice` | ||
|
||
The Python package (and thus the source repository) contains underscores "_" | ||
instead of hyphens, e.g.: `my_microservice` | ||
However, an abbreviated version is prefered as package name. | ||
|
||
### Adapt to your service | ||
|
||
This is just a template and needs some adaptation to your specific use case. | ||
|
||
Please search for **"please adapt"** comments. They will indicate all locations that | ||
need modification. Once the adaptations are in place, please remove these comments. | ||
|
||
Finally, follow the instructions to generate the README.md described in | ||
[`./readme_generation.md`](./readme_generation.md). Please also adapt this markdown file | ||
by providing an overview of the feature of the package. | ||
Here you should provide a short summary of the purpose of this microservice. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Microservice Repository Template | ||
|
||
This is a template for GitHub repositories containing one Python-based microservice (optimal for a multirepository setup). | ||
|
||
It features: | ||
|
||
- *Continuous Templation* - A continuous update-delivery mechanism for templated repositories | ||
- A [devcontainer](https://containers.dev/)-based fully-configured development environment for vscode | ||
- Tight linting and formatting using [Ruff](https://docs.astral.sh/ruff/) | ||
- Static type checking using [mypy](https://www.mypy-lang.org/) | ||
- Security scanning using [bandit](https://bandit.readthedocs.io/en/latest/) | ||
- A structure for automated tests using [pytest](https://docs.pytest.org/en/7.4.x/) | ||
- Dependency locking using [pip-tools](https://github.com/jazzband/pip-tools) | ||
- Git hooks checking linting and formatting before committing using [pre-commit](https://pre-commit.com/) | ||
- Automatic container-building and publishing to [Docker Hub](https://hub.docker.com/) | ||
- GitHub Actions for automating or checking all of the above | ||
|
||
It is worth emphasizing the first point, this template is not just a one-time kickstart for your project | ||
but repositories created using this template will continue receiving updates as the template evolves. | ||
For further details, please look at the explanation in [.template/README.md](/.template/README.md). | ||
|
||
Please also refer to [.readme_generation/README.md](/.readme_generation/README.md) for details on how | ||
to adapt this readme. | ||
|
||
Here the intro to the template stops and the actual template for the readme of the microservice starts: | ||
|
||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters