Skip to content

Commit

Permalink
Merge pull request #15 from HoopadCorp/feature/snap_deps_installation
Browse files Browse the repository at this point in the history
Feature/snap deps installation
  • Loading branch information
mohsenkamini authored Jan 10, 2023
2 parents 6c4fd55 + a48f760 commit b5c3928
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions installation/.env
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ PNP_SERVICE_DIR="${CLIENT_SERVICES_DIR}/pnp-client"
ZTP_ENV_FILE="${PNP_SERVICE_DIR}/.env"
PIP_DEPS_FILE="${PNP_SERVICE_DIR}/requirements.txt"
APT_DEPS_FILE="./apt_deps"
SNAP_DEPS_FILE="./snap_deps"
5 changes: 5 additions & 0 deletions installation/.install-lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ function install_apt_deps () {
apt install -y `cat ${APT_DEPS_FILE}`
}

function install_snap_deps () {

snap install `cat ${SNAP_DEPS_FILE}`
}

function install_pip_deps () {

pip3 install -r ${PIP_DEPS_FILE}
Expand Down
1 change: 1 addition & 0 deletions installation/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ set -euo pipefail

create_hoopad_user || true
install_apt_deps
install_snap_deps
install_pip_deps
birdwatcher_conf
extract_filebeat
Expand Down
1 change: 1 addition & 0 deletions installation/snap_deps
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
yq

0 comments on commit b5c3928

Please sign in to comment.