Skip to content

Commit

Permalink
Add v3 API
Browse files Browse the repository at this point in the history
JIRA: RHELWF-7165
  • Loading branch information
hluk committed Nov 24, 2022
1 parent 5cb7df4 commit 6f3a14a
Show file tree
Hide file tree
Showing 18 changed files with 830 additions and 731 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/resultsdb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,19 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Install system dependencies
uses: nick-invision/retry@v2
with:
timeout_minutes: 10
retry_wait_seconds: 30
max_attempts: 3
command: >-
sudo apt-get update
&& sudo apt-get install
libkrb5-dev
libldap2-dev
libsasl2-dev
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,20 @@ RUN set -exo pipefail \
&& yum install -y \
--setopt install_weak_deps=false \
--nodocs \
gcc \
krb5-devel \
openldap-devel \
python39 \
python39-devel \
# install runtime dependencies
&& yum install -y \
--installroot=/mnt/rootfs \
--releasever=8 \
--setopt install_weak_deps=false \
--nodocs \
httpd \
krb5-libs \
mod_ssl \
openldap \
python39 \
python39-mod_wsgi \
&& yum --installroot=/mnt/rootfs clean all \
Expand Down
18 changes: 3 additions & 15 deletions conf/resultsdb.wsgi
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
# This is required for running on EL6
import __main__
__main__.__requires__ = ['SQLAlchemy >= 0.7', 'Flask >= 0.9', 'jinja2 >= 2.6']
import pkg_resources

# if you're running the app from a virtualenv, uncomment these lines
#activate_this = '/var/www/resultsdb/env/bin/activate_this.py'
#execfile(activate_this, dict(__file__=activate_this))
#import sys
#sys.path.insert(0,"/var/www/resultsdb/resultsdb/")

import os
os.environ['RESULTSDB_CONFIG'] = '/etc/resultsdb/settings.py'

from resultsdb import app as application
# SPDX-License-Identifier: GPL-2.0+
import resultsdb
application = resultsdb.app
4 changes: 1 addition & 3 deletions conf/settings.py.example
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,10 @@ FEDMENU_DATA_URL = 'https://apps.fedoraproject.org/js/data.js'
AUTH_MODULE = None

# OIDC Configuration
OIDC_ADMINS = []
import os
OIDC_CLIENT_SECRETS = os.getcwd() + '/conf/oauth2_client_secrets.json'
OIDC_AUD = 'My-Client-ID'
OIDC_SCOPE = 'https://pagure.io/taskotron/resultsdb/access'
OIDC_RESOURCE_SERVER_ONLY = True
OIDC_USERNAME_FIELD = 'uid'


# ================== Messaging ===================
Expand Down
Loading

0 comments on commit 6f3a14a

Please sign in to comment.