Skip to content

Instantly share code, notes, and snippets.

@domgreen
Last active December 1, 2016 15:16
Show Gist options
  • Save domgreen/38c28cce8b4186a07d9483ba87c163c0 to your computer and use it in GitHub Desktop.
Save domgreen/38c28cce8b4186a07d9483ba87c163c0 to your computer and use it in GitHub Desktop.
vagrant file for creating a unity based ubutu image for python dev
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "bento/ubuntu-16.04"
config.vm.network "forwarded_port", guest: 80, host: 9000
#config.vm.boot_timeout = 1200
config.vm.provider "virtualbox" do |vb|
# Display the VirtualBox GUI when booting the machine
vb.gui = true
vb.name = "dev_vm_wins"
vb.memory = "8000"
vb.customize ["modifyvm", :id, "--clipboard", "bidirectional"]
vb.customize ["modifyvm", :id, "--draganddrop", "hosttoguest"]
vb.customize ["modifyvm", :id, "--vram", "128"]
vb.customize ["modifyvm", :id, "--monitorcount", "2"]
end
config.vm.provision "shell", inline: <<-SHELL
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install -y --no-install-recommends ubuntu-desktop
sudo apt-get install -y a11y-profile-manager-indicator ubuntu-software app-install-data-partner unity-accessibility-profiles
sudo apt-get install -y network-manager-gnome gnome-power-manager gnome-system-monitor gnome-terminal snapd unity-lens-applications
sudo apt-get install -y x11-common
sudo locale-gen
sudo localectl set-locale LANG='en_US.UTF-8'
sudo add-apt-repository ppa:mystic-mirage/pycharm
sudo add-apt-repository ppa:webupd8team/atom
sudo apt-get update
sudo apt-get install -y chromium-browser git-core python3-pip virtualenv xclip
sudo apt-get install -y freetds-dev freetds-bin unixodbc unixodbc-dev tdsodbc
sudo apt-get install -y pycharm atom
sudo pip3 install --upgrade pip
sudo pip3 install virtualenvwrapper
SHELL
config.vm.provision :docker do |d|
d.run "rabbitmq"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment