-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from AgilionApps/ap/add-elixir
Add vagrant elixir setup scripts.
- Loading branch information
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Installs Elixir from github cloned source. | ||
# Requires erlang.sh | ||
# add to Vagrantfile: | ||
# config.vm.provision 'shell', path: 'erlang.sh' | ||
# config.vm.provision 'shell', privileged: false, path: 'elixir.sh' | ||
|
||
if [ -d /home/vagrant/elixir ] ; then | ||
echo 'Elixir already installed' | ||
else | ||
sudo apt-get install make -y | ||
cd ~ | ||
git clone https://github.com/elixir-lang/elixir.git | ||
cd elixir | ||
git checkout v0.15.0 | ||
make clean | ||
make | ||
fi | ||
|
||
if grep -lq 'elixir/bin' /home/vagrant/.bashrc ; then | ||
echo 'Elixir already added to path' | ||
else | ||
echo 'export PATH=/home/vagrant/elixir/bin:$PATH' >> /home/vagrant/.bashrc | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Installs Erlang via erlang-solutions repo | ||
# add to Vagrantfile: | ||
# config.vm.provision 'shell', path: 'erlang.sh' | ||
|
||
if grep -lq 'erlang-solutions' /etc/apt/sources.list ; then | ||
echo 'Erlang source already added' | ||
else | ||
cd /tmp | ||
wget http://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb | ||
dpkg -i erlang-solutions_1.0_all.deb | ||
apt-get update -y | ||
apt-get install erlang -y | ||
fi |