-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathmac.sh
executable file
·63 lines (49 loc) · 1.76 KB
/
mac.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/usr/bin/env bash
## Run this to install all project dependencies on a mac via brew
### homebrew
curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh
### openjdk
brew install openjdk
### Symlink it for mac
sudo ln -sfn /opt/homebrew/opt/openjdk/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk.jdk
### gh api
brew install gh
### gdal
brew install gdal
### For generated HFI Calculator PDFs
brew install --cask wkhtmltopdf
### pyenv
brew install pyenv
pyenv install 3.12.3
pyenv global 3.12.3
### poetry
curl -sSL https://install.python-poetry.org | python -
echo "poetry installed, run poetry_setup.sh in api"
### r
brew install --cask r
brew install udunits
brew install proj
echo "installing r packages, this takes awhile..."
r -e 'install.packages(c("rgdal","sf", "units"),,"https://mac.R-project.org")'
r -e "install.packages('cffdrs', repos = 'http://cran.us.r-project.org')"
echo "finished installing r packages"
### postgres - Nov 2024 - Commenting out the postgres setup. See MANUAL.md for reasons and manual postgres setup.
# echo "installing and configuring postgres"
# brew install postgresql
# brew services start postgresql
# brew install postgis
# psql -d postgres -c "create database wps;"
# psql -d wps -c "create extension postgis;"
# psql -d wps -c "
# CREATE USER wps;
# CREATE USER wpsread;
# ALTER USER wps WITH LOGIN;
# ALTER USER wpsread WITH LOGIN;
# ALTER USER wps WITH SUPERUSER;
# grant connect on database wps to wpsread; grant usage on schema public to wpsread; grant select on all tables in schema public to wpsread;
# "
# echo "finished installing and configuration postgres, run migrations in poetry shell"
### redis
brew install redis
brew services start redis
echo "finished installing all local machine dependencies"