-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #97 from EGA-archive/requirements
Requirements and refactoring of cega-users
- Loading branch information
Showing
25 changed files
with
178 additions
and
116 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
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,26 @@ | ||
########################## | ||
## Build env | ||
########################## | ||
FROM python:3.8-alpine3.11 as BUILD | ||
|
||
RUN apk add gcc musl-dev | ||
|
||
RUN pip install --upgrade pip && \ | ||
pip install aiohttp | ||
|
||
########################## | ||
## Final image | ||
########################## | ||
FROM python:3.8-alpine3.11 | ||
|
||
LABEL maintainer "EGA System Developers" | ||
LABEL org.label-schema.schema-version="1.0" | ||
LABEL org.label-schema.vcs-url="https://github.com/EGA-archive/LocalEGA" | ||
|
||
COPY --from=BUILD usr/local/lib/python3.8/ usr/local/lib/python3.8/ | ||
|
||
VOLUME /cega/users | ||
|
||
COPY server.py /cega/server.py | ||
|
||
ENTRYPOINT ["python", "/cega/server.py", "0.0.0.0", "443", "/cega/users"] |
File renamed without changes.
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
PyYaml | ||
pika==1.1.0 | ||
bcrypt | ||
ruamel.yaml | ||
docopt | ||
git+https://github.com/EGA-archive/crypt4gh.git | ||
bcrypt==3.1.7 | ||
cffi==1.13.2 | ||
docopt==0.6.2 | ||
pycparser==2.19 | ||
PyYAML==5.3 | ||
ruamel.yaml==0.16.6 | ||
six==1.14.0 |
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,18 @@ | ||
bcrypt==3.1.7 | ||
boto3==1.11.7 | ||
botocore==1.14.7 | ||
cffi==1.13.2 | ||
cryptography==2.8 | ||
docopt==0.6.2 | ||
docutils==0.15.2 | ||
jmespath==0.9.4 | ||
pika==1.1.0 | ||
psycopg2==2.8.4 | ||
pycparser==2.19 | ||
PyNaCl==1.3.0 | ||
python-dateutil==2.8.1 | ||
PyYAML==5.3 | ||
s3transfer==0.3.1 | ||
six==1.14.0 | ||
urllib3==1.25.8 | ||
git+https://github.com/EGA-archive/crypt4gh.git |
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,29 @@ | ||
# That's just "pip install Sphinx PyYAML sphinx_rtd_theme recommonmark" | ||
alabaster==0.7.12 | ||
Babel==2.8.0 | ||
certifi==2019.11.28 | ||
chardet==3.0.4 | ||
commonmark==0.9.1 | ||
docutils==0.16 | ||
idna==2.8 | ||
imagesize==1.2.0 | ||
Jinja2==2.10.3 | ||
MarkupSafe==1.1.1 | ||
packaging==20.0 | ||
Pygments==2.5.2 | ||
pyparsing==2.4.6 | ||
pytz==2019.3 | ||
PyYAML==5.3 | ||
recommonmark==0.6.0 | ||
requests==2.22.0 | ||
six==1.14.0 | ||
snowballstemmer==2.0.0 | ||
Sphinx==2.3.1 | ||
sphinx-rtd-theme==0.4.3 | ||
sphinxcontrib-applehelp==1.0.1 | ||
sphinxcontrib-devhelp==1.0.1 | ||
sphinxcontrib-htmlhelp==1.0.2 | ||
sphinxcontrib-jsmath==1.0.1 | ||
sphinxcontrib-qthelp==1.0.2 | ||
sphinxcontrib-serializinghtml==1.1.3 | ||
urllib3==1.25.8 |
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 |
---|---|---|
@@ -1,20 +1,13 @@ | ||
#!/usr/bin/env python3 | ||
# -*- coding: utf-8 -*- | ||
|
||
import sys | ||
|
||
from . import CONF | ||
|
||
if __name__ == "__main__": | ||
|
||
def main(print_values=False): | ||
"""Run the main routine, for loading configuration.""" | ||
import sys | ||
from . import CONF | ||
|
||
print(repr(CONF)) | ||
|
||
if print_values: | ||
if len(sys.argv) > 1 and sys.argv[1] == 'list': | ||
print("\nConfiguration values:") | ||
CONF.write(sys.stdout) | ||
|
||
|
||
if __name__ == "__main__": | ||
main(print_values=len(sys.argv) > 1 and sys.argv[1] == 'list') |
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 |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
|
||
from logging import Logger | ||
|
||
|
||
class _wrapper(): | ||
"""Wrapper class for the correlation id.""" | ||
|
||
|
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
Oops, something went wrong.