Skip to content

Commit e07a725

Browse files
committedSep 9, 2020
Removing CERN specific code and adding README
1 parent 82d8a1e commit e07a725

File tree

3 files changed

+22
-98
lines changed

3 files changed

+22
-98
lines changed
 

‎.gitlab-ci.yml

-97
This file was deleted.

‎README.md

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Captcha API
2+
3+
This project contains a simple Captcha API that returns an encoded image containing
4+
letters a-Z and numbers 1-9 via a GET endpoint. The POST endpoint can be used to validate the
5+
captcha.
6+
7+
A Dockerfile is provided for containerisation.
8+
9+
## Running with Docker
10+
11+
Build the Docker image
12+
```
13+
docker build . -t captcha-api
14+
```
15+
16+
Run the Docker image
17+
```
18+
docker run -d --name captcha -p 8080:8080 -e CAPTCHA_API_CONFIG=config.py captcha-api
19+
```
20+
21+
Navigate to ``http://localhost:8080/swagger-ui``

‎setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def load_requirements():
2020
name="captcha-api",
2121
version="0.1.0",
2222
description="CERN CAPTCHA service",
23-
url="https://gitlab.cern.ch/authzsvc/backends/captcha-api",
23+
url="https://github.com/CERN/captcha-api",
2424
author="MALT IAM team",
2525
author_email="authzsvc-admins@cern.ch",
2626
classifiers=[

0 commit comments

Comments
 (0)