Skip to content
Snippets Groups Projects
Commit 954088ec authored by Daniel Lyons's avatar Daniel Lyons
Browse files

Add a schema migration Docker image and add it to the compose configuration

parent ed0565e0
No related branches found
No related tags found
No related merge requests found
......@@ -48,3 +48,4 @@ docker-images:
docker build -t nrao:workspaces-base .
pushd services/workflow && docker build -t nrao:workflow . && popd
pushd services/capability && docker build -t nrao:capability . && popd
pushd schema && docker build -t nrao:schema . && popd
......@@ -14,12 +14,21 @@ services:
image: rabbitmq:3.8
restart: always
schema:
image: nrao:schema
depends_on:
- db
workflow:
image: nrao:workflow
ports:
- "3456:3456"
depends_on:
- schema
capability:
image: nrao:capability
ports:
- "3457:3457"
depends_on:
- schema
# Capo properties for the Docker-provided services
metadataDatabase.jdbcDriver = org.postgresql.Driver
metadataDatabase.jdbcUrl = jdbc:postgresql://localhost/archive
metadataDatabase.jdbcUrl = jdbc:postgresql://db/archive
metadataDatabase.jdbcUsername = archive
metadataDatabase.jdbcPassword = docker
edu.nrao.archive.configuration.AmqpServer.hostname = localhost
edu.nrao.archive.configuration.AmqpServer.hostname = amqp
edu.nrao.archive.configuration.AmqpServer.username = guest
edu.nrao.archive.configuration.AmqpServer.password = guest
edu.nrao.archive.configuration.AmqpServer.port = 5672
# This is nrao:schema
# The purpose of this is just to run the alembic migrations against the database in a docker-compose environment
FROM nrao:workspaces-base
WORKDIR /code/schema
ENV CAPO_PROFILE docker
ENV PATH /opt/conda/envs/data/bin:$PATH
ENV CONDA_DEFAULT_ENV data
ENTRYPOINT alembic upgrade head
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment