From 1cc5aad4a71c404cbf0e2005a670c41d6d45a1e5 Mon Sep 17 00:00:00 2001 From: josephine-jc Date: Wed, 17 Jan 2024 16:10:16 +0100 Subject: [PATCH] added postgresschema to alekbic and removed from docker --- alembic/versions/a3f3bc390462_alembic_start.py | 2 +- docker/postgres/Dockerfile | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/alembic/versions/a3f3bc390462_alembic_start.py b/alembic/versions/a3f3bc390462_alembic_start.py index b51784af..8fb80a10 100644 --- a/alembic/versions/a3f3bc390462_alembic_start.py +++ b/alembic/versions/a3f3bc390462_alembic_start.py @@ -20,7 +20,7 @@ def upgrade(): conn = op.get_bind() # migrations_dir = os.path.join(os.path.dirname(os.path.realpath(__file__))) - with open(os.path.join("/mnt/c/Github/cnaas-nms/docker/postgres/nms.sql")) as f: + with open(os.path.join("/opt/cnaas/venv/cnaas-nms/docker/postgres/nms.sql")) as f: data = f.read() conn.execute(sa.text(data)) diff --git a/docker/postgres/Dockerfile b/docker/postgres/Dockerfile index 471884cc..1b55b8b9 100644 --- a/docker/postgres/Dockerfile +++ b/docker/postgres/Dockerfile @@ -1,7 +1,7 @@ FROM postgres:11 -ARG SQLFILE=nms.sql +#ARG SQLFILE=nms.sql -COPY --chown=postgres:postgres ${SQLFILE} /docker-entrypoint-initdb.d/ +#COPY --chown=postgres:postgres ${SQLFILE} /docker-entrypoint-initdb.d/ EXPOSE 5432