Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
workspaces
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ssa
workspaces
Commits
954088ec
Commit
954088ec
authored
4 years ago
by
Daniel Lyons
Browse files
Options
Downloads
Patches
Plain Diff
Add a schema migration Docker image and add it to the compose configuration
parent
ed0565e0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Makefile
+1
-0
1 addition, 0 deletions
Makefile
docker-compose.yml
+9
-0
9 additions, 0 deletions
docker-compose.yml
docker.properties
+2
-2
2 additions, 2 deletions
docker.properties
schema/Dockerfile
+8
-0
8 additions, 0 deletions
schema/Dockerfile
with
20 additions
and
2 deletions
Makefile
+
1
−
0
View file @
954088ec
...
...
@@ -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
This diff is collapsed.
Click to expand it.
docker-compose.yml
+
9
−
0
View file @
954088ec
...
...
@@ -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
This diff is collapsed.
Click to expand it.
docker.properties
+
2
−
2
View file @
954088ec
# 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 diff is collapsed.
Click to expand it.
schema/Dockerfile
0 → 100644
+
8
−
0
View file @
954088ec
# 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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment