Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Vagrantfile to Ubuntu 16.04 #320

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# Vagrant Cloud name for Ubuntu 14.04 LTS
config.vm.box = "ubuntu/trusty64"
config.vm.box_url = "http://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box"
config.vm.box = "https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-vagrant.box"
config.vm.hostname = "roundware-server"

# Configure Apache port 80 to forward to host 8080
Expand Down
2 changes: 1 addition & 1 deletion deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ USERNAME="roundware"
# Use vagrant username/directories used when available.
if [ "$FOUND_VAGRANT" = true ]; then
# Change the user to the vagrant default.
USERNAME="vagrant"
USERNAME="ubuntu"
fi

# Set paths/directories
Expand Down
23 changes: 18 additions & 5 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ USERNAME="roundware"

# Use vagrant username/directories used when available.
if [ "$FOUND_VAGRANT" = true ]; then
# Change the user to the vagrant default.
USERNAME="vagrant"
# Change the user to the vagrant default. (ubuntu, in the case of the 16.04.1 image)
USERNAME="ubuntu"

# Create a symbolic link in the user's directory to the code
ln -sfn /vagrant /home/$USERNAME/roundware-server
Expand Down Expand Up @@ -68,10 +68,23 @@ apt-get update
DEBIAN_FRONTEND=noninteractive apt-get install -y \
apache2 libapache2-mod-wsgi libav-tools mediainfo pacpl icecast2 \
python-dev python-pip python-dbus python-gst0.10 \
gstreamer0.10-plugins-good gstreamer0.10-plugins-bad \
gstreamer0.10-plugins-ugly gstreamer0.10-tools \
gstreamer0.10-plugins-good \
gstreamer0.10-tools \
binutils libproj-dev gdal-bin libgdal-dev \
postgresql-server-dev-9.3 postgresql-9.3-postgis-2.1
postgresql-server-dev-9.5 postgresql-9.5-postgis-2.2 \
libsidplay1v5

# Download correct port of gstreamer-plugins-ugly/bad, for lame support
# gstreamer0.10-plugins-ugly/bad were removed from Ubuntu 16.04 in favor of gstreamer1.0
# via: https://launchpad.net/ubuntu/xenial/amd64/gstreamer0.10-plugins-ugly/0.10.19-2.1ubuntu4
wget http://launchpadlibrarian.net/225705147/gstreamer0.10-plugins-ugly_0.10.19-2.1ubuntu4_amd64.deb

# via: https://launchpad.net/ubuntu/xenial/amd64/gstreamer0.10-plugins-bad/0.10.23-8.1ubuntu3
wget http://launchpadlibrarian.net/216017741/gstreamer0.10-plugins-bad_0.10.23-8.1ubuntu3_amd64.deb

# install gstreamere-plugins-ugly/bad
dpkg -i gstreamer0.10-plugins-ugly_0.10.19-2.1ubuntu4_amd64.deb
dpkg -i gstreamer0.10-plugins-bad_0.10.23-8.1ubuntu3_amd64.deb

# Install/upgrade virtualenv
pip install -U virtualenv
Expand Down