diegosorrilha / flask-jenkins

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LDAP Service

LDAP Service

Print

Setup

Create a new virtualenv and activate it

python3 -m venv .venv && source .venv/bin/activate

With a virtualenv activated install the dependencies

pip3 install --upgrade pip && pip3 install -r requirements/dev.txt

Set development environment variables

export FLASK_APP=ldap_service/app.py
export FLASK_ENV=development

Running

flask run --host=0.0.0.0 --port=5000

Go to: http://localhost:5000/get-lineupid

Running tests

pytest -v ldap_service/tests.py

Using Docker

docker build -t ldap-service:latest .
docker run -p 8000:5000 ldap-service

Go to: http://localhost:8000/get-lineupid

About


Languages

Language:Python 51.4%Language:HTML 32.5%Language:Dockerfile 9.8%Language:CSS 4.7%Language:Shell 1.6%