-
Notifications
You must be signed in to change notification settings - Fork 46
/
Copy pathdeps-debian-build.sh
33 lines (25 loc) · 1.08 KB
/
deps-debian-build.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
#!/bin/bash
apt-get update -q -y
# runtime deps
chmod +x ./deps-debian.sh
./deps-debian.sh
# dev deps
apt-get install -q -y --no-install-recommends sqlite3 npm
# rustc cargo g++
# deps of tools
apt-get install -q -y --no-install-recommends autoconf dpkg-dev libncurses-dev unixodbc-dev libssl-dev libsctp-dev libodbc1 libssl1.1 libsctp1 make gcc
# includes build tools needed for mise to build erlang ^
# tools
# NOTE: using mise because bullseye elixir version is too old
curl https://mise.run | sh
PATH="~/.local/share/mise/shims:~/.local/bin/:$PATH"
echo 'export PATH="~/.local/share/mise/shims:~/.local/bin/:$PATH"' >> ~/.bash_profile
mise plugin-add erlang
mise plugin-add elixir
mise plugin-add just
mise install
# FYI: uses .tool-versions instead of the below
# which erl || (mise install erlang latest && asdf global erlang latest)
# elixir -v || (asdf install elixir latest && asdf global elixir latest) #|| apt-get install -y elixir
# just --version || (asdf install just latest && asdf global just latest) || cargo install just #|| apt-get install -y just
# npm install --global yarn