Skip to content
This repository has been archived by the owner on Jan 1, 2020. It is now read-only.

Commit

Permalink
Vagrant box changed to bento/ubuntu-16.04
Browse files Browse the repository at this point in the history
  • Loading branch information
michalbundyra committed Sep 14, 2016
1 parent 941da45 commit f9ca95d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 deletions.
1 change: 0 additions & 1 deletion .gitignore
Expand Up @@ -4,4 +4,3 @@ config/development.config.php
data/cache/*
!data/cache/.gitkeep
phpunit.xml
ubuntu-xenial-16.04-cloudimg-console.log
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -80,8 +80,8 @@ control. (If you want to make the modifications permanent, edit the

## Using Vagrant

This skeleton includes a `Vagrantfile` based on ubuntu 16.04, and using the
ondrej/php PPA to provide PHP 7.0. Start it up using:
This skeleton includes a `Vagrantfile` based on ubuntu 16.04 (bento box)
with configured Apache2 and PHP 7.0. Start it up using:

```bash
$ vagrant up
Expand Down
12 changes: 3 additions & 9 deletions Vagrantfile
Expand Up @@ -4,13 +4,7 @@
VAGRANTFILE_API_VERSION = '2'

@script = <<SCRIPT
# Fix for https://bugs.launchpad.net/ubuntu/+source/livecd-rootfs/+bug/1561250
if ! grep -q "ubuntu-xenial" /etc/hosts; then
echo "127.0.0.1 ubuntu-xenial" >> /etc/hosts
fi
# Install dependencies
add-apt-repository ppa:ondrej/php
apt-get update
apt-get install -y apache2 git curl php7.0 php7.0-bcmath php7.0-bz2 php7.0-cli php7.0-curl php7.0-intl php7.0-json php7.0-mbstring php7.0-opcache php7.0-soap php7.0-sqlite3 php7.0-xml php7.0-xsl php7.0-zip libapache2-mod-php7.0
Expand Down Expand Up @@ -40,8 +34,8 @@ else
fi
# Reset home directory of vagrant user
if ! grep -q "cd /var/www" /home/ubuntu/.profile; then
echo "cd /var/www" >> /home/ubuntu/.profile
if ! grep -q "cd /var/www" /home/vagrant/.profile; then
echo "cd /var/www" >> /home/vagrant/.profile
fi
echo "** [ZF] Run the following command to install dependencies, if you have not already:"
Expand All @@ -50,7 +44,7 @@ echo "** [ZF] Visit http://localhost:8080 in your browser for to view the applic
SCRIPT

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = 'ubuntu/xenial64'
config.vm.box = 'bento/ubuntu-16.04'
config.vm.network "forwarded_port", guest: 80, host: 8080
config.vm.synced_folder '.', '/var/www'
config.vm.provision 'shell', inline: @script
Expand Down

0 comments on commit f9ca95d

Please sign in to comment.