Skip to content

Instantly share code, notes, and snippets.

@Abdulwahaab710
Created January 26, 2018 16:11
Show Gist options
  • Save Abdulwahaab710/00c6f9ee0344759642f5134a1a6fc166 to your computer and use it in GitHub Desktop.
Save Abdulwahaab710/00c6f9ee0344759642f5134a1a6fc166 to your computer and use it in GitHub Desktop.
# Install bootstrap and source
# Install GIT and SSH
sudo apt-get update
sudo apt-get -y install git ssh
# Update .bashrc
cat >> ~/.bashrc <<EOF
export PYTHONPATH=/opt/al/pkg
source /etc/default/al
EOF
source ~/.bashrc
# The source command will generate an error, but it will disappear once the install is complete.
# Create repository directory
sudo mkdir -p ${PYTHONPATH} &&
sudo chown -R `whoami`:`groups | awk '{print $1}'` ${PYTHONPATH}/.. &&
cd ${PYTHONPATH}
# Clone/create main repos
cd $PYTHONPATH
git clone https://bitbucket.org/cse-assemblyline/assemblyline.git -b prod_3.2
# Create Dev VM Deployment
/opt/al/pkg/assemblyline/deployment/create_deployment.py
# Answer the questions from deployment script
# NOTE:
# Answer to "Which deployment type would you like?" has to be: 1
# Answer to "Where would you like us to create your deployment?" has to be: /opt/al/pkg
# You don't really need to save the al_private to your git repo.
# Install Riak
export AL_SEED=al_private.seeds.deployment.seed
/opt/al/pkg/assemblyline/al/install/install_riak.py
sudo reboot
export AL_SEED=al_private.seeds.deployment.seed
/opt/al/pkg/assemblyline/al/install/install_riak.py
unset AL_SEED
# Install Core
# Run install script
/opt/al/pkg/assemblyline/al/install/install_core.py
# Install Worker
# Run install script
/opt/al/pkg/assemblyline/al/install/install_worker.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment