Merge pull request #4334 from rickard-von-essen/docs-vagrantfile

website: Added docker-dev target updated Vagrantfile
This commit is contained in:
Rickard von Essen 2016-12-28 22:06:51 +01:00 committed by GitHub
commit 456eeb6ac5
2 changed files with 7 additions and 2 deletions

View File

@ -3,6 +3,11 @@ all: build
init: init:
bundle bundle
docker-dev:
docker run -it --expose 4567 -P -v "$PWD":/usr/src/app -w /usr/src/app ruby:2.3.1 \
bash -c "apt-get update && apt-get -qy install curl git libgmp3-dev nodejs && \
gem install bundler && make dev"
dev: init dev: init
PACKER_DISABLE_DOWNLOAD_FETCH=true PACKER_VERSION=1.0 bundle exec middleman server PACKER_DISABLE_DOWNLOAD_FETCH=true PACKER_VERSION=1.0 bundle exec middleman server

4
website/Vagrantfile vendored
View File

@ -5,13 +5,13 @@ $script = <<SCRIPT
sudo apt-get -y update sudo apt-get -y update
# RVM/Ruby # RVM/Ruby
sudo apt-get -qy install curl git libgmp3-dev sudo apt-get -qy install curl git libgmp3-dev nodejs
gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3 gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3
# Install rvm and the latest version of ruby # Install rvm and the latest version of ruby
curl -sSL https://get.rvm.io | bash -s stable curl -sSL https://get.rvm.io | bash -s stable
. ~/.bashrc . ~/.bashrc
. ~/.bash_profile . ~/.bash_profile
rvm install ruby-2.2.2 rvm install ruby-2.3.1
gem install bundler gem install bundler
# Middleman deps # Middleman deps