Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Archive SOLR image #177

Merged
merged 2 commits into from
Dec 2, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 18 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,19 @@ jobs:
name: build
command: make build
- run:
name: Archive Docker image
command: docker save -o image.tar datagov/catalog.data.gov:latest
name: Archive Catalog Docker image
command: docker save -o image-catalog.tar datagov/catalog.data.gov:latest
- run:
name: Archive Solr Docker image
command: docker save -o image-solr.tar datagov/catalog.data.gov.solr:latest
- run:
name: Archive DB Docker image
command: docker save -o image-db.tar datagov/catalog.data.gov.db:latest
- persist_to_workspace:
root: .
paths:
- ./image.tar
- ./image-catalog.tar
- ./image-solr.tar
- run:
name: lint and test
command: |
Expand Down Expand Up @@ -62,13 +69,20 @@ jobs:
at: /tmp/workspace
- run:
name: Load archived Docker image
command: docker load -i /tmp/workspace/image.tar
command: docker load -i /tmp/workspace/image-catalog.tar
- run:
name: Load archived Docker SOLR image
command: docker load -i /tmp/workspace/image-solr.tar
- run:
name: Load archived Docker DB image
command: docker load -i /tmp/workspace/image-db.tar
- run:
name: Tag and publish image
command: |
echo "$DOCKERHUB_PASS" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin
docker push datagov/catalog.data.gov:latest
docker push datagov/catalog.data.gov.solr:latest
docker push datagov/catalog.data.gov.db:latest


workflows:
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ ci:
build:
docker build -t datagov/catalog.data.gov:latest ckan/
docker build -t datagov/catalog.data.gov.solr:latest solr/
docker build -t datagov/catalog.data.gov.db:latest postgresql/
docker-compose build

clean:
Expand Down