Use Docker instead of Vagrant for development

This commit is contained in:
Danny Guo 2016-12-24 13:46:07 -05:00
parent c284c64ade
commit b2fc338541
3 changed files with 14 additions and 11 deletions

5
Vagrantfile vendored
View File

@ -1,5 +0,0 @@
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.provision :shell, path: "bootstrap.sh"
end

View File

@ -1,6 +0,0 @@
#!/usr/bin/env bash
echo Installing Rust...
curl -sf https://static.rust-lang.org/rustup.sh | bash -s -- --revision=1.10.0 -y
echo "cd /vagrant" > /home/vagrant/.bashrc

14
dev Executable file
View File

@ -0,0 +1,14 @@
#!/usr/bin/env python
from __future__ import print_function
import os
from subprocess import call
import sys
try:
call(['docker', 'run', '-it', '--rm', '-v', os.getcwd() + ':/source',
'jimmycuadra/rust:1.14.0'])
except OSError:
print('Please install Docker.', file=sys.stderr)