-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add development environment setup and instructions
- Loading branch information
Showing
6 changed files
with
153 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# For use with dashboard/docker-compose.yml | ||
|
||
# The following information is only necessary if you are interested in setting up the | ||
# backend services and populating your local instance of the dashboard with real data. | ||
# In that case, you should try to provide as much information below as possible. | ||
# However, if some information is omitted, it shouldn't affect other data gathering | ||
# scripts. For example, if bz_key is omitted, other data should still be gathered. | ||
|
||
|
||
# Don't change this, unless you want the scripts to make changes to the Jira Board that | ||
# you've defined below. Shouldn't need to change this for most development work. | ||
READ_ONLY=true | ||
|
||
### Red Hat API | ||
# Offline token https://access.redhat.com/management/api | ||
# How to use it https://access.redhat.com/articles/3626371 | ||
offline_token='<YOUR_SECRET>' | ||
redhat_api='https://access.redhat.com/hydra/rest' | ||
watchlist_url=<WATCHLIST_URL> | ||
|
||
# search query | ||
case_query='case_tags:*shift_telco5g*' | ||
|
||
### Bugzilla API | ||
# Python Wrapper for BZ API: https://github.com/python-bugzilla/python-bugzilla | ||
bz_key="<BZ_KEY>" | ||
|
||
# Jira | ||
jira_sprint='T5GFE' | ||
jira_server='https://issues.redhat.com' | ||
jira_project='KNIECO' | ||
jira_component='KNI Labs & Field' | ||
jira_board='KNI-ECO Labs & Field' | ||
jira_query='field' | ||
jira_pass='<JIRA_PASS>' | ||
|
||
# Jira escalations | ||
jira_escalations_project='RHOCPPRIO' | ||
jira_escalations_label='Telco5g' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
--- | ||
version: '3.9' | ||
services: | ||
redis: | ||
image: redis:alpine | ||
# Persist redis data so that you don't have to regather data | ||
volumes: | ||
- redis_data:/data | ||
|
||
### Frontend | ||
dashboard-ui: | ||
image: localhost/dashboard | ||
build: . | ||
command: gunicorn --bind 0.0.0.0:8080 --timeout 1200 wsgi:app | ||
ports: | ||
- 8080:8080 | ||
environment: | ||
- FLASK_LOGIN_DISABLED=true # Disable SSO Login for dev environments | ||
depends_on: | ||
- redis | ||
|
||
### Backend (can remove if only developing front end) | ||
|
||
# Gathers data if cache is empty | ||
init-cache: | ||
image: localhost/dashboard | ||
command: flask init-cache | ||
env_file: | ||
- ../cfg/sample.env | ||
depends_on: | ||
- redis | ||
|
||
# Gathers data on timed basis | ||
celery-worker: | ||
image: localhost/dashboard | ||
command: celery -A t5gweb.taskmgr worker --loglevel=info -E | ||
env_file: | ||
- ../cfg/sample.env | ||
depends_on: | ||
- redis | ||
|
||
# Schedules celery-worker | ||
celery-beat: | ||
image: localhost/dashboard | ||
command: celery -A t5gweb.taskmgr beat -s /tmp/schedule | ||
env_file: | ||
- ../cfg/sample.env | ||
depends_on: | ||
- redis | ||
|
||
# Frontend for celery tasks | ||
flower: | ||
image: localhost/dashboard | ||
command: celery -A t5gweb.taskmgr flower --address=0.0.0.0 --port=8080 --purge_offline_workers=300 | ||
ports: | ||
- 8000:8080 | ||
env_file: | ||
- ../cfg/sample.env | ||
depends_on: | ||
- redis | ||
|
||
volumes: | ||
redis_data: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters