Skip to content
This repository has been archived by the owner on Oct 23, 2019. It is now read-only.

Commit

Permalink
Add vagrant files
Browse files Browse the repository at this point in the history
  • Loading branch information
daboross committed Jun 3, 2014
1 parent bd01f2a commit b313bc0
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ plugins/New Text Document.txt
plugins/srvv.py
run.cmd
config
.vagrant
6 changes: 6 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "ubuntu/trusty32"
config.vm.provision :shell, path: "vagrant-bootstrap.sh"
end
25 changes: 25 additions & 0 deletions vagrant-bootstrap.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/usr/bin/env bash

# update sources
sudo apt-get update

# install things:
# pip so we can install rependencies
# git so pip can clone from repository
# libenchant-dev so python-enchant can use it
# python3-lxml so we can use precompiled binaries instead of compiling them

sudo apt-get install -y python3-pip git libenchant-dev python3-lxml

# install requirements using pip
sudo pip3 install -r /vagrant/requirements.txt

# create link from project to ~/bot
ln -sf /vagrant /home/vagrant/bot

# create start.sh script
cat > /home/vagrant/start.sh << EOF
#!/usr/bin/env bash
cd /home/vagrant/bot
python3 -m cloudbot
EOF

0 comments on commit b313bc0

Please sign in to comment.