Commit graph

6 commits

Author SHA1 Message Date
justusbunsi 81a7251081
Update base Docker images
Signed-off-by: Steven Kriegler <sk.bunsenbrenner@gmail.com>
2022-07-08 13:49:05 +02:00
justusbunsi eb3cb301fc
Allow changing the port
This introduces a new application option `--port`/`-p` to switch the
listening port from 3000 (default) to another port.

Docker image can be configured using the corresponding environment
variable `GITEA_SQ_BOT_PORT`.

Helm Chart allows setting `.Values.app.listeningPort`

Resolves: #25

Signed-off-by: Steven Kriegler <sk.bunsenbrenner@gmail.com>
2022-06-17 13:34:06 +02:00
justusbunsi dc3969cd05
Improve configuration file flexibility
Instead of re-inventing the wheel regarding configuration location
handling and validation, this introduces a new command flag `--config`
allowing for full flexibility of configuration filename and location.
This flag can also be defined via environment variable which allows
an easy way of starting the bot from command line, inside a Docker
container or using the Helm Chart.

It makes the custom environment lookup unnecessary and reduces some
complexity during startup and for writing tests.

Resolves: #10

Signed-off-by: Steven Kriegler <sk.bunsenbrenner@gmail.com>
2022-05-22 14:03:23 +02:00
justusbunsi 1f6fe0d4bc
Bump golang to 1.18
Signed-off-by: Steven Kriegler <sk.bunsenbrenner@gmail.com>
2022-05-14 01:42:42 +02:00
tuongvi9911 afd523c9cd Fix permission denied (#14)
error handling at runtime
starting container process caused: exec: "/usr/local/bin/docker-entrypoint.sh": permission denied: unknown.

Reviewed-on: https://codeberg.org/justusbunsi/gitea-sonarqube-bot/pulls/14
Co-authored-by: tuongvi9911 <tuongvi9911@noreply.codeberg.org>
Co-committed-by: tuongvi9911 <tuongvi9911@noreply.codeberg.org>
2021-10-24 18:14:55 +02:00
justusbunsi a51520382e
Add production Dockerfile
Signed-off-by: Steven Kriegler <61625851+justusbunsi@users.noreply.github.com>
2021-10-11 08:42:11 +02:00