Skip to content

Commit

Permalink
add system dependencies to deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHicks committed May 10, 2021
1 parent 0352748 commit 3af8805
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions scripts/deploy.sh
Expand Up @@ -14,6 +14,20 @@ VENV_LOC="inky-pal-venv"
echo "== COPYING CODE"
rsync -rv --filter ':- .gitignore' --exclude '/.git' --exclude '/.direnv' . "$SSH_TARGET:$CODE_LOC"

echo
echo "== INSTALLING SYSTEM DEPENDENCIES"

system-dep() {
echo "${1:-}"
if ! ssh "$SSH_TARGET" "dpkg -s ${1:-}" > /dev/null 2>&1; then
ssh "$SSH_TARGET" "sudo apt-get install --assume-yes ${1:-}"
fi
}

system-dep libatlas-base-dev
system-dep libopenjp2-7-dev
system-dep libtiff-dev

echo
echo "== SETTING UP VENV"
ssh "$SSH_TARGET" "if ! test -d $VENV_LOC; then python3 -m venv $VENV_LOC; fi"
Expand Down

0 comments on commit 3af8805

Please sign in to comment.