Skip to content

Commit

Permalink
Improve process for installing/running arlo locally (#1696)
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Combs <[email protected]>
  • Loading branch information
combscCode and ccombs-sqsp authored Dec 1, 2022
1 parent 1950095 commit 06d9964
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ node_modules
*~
*.swo
*.swp

.devcontainer
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@
PATH := $(PATH):$(HOME)/.local/bin

deps:
sudo apt install python3.8 python3.8-venv libpython3.8-dev libpq-dev graphicsmagick
sudo apt update
sudo apt install -y python3.8 python3.8-venv libpython3.8-dev libpq-dev graphicsmagick
# Install node: https://github.com/nodesource/distributions/blob/master/README.md#deb
curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -
sudo apt-get install -y nodejs
# Install poetry: https://python-poetry.org/docs/master/#osx--linux--bashonwindows-install-instructions
curl -sSL https://install.python-poetry.org | python3.8 -
sudo npm install -g yarn
sudo apt install postgresql
sudo apt install -y postgresql
sudo systemctl start postgresql

# this should only be used for development
initdevdb:
Expand Down
5 changes: 4 additions & 1 deletion client/run-cypress-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ export ARLO_SMTP_HOST=localhost
export ARLO_SMTP_PORT=1025
export ARLO_SMTP_USERNAME=cypress-smtp-username
export ARLO_SMTP_PASSWORD=cypress-smtp-password
export ARLO_FILE_UPLOAD_STORAGE_PATH=s3://arlo-file-uploads-dev
if [[ -n $AWS_ACCESS_KEY_ID ]] && [[ -n $AWS_SECRET_ACCESS_KEY ]]
then
export ARLO_FILE_UPLOAD_STORAGE_PATH=s3://arlo-file-uploads-dev
fi

trap 'kill 0' SIGINT SIGHUP EXIT
cd "$(dirname "${BASH_SOURCE[0]}")"
Expand Down

0 comments on commit 06d9964

Please sign in to comment.