Created
July 26, 2016 17:04
-
-
Save glenpike/9420a87f552ebd21b0c997b0da7fc7a5 to your computer and use it in GitHub Desktop.
Vagrant machine to run https://github.com/cyber-dojo/web
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
#!/usr/bin/env bash | |
apt-get update | |
curl -O https://raw.githubusercontent.com/cyber-dojo/web/master/cli/install-docker.sh | |
chmod +x install-docker.sh | |
./install-docker.sh | |
curl -O https://raw.githubusercontent.com/cyber-dojo/web/master/cli/cyber-dojo | |
chmod +x cyber-dojo | |
./cyber-dojo up |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.vm.box = "ubuntu/trusty64" | |
config.vm.network "forwarded_port", guest: 80, host: 8181 | |
config.vm.provision :shell, path: "bootstrap.sh" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Install Vagrant - https://www.vagrantup.com/docs/installation/
Make a directory, add these 2 files.
Run
vagrant up
You'll see yellow & white output from vagrant, then a lot of red & green output from the bootstrap scripts
You should see something like the following to finish:
Test it is working by opening http://127.0.0.1:8181 in your browser and you should see the "home page" looking like http://cyber-dojo.org