Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Commit

Permalink
fix: external ann_data volume should be bind-mounted
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivier Cervello authored Nov 25, 2021
2 parents 58bdcfc + 85c1132 commit da7d123
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 29 deletions.
14 changes: 0 additions & 14 deletions .github/workflows/container-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,20 +83,6 @@ jobs:
echo "ANN_INSTANCE=${{ startsWith(github.ref, 'refs/tags/v') && 'prod' || 'dev' }}" >> .env
echo "SENTRY_DSN=${{ secrets.SENTRY_DSN }}" >> .env
- name: Create Docker volumes
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
proxy_host: ${{ secrets.PROXY_HOST }}
proxy_username: ${{ secrets.USERNAME }}
proxy_key: ${{ secrets.SSH_PRIVATE_KEY }}
script_stop: false
script: |
cd ${{ matrix.env }}
make create_external_volumes
- name: Start services
uses: appleboy/ssh-action@master
env:
Expand Down
8 changes: 0 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,6 @@ tests: up_tests _tests down_tests

quality: up_tests _lint _checks _tests down_tests


#------------#
# Production #
#------------#
create_external_volumes:
@echo "🥫 Creating external volumes (production only) …"
docker volume create ann_data

#---------#
# Cleanup #
#---------#
Expand Down
4 changes: 1 addition & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ services:
ports:
- 5501:5501
volumes:
- ann_data:/opt/ann/data
- ./ann_data:/opt/ann/data
environment:
- SENTRY_DSN
volumes:
ann_data:
4 changes: 0 additions & 4 deletions docker/prod.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
version: "3.9"

volumes:
ann_data:
external: true

0 comments on commit da7d123

Please sign in to comment.