Skip to content
Snippets Groups Projects
Select Git revision
  • 7327e71728cdd9dc96e215d131d2bea7988536b3
  • master default protected
  • MAM-110-propagate-output-sasid
  • MAM-109-specify-ingest-location
  • master-backup-september-2024
5 results

deploy_local_dev.sh

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    deploy_local_dev.sh 549 B
    #!/usr/bin/bash
    
    # be in an existing git cloned atdb-ldv directory (like $HOME/my_docker/atdb-ldv)
    
    # Pull the latest changes and capture the output
    OUTPUT=$(git pull)
    
    # Check if there are any changes pulled
    if [[ $OUTPUT == *"Already up to date."* ]]; then
      echo "No changes detected. Skipping redeploy."
    else
      echo "Changes detected. Proceeding with redeploy."
    
      # Proceed with build and redeploy
      cd atdb
      docker build -t atdb-ldv:latest .
      docker-compose -f docker/docker-compose-dev-local.yml -p atdb up -d
    
      echo "ATDB-lDV deployed"
    fi