Skip to content

Commit

Permalink
Merge pull request #1 from HPAI-BSC/rest-wip
Browse files Browse the repository at this point in the history
Rest wip
  • Loading branch information
Auron-tliar authored Apr 30, 2024
2 parents 2bde187 + 3eebdb3 commit 25801ae
Show file tree
Hide file tree
Showing 49 changed files with 3,104 additions and 1,063 deletions.
21 changes: 14 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
/tmp/
/test/.pytest_cache/
*.json
*.pyc
*.idea/
/build/
/venv/
**/tmp/
**/.pytest_cache/
*.json
*.pyc
*.idea/
**/build/
**/venv/
**/tmp_*
**/tmp-*
**/test/
**/*.egg-info/
/testing/test_data/*
/testing/test_output
*.dat
24 changes: 11 additions & 13 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
FROM python:3.9.15-slim

ADD src /src
ADD test /test
ADD rest /rest
ADD ephemerality.py /
ADD requirements.txt /
ADD _version.py /
ADD setup.py /

RUN pip install --no-cache-dir --upgrade -r requirements.txt

CMD ["uvicorn", "rest.api:app", "--host", "0.0.0.0", "--port", "8080"]
FROM python:3.10-slim

ADD dist/ephemerality-2.0.0-py3-none-any.whl /dist/
ADD LICENSE /
ADD README.md /

RUN pip install --no-cache-dir /dist/ephemerality-2.0.0-py3-none-any.whl

WORKDIR /usr/local/lib/python3.10/site-packages/ephemerality

ENTRYPOINT ["uvicorn", "rest.runner:app", "--host", "0.0.0.0", "--port", "8080"]
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023 Barcelona Supercomputing Center - Centro Nacional de Supercomputación (BSC-CNS)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading

0 comments on commit 25801ae

Please sign in to comment.