tools for https://badges.rhems-japan.com/
1.5K
[terminal]% bash <(curl -s https://tools.badges.rhems-japan.com/install.sh)
[terminal]% bash <(curl -s https://tools.badges.rhems-japan.com/install.sh)
----- start install for badge tool -----
https://badges.rhems-japan.com/
--
python3 [OK]
pip3 [OK]
create_dir_for_prog [OK]
pip_install [OK]
---- install new badge-tool ----
======================================================
** usage **
/Users/raymeibergen/badge-tool/badge-tool -h
** config file **
[Default]
URL = https://badges.rhems-japan.com/api-update-badge
API_TOKEN = 7e9df068-ddaf-411b-9eb5-c0e43ed6133c
;SLACK = sample
ORG = monitor-cronjob
[sample]
NAME = sample
ENV = production
;CRONJOB = * * * * *
;GRACE_TIME = 1
app path : /Users/raymeibergen/badge-tool/badge-tool
config path : /Users/raymeibergen/badge-tool/config.ini
app version : 84b3d9a
ex :
[rhems]# /Users/raymeibergen/badge-tool/badge-tool sample
======================================================
[terminal]% badge-tool sample
[terminal]% /Users/raymeibergen/badge-tool/badge-tool sample
--------------------start--------------------
Cron: False
Status: True
RESPONSE: https://badges.rhems-japan.com/api-get-badge.svg?user_id=JBnnStsM406i6CpB1YaD&organization=monitor-cronjob&repo=sample&app=sample&uptime=1657256537&branch=production
RUN TIME: 0.592850833
--------------------end--------------------
[terminal]% /Users/raymeibergen/badge-tool/badge-tool -h
usage: badge-tool [-h] [-s] [-d] [-v] arg1 [arg2 ...]
## Made by rhems-japan.co.jp ##
https://badges.rhems-japan.com/
create and update bages by using this tool.
1. create config.ini
========================================================================
[Default]
URL = https://badges.rhems-japan.com/api-update-badge
API_TOKEN = <GET API TOKEN FROM BAGES WEB SITE>
ORG = <NAME OF ORGANISATION>
; SLACK = <ADD SLACK TOKEN> ; [OPTION(require for cron)] need for alert notification
; DEBUG = <TRUE / FALSE> ; [OPTION]
[APP NAME] ; set app name
NAME = <string> ; ex: agones
ENV = <string> ; ex: production
; CRONJOB = * * * * * ; [OPTION(require for cron)]
; GRACE_TIME = 1 ; default is 1. [OPTION]
========================================================================
2. update_bage <APP NAME> (True/False)
positional arguments:
arg1 <APP NAME>
arg2 [OPTIONAL] <True/False>
optional arguments:
-h, --help show this help message and exit
-s, --stop_cron stop notification
-d, --debug stop notification
-v, --version show program's version number and exit
[rhems-debug]
token = xoxb-1111111-1111111-111123efdsgdsgs
channel = AFDGDSA
[rhems-debug2]
token = xoxb-22222222-222222222-124422dfdfdgfd
channel = SDGGDGSS
Content type
Image
Digest
sha256:ea2b477d9…
Size
120.5 MB
Last updated
over 3 years ago
docker pull rhemsjapan/badge-tools