Script to refresh Python packages in the running docker containers

#!/bin/bash

git pull
# git submodule update --recursive
cd project/ || exit
for d in nsaph_utils data_platform gis epa cms census gridmet ; do
  pushd $d &&
  git status &&
  git checkout develop &&
  git pull &&
  docker exec  webserver bash -c "source /root/anaconda/etc/profile.d/conda.sh && conda activate nsaph && cd /opt/airflow/project/$d && pip install ." &&
  docker exec  scheduler bash -c "source /root/anaconda/etc/profile.d/conda.sh && conda activate nsaph && cd /opt/airflow/project/$d && pip install ." &&
  popd || exit ;
done
cd ..