Skip to content

Commit

Permalink
Merge pull request #2 from vineela-afk/develop
Browse files Browse the repository at this point in the history
Added the unlink and packaging
  • Loading branch information
venky-ganapathy authored Mar 28, 2024
2 parents 88a0587 + 88a37da commit 583e153
Show file tree
Hide file tree
Showing 37 changed files with 394 additions and 745 deletions.
9 changes: 6 additions & 3 deletions openg2p-spar-mapper-api/Dockerfile → Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,14 @@ RUN chown -R ${container_user}:${container_user_group} /app
USER ${container_user}

ADD --chown=${container_user}:${container_user_group} . /app/src
ADD --chown=${container_user}:${container_user_group} main.py /app
ADD --chown=${container_user}:${container_user_group} openg2p-spar-mapper-api/main.py /app

RUN python3 -m venv venv \
&& . ./venv/bin/activate
RUN python3 -m pip install ./src

RUN python3 -m pip install \
git+https://github.com/openg2p/openg2p-fastapi-common.git@develop\#egg=openg2p-fastapi-common\&subdirectory=openg2p-fastapi-common \
git+https://github.com/openg2p/openg2p-fastapi-common.git@develop\#egg=openg2p-fastapi-auth\&subdirectory=openg2p-fastapi-auth \
git+https://github.com/openg2p/openg2p-fastapi-common.git@develop\#egg=openg2p-common-g2pconnect-id-mapper\&subdirectory=openg2p-common-g2pconnect-id-mapper \
./src/openg2p-spar-mapper-api
CMD python3 main.py migrate; \
python3 main.py run
10 changes: 10 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env python3

# ruff: noqa: I001

from openg2p_spar_mapper_api.app import Initializer
# from openg2p_fastapi_common.ping import PingInitializer

main_init = Initializer()

main_init.main()
16 changes: 0 additions & 16 deletions openg2p-spar-mapper-api/.copier-answers.yml

This file was deleted.

114 changes: 0 additions & 114 deletions openg2p-spar-mapper-api/CODE-OF-CONDUCT.md

This file was deleted.

2 changes: 0 additions & 2 deletions openg2p-spar-mapper-api/CONTRIBUTING.md

This file was deleted.

Loading

0 comments on commit 583e153

Please sign in to comment.