From 2883a1aa07fe97b0540787a34eb533b2cdefea45 Mon Sep 17 00:00:00 2001 From: informaticker Date: Wed, 3 Jul 2024 07:23:28 +0000 Subject: [PATCH] Add readme --- README.md | 20 +++++++++++++++++++ .../backend/src/routes/useCaseRoutes.js | 2 ++ deploy.sh | 4 ++-- 3 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..74e49e4 --- /dev/null +++ b/README.md @@ -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``. diff --git a/counter_kand/backend/src/routes/useCaseRoutes.js b/counter_kand/backend/src/routes/useCaseRoutes.js index f6e6a45..9ee4ba4 100644 --- a/counter_kand/backend/src/routes/useCaseRoutes.js +++ b/counter_kand/backend/src/routes/useCaseRoutes.js @@ -200,3 +200,5 @@ router.delete("/:id", (req, res, next) => { }); module.exports = router; + + diff --git a/deploy.sh b/deploy.sh index 07b11b4..ff66d53 100644 --- a/deploy.sh +++ b/deploy.sh @@ -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