Add readme

This commit is contained in:
informaticker 2024-07-03 07:23:28 +00:00
parent 5d107ae2ca
commit 2883a1aa07
3 changed files with 24 additions and 2 deletions

20
README.md Normal file
View File

@ -0,0 +1,20 @@
# counter-app autodeployment
Automatic deploy script to deploy the counter app for the üK 109.
## Requierements
Logged into Docker CLI (ghrc.io, Github) and logged into OpenShift via oc.
## Deploy
Modify the Github username inside ``deploy.sh``, then:
```bash
bash deploy.sh
```
You will get the route name in the output.
## Cleanup
Run:
```bash
bash cleanup.sh
```
This will clean up any changes made by ``deploy.sh``.

View File

@ -200,3 +200,5 @@ router.delete("/:id", (req, res, next) => {
});
module.exports = router;

View File

@ -2,8 +2,8 @@
# IMPORTANT!!
# Change this to your github username.
# (lowercase or else docker will complain)
#GITHUB_USERNAME="informaticker"
GITHUB_USERNAME="your_github_username"
GITHUB_USERNAME="informaticker"
#GITHUB_USERNAME="your_github_username"
VERSION="v1"
show_progress() {
local current=$1