This repository has been archived by the owner on Oct 23, 2019. It is now read-only.
forked from edwardslabs/CloudBot
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
32 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 |
---|---|---|
|
@@ -17,3 +17,4 @@ plugins/New Text Document.txt | |
plugins/srvv.py | ||
run.cmd | ||
config | ||
.vagrant |
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,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 |
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,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 |