Skip to content
Snippets Groups Projects
Verified Commit 980ba3b2 authored by nd's avatar nd
Browse files

package uffd for apt

parent 8eb63bdc
No related branches found
No related tags found
No related merge requests found
...@@ -81,3 +81,20 @@ publish-pip: ...@@ -81,3 +81,20 @@ publish-pip:
- TWINE_USERNAME="${PYPI_USERNAME}" TWINE_PASSWORD="${PYPI_PASSWORD}" python3 -m twine upload dist/* - TWINE_USERNAME="${PYPI_USERNAME}" TWINE_PASSWORD="${PYPI_PASSWORD}" python3 -m twine upload dist/*
rules: rules:
- if: '$CI_COMMIT_TAG =~ /v[0-9]+[.][0-9]+[.][0-9]+.*/' - if: '$CI_COMMIT_TAG =~ /v[0-9]+[.][0-9]+[.][0-9]+.*/'
publish-apt:
stage: deploy
script:
- apt update
- apt-get install -y python3-all debhelper python3-pip git-buildpackage
- export PYBUILD_INSTALL_ARGS="--install-lib=/usr/share/uffd/ --install-scripts=/usr/share/uffd/"
- gbp dch --ignore-branch --debian-tag=v%\(version\)s
- dpkg-buildpackage -us -uc
- mkdir build
- mv ../*.deb build/
artifacts:
paths:
- build/*
- debian/changelog
rules:
- if: '$CI_COMMIT_TAG =~ /v[0-9]+[.][0-9]+[.][0-9]+.*/'
...@@ -41,27 +41,7 @@ Please note that the mocked LDAP functionality is very limited and many uffd fea ...@@ -41,27 +41,7 @@ Please note that the mocked LDAP functionality is very limited and many uffd fea
## deployment ## deployment
Use uwsgi. Make sure to run `flask db upgrade` after every update! Use uwsgi. Make sure to run `flask db upgrade` after every update!
For an example uwsgi config, see our [uswgi.ini](uwsgi.ini).
### example uwsgi config
```
[uwsgi]
plugin = python3
env = PYTHONIOENCODING=UTF-8
env = LANG=en_GB.utf8
env = TZ=Europe/Berlin
manage-script-name = true
chdir = /var/www/uffd
module = uffd:create_app()
uid = uffd
gid = uffd
vacuum = true
die-on-term = true
hook-pre-app = exec:FLASK_APP=uffd flask db upgrade
```
## python style conventions ## python style conventions
...@@ -114,7 +94,7 @@ The userinfo endpoint returns json data with the following structure: ...@@ -114,7 +94,7 @@ The userinfo endpoint returns json data with the following structure:
## Translation ## Translation
The web frontend is translated in the following Languages: The web frontend is initialy written in English and translated in the following Languages:
![status](https://git.cccv.de/uffd/uffd/badges/master/coverage.svg?job=trans_de&key_text=DE) ![status](https://git.cccv.de/uffd/uffd/badges/master/coverage.svg?job=trans_de&key_text=DE)
......
uffd (0.1.2) unstable; urgency=medium
* Initial release.
-- Andreas Valder <nd@cccv.de> Fri, 31 Jul 2021 23:02:31 +0200
Source: uffd
Section: python
Priority: optional
Maintainer: CCCV <it@cccv.de>
Build-Depends:
debhelper-compat (= 12),
dh-python,
python3-all,
python3-setuptools,
Standards-Version: 4.5.0
Homepage: https://git.cccv.de/uffd/uffd
Vcs-Git: https://git.cccv.de/uffd/uffd.git
Package: uffd
Architecture: any
Depends:
${misc:Depends},
${python3:Depends},
python3-ldap3,
python3-flask,
python3-flask-sqlalchemy,
python3-flask-migrate,
python3-qrcode,
python3-fido2,
python3-flask-oauthlib,
python3-flask-babel,
uwsgi,
uwsgi-plugin-python3,
Description: UserFerwaltungsFrontend: Ldap based single sign on and user management web software
#!/usr/bin/make -f
export DH_VERBOSE = 1
export PYBUILD_NAME=uffd
%:
dh $@ --with python3 --buildsystem pybuild
/etc/uffd
/var/lib/uffd
/usr/share/uffd/uffd/instance
uwsgi.ini /etc/uwsgi/apps-available/uffd.ini
/usr/share/uffd/uffd/instance/config.py /etc/uffd/config.py
[uwsgi]
plugin = python3
env = PYTHONIOENCODING=UTF-8
env = LANG=en_GB.utf8
env = TZ=Europe/Berlin
manage-script-name = true
chdir = /usr/share/uffd
module = uffd:create_app()
uid = uffd
gid = uffd
vacuum = true
hook-pre-app = exec:FLASK_APP=uffd flask db upgrade
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment