10/31/2023 0 Comments Vagrant boxes ubuntu![]() ![]() The LTS release gets support for five years while the non-LTS releases are only supported for 9 months. Ubuntu 20.04?Īt the time of this writing Ubuntu has recently released 20.10 (in October of 2020) so why are we using 20.04? The reason for this is that while Ubuntu releases a new version every 6 months they only create a Long Term Support (LTS) release once every two years in April. ![]() We’re going to use the generic/ubuntu2004 box which contains Ubuntu 20.04. When picking a box it should match the version of whatever operating system will be installed on our production environment so we can reduce those “works on my machine” bugs. These boxes can be gigabytes in size but the bulk of the box is an image of the hard drive in it’s initial state.Ī list of possible boxes can be found on the public Vagrant box catalog. Vagrant uses “boxes” which are the package format for Vagrant environments. In this series, we’re using version 2.2.14 of Vagrant and 6.1.16 of VirtualBox. You’ll need them in order to follow along with this article. If you haven’t already, make sure to install VirtualBox and Vagrant. In this article, we’ll discuss Vagrant Boxes, pick a specific box that matches our target production environment, and create our base Vagrantfile. provision :shell, inline: "sudo apt install -y fonts-noto"Ĭonfig. provision :shell, inline: "sudo apt install -y fcitx-mozc"Ĭonfig. provision :shell, inline: "sudo apt install -y firefox"Ĭonfig. provision :shell, inline: "sudo apt install -y chromium-browser"Ĭonfig. provision :shell, inline: "sudo apt install -y google-chrome-stable"Ĭonfig. provision :shell, inline: "sudo usermod -a -G sudo vagrant"Ĭonfig. provision :shell, inline: "sudo apt install -y -no-install-recommends virtualbox-guest-dkms virtualbox-guest-utils virtualbox-guest-x11"Ĭonfig. provision :shell, inline: "sudo apt install -y -no-install-recommends ubuntu-desktop"Ĭonfig. provision :shell, inline: "sudo apt upgrade -y"Ĭonfig. ![]() provision :shell, inline: "sudo apt update -y"Ĭonfig. provision :shell, inline: "sudo sh -c 'echo \"deb stable main \" > /etc/apt//google.list'"Ĭonfig. provision :shell, inline: "wget -q -O - |sudo apt-key add -"Ĭonfig. synced_folder ".", "/vagrant", type: "virtualbox"Ĭonfig. ![]() # Currently "ubuntu/bionic64" on VirtualBox requires `type: "virtualbox"`Ĭonfig. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |