From e8db2f2b57c83ff42b311e8bd2aee0d9706bb30d Mon Sep 17 00:00:00 2001 From: pramod444 Date: Mon, 18 Mar 2024 13:13:08 +0530 Subject: [PATCH 1/2] [G2P-2014]create docker-build.yml and build docker for openg2p-portal-api service. --- .github/workflows/docker-build.yml | 2 +- Dockerfile | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index 706b959..c10fa67 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest env: NAMESPACE: ${{ secrets.docker_hub_organisation }} - SERVICE_NAME: openg2p-self-service-portal + SERVICE_NAME: openg2p-self-service-portal-api steps: - uses: actions/checkout@v3 - name: Docker build and push diff --git a/Dockerfile b/Dockerfile index 0c30ad0..e1aa923 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,7 +21,10 @@ ADD --chown=${container_user}:${container_user_group} 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 \ + ./src CMD python3 main.py migrate; \ python3 main.py run From ae5919fd6979e02e6a0c405a3be6ace795ae69c2 Mon Sep 17 00:00:00 2001 From: pramod444 Date: Mon, 18 Mar 2024 23:00:12 +0530 Subject: [PATCH 2/2] [G2P-2014] Updated docker-build.yml. --- .github/workflows/docker-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index c10fa67..af9605c 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest env: NAMESPACE: ${{ secrets.docker_hub_organisation }} - SERVICE_NAME: openg2p-self-service-portal-api + SERVICE_NAME: openg2p-selfservice-api steps: - uses: actions/checkout@v3 - name: Docker build and push