Skip to content

Commit

Permalink
added postgresschema to alekbic and removed from docker
Browse files Browse the repository at this point in the history
  • Loading branch information
Josephine-Rutten committed Jan 17, 2024
1 parent 9c86d3c commit 1cc5aad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion alembic/versions/a3f3bc390462_alembic_start.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down
4 changes: 2 additions & 2 deletions docker/postgres/Dockerfile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 1cc5aad

Please sign in to comment.