Skip to content

Commit 23c19fa

Browse files
committed
Change CMD to entrypoint and accept --mode argument
1 parent 9fa1d99 commit 23c19fa

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ USER app
2626

2727
EXPOSE 8000
2828

29-
CMD ["python", "app.py"]
29+
ENTRYPOINT ["python", "app.py"]

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ You can do this in two ways:
7070
-e APP_AUTH_INSTALLATION_ID="<installtion_id_once_installed>" \
7171
-e BASIC_AUTH_USERNAME="<your_username>" \
7272
-e BASIC_AUTH_PASSWORD="<your_password>" \
73-
github-cctray:latest
73+
github-cctray:latest --mode app-auth
7474
```
7575

7676
# Usage
@@ -211,7 +211,7 @@ pip install -r requirements.txt
211211
* set necessary env variable to authenticate with Github (see Prerequisites)
212212
* export BASIC_AUTH_USERNAME=<user>
213213
* export BASIC_AUTH_PASSWORD=<pass>
214-
* python app.py
214+
* python app.py --mode [pat-auth|app-auth] # pat-auth is the default mode if no mode is set
215215
```
216216

217217
# Configuring a Client

requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ requests
22
flask
33
Flask-BasicAuth
44
waitress
5-
jwt
5+
PyJWT
6+
cryptography

0 commit comments

Comments
 (0)