Skip to content

Instantly share code, notes, and snippets.

@Licenser
Last active July 25, 2017 07:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Licenser/c0573322309d973c73b1 to your computer and use it in GitHub Desktop.
Save Licenser/c0573322309d973c73b1 to your computer and use it in GitHub Desktop.
fifo test env
pkgin -y install erlang coreutils sudo gcc47 git gmake
for component in sniffle snarl howl wiggle
do
git clone https://github.com/project-fifo/${component}.git
cd ${component}
git checkout master
make package
cd ..
done
pkg_add erlang-17.4.tgz
pkgin -y install coreutils sudo gcc47 git gmake apache-maven tmux
for component in sniffle snarl howl
do
cd
git clone https://github.com/project-fifo/${component}.git
cd ${component}
git checkout test
make stage
mkdir -p /opt/local/fifo-${component}
cp -r /root/${component}/rel/${component}/etc /opt/local/fifo-${component}/
ln -s /root/${component}/rel/${component}/{releases,bin,erts-6.3,lib,share,snmp} /opt/local/fifo-${component}/
sh ./rel/pkg/install.sh ${component} PRE-INSTALL
sh ./rel/pkg/install.sh ${component} POST-INSTALL
cp rel/pkg/deploy/sbin/* /opt/local/sbin/
done
cd
git clone https://github.com/project-fifo/chunter.git
cd chunter
git checkout test
make rel
cd
curl https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein > /opt/local/bin/lein
chmod +x /opt/local/bin/lein
export LEIN_ROOT=1
echo "export LEIN_ROOT=1" >> ~/.bashrc
git clone https://github.com/project-fifo/jingels2.git
cd jingles2
cp config.json.example config.json
git clone https://github.com/project-fifo/leofs.git leofs.src
mkdir leofs
cd leofs
mkdir leo_gateway leo_manager_0 leo_manager_1 leo_storage
for i in *
do
cd $i;
for j in /root/leofs.src/package/$i/*
do
ln -s $j
done
rm etc
cp -r /root/leofs.src/package/$i/etc ./
cd ..
done
# Update the configs
cp /root/leofs.src/package/leofs-adm /opt/local/sbin/
## GZ
IP=192.168.1.21
FIFO=$(vmadm list | grep fifo | awk '{print $1}')
cd /opt
rm -rf chunter
mkdir chunter
cd chunter
ln -s /zones/${FIFO}/root/root/chunter/rel/chunter/{bin,erts-*,lib,plugins,releases,share} /opt/chunter
cp -r /zones/${FIFO}/root/root/chunter/rel/chunter/etc .
sed "s/127.0.0.1/$IP/g" etc/chunter.conf.example > etc/chunter.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment