Skip to content

Commit

Permalink
Merge pull request #612 from emlun/vagrant-bikeshed
Browse files Browse the repository at this point in the history
Tools: Add Vagrantfile for a VM with bikeshed installed
  • Loading branch information
jcjones committed Oct 9, 2017
2 parents 089c10e + 17539f5 commit 670ecb3
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
bikeshed/
/bikeshed/
.vagrant/
index.html
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ pip install --editable ./bikeshed
cp -R .spec-data/* ./bikeshed/bikeshed/spec-data
```

Alternatively, you can use the [Vagrant VM with `bikeshed` already installed](vagrant/bikeshed).


# Continuous Integration & Branches

This repository uses `.deploy-output.sh` to generate the Editor's Draft on the `gh-pages` branch upon every merge to `master`. In order to prevent failed merges during continuous integration, the formatted Editor's Draft should not be checked in to `master`, and it is in the `.gitignore` file.
Expand Down
13 changes: 13 additions & 0 deletions vagrant/bikeshed/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Vagrant VM with `bikeshed`
===

Usage:

alice@work $ cd webauthn/vagrant/bikeshed
alice@work $ vagrant up
alice@work $ vagrant ssh
ubuntu@ubuntu-xenial $ cd /vagrant
ubuntu@ubuntu-xenial $ bikeshed spec
ubuntu@ubuntu-xenial $ exit
alice@work $ $BROWSER ../../index.html
alice@work $ vagrant destroy
10 changes: 10 additions & 0 deletions vagrant/bikeshed/Vagrantfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Vagrant.configure("2") do |config|
# Use Ubuntu 16.04 Xenial as a base box.
config.vm.box = "ubuntu/xenial64"

# Install bikeshed
config.vm.provision "shell", path: "provision.sh"

# Mount project directory at /vagrant
config.vm.synced_folder '../..', '/vagrant'
end
8 changes: 8 additions & 0 deletions vagrant/bikeshed/provision.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#! /usr/bin/env bash

sudo apt-get update -qq
sudo apt-get install -qq python python-pip python-pygments

git clone --depth=1 --branch=master https://github.com/tabatkins/bikeshed.git /vagrant/bikeshed
pip install --editable /vagrant/bikeshed
cp -R /vagrant/.spec-data/* /vagrant/bikeshed/bikeshed/spec-data/

0 comments on commit 670ecb3

Please sign in to comment.