diff mbox

[v2] support/misc/Vagrantfile: bump to ubuntu 16.04

Message ID 1476741182-23366-1-git-send-email-angelo.compagnucci@gmail.com
State Accepted
Headers show

Commit Message

Angelo Compagnucci Oct. 17, 2016, 9:53 p.m. UTC
* Updating to ubuntu 16.04
* Fixing dependencies
* Fixing locale complaints
* Removing unused packages

Signed-off-by: Angelo Compagnucci <angelo.compagnucci@gmail.com>
---
Changelog

* Changed to C locale as suggested by Arnout Vandecappelle

 support/misc/Vagrantfile | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

Comments

Thomas Petazzoni Oct. 18, 2016, 9:46 a.m. UTC | #1
Hello,

On Mon, 17 Oct 2016 23:53:02 +0200, Angelo Compagnucci wrote:

> +		sudo apt-get purge -q -y snapd lxcfs lxd ubuntu-core-launcher snap-confine

Why are you doing this step?

Thanks,

Thomas
Angelo Compagnucci Oct. 18, 2016, 10 a.m. UTC | #2
Dear Thomas,

2016-10-18 11:46 GMT+02:00 Thomas Petazzoni <
thomas.petazzoni@free-electrons.com>:

> Hello,
>
> On Mon, 17 Oct 2016 23:53:02 +0200, Angelo Compagnucci wrote:
>
> > +             sudo apt-get purge -q -y snapd lxcfs lxd
> ubuntu-core-launcher snap-confine
>
> Why are you doing this step?
>

Ubuntu 16.04 introduced a number of services releated to the ops world and
they are not strictly releated to our use case. So I'm removing them to
free some space on disk and gain a bit of cpu cycles.


> Thanks,
>
> Thomas
> --
> Thomas Petazzoni, CTO, Free Electrons
> Embedded Linux and Kernel engineering
> http://free-electrons.com
>
Arnout Vandecappelle Oct. 18, 2016, 11:58 a.m. UTC | #3
On 17-10-16 23:53, Angelo Compagnucci wrote:
> * Updating to ubuntu 16.04
> * Fixing dependencies
> * Fixing locale complaints
> * Removing unused packages
> 
> Signed-off-by: Angelo Compagnucci <angelo.compagnucci@gmail.com>

Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>

 Regards,
 Arnout

> ---
> Changelog
> 
> * Changed to C locale as suggested by Arnout Vandecappelle
> 
>  support/misc/Vagrantfile | 9 ++++++---
>  1 file changed, 6 insertions(+), 3 deletions(-)
> 
> diff --git a/support/misc/Vagrantfile b/support/misc/Vagrantfile
> index cf269fe..5e56d5d 100644
> --- a/support/misc/Vagrantfile
> +++ b/support/misc/Vagrantfile
> @@ -12,7 +12,7 @@ VM_MEMORY=2048
>  VM_CORES=1
>  
>  Vagrant.configure('2') do |config|
> -	config.vm.box = 'ubuntu/trusty64'
> +	config.vm.box = 'bento/ubuntu-16.04'
>  
>  	config.vm.provider :vmware_fusion do |v, override|
>  		v.vmx['memsize'] = VM_MEMORY
> @@ -44,10 +44,13 @@ Vagrant.configure('2') do |config|
>  	config.vm.provision 'shell', inline:
>  		"sudo dpkg --add-architecture i386
>  		sudo apt-get -q update
> +		sudo apt-get purge -q -y snapd lxcfs lxd ubuntu-core-launcher snap-confine
> +		sudo apt-get -q -y upgrade
>  		sudo apt-get -q -y install build-essential libncurses5-dev \
> -			git bzr cvs mercurial subversion libc6:i386 unzip
> +			git bzr cvs mercurial subversion libc6:i386 unzip bc
>  		sudo apt-get -q -y autoremove
> -		sudo apt-get -q -y clean"
> +		sudo apt-get -q -y clean
> +		sudo update-locale LC_ALL=C"
>  
>  	config.vm.provision 'shell', privileged: false, inline:
>  		"echo 'Downloading and extracting buildroot #{RELEASE}'
>
Arnout Vandecappelle Oct. 18, 2016, 12:03 p.m. UTC | #4
On 18-10-16 12:00, Angelo Compagnucci wrote:
> Dear Thomas,
> 
> 2016-10-18 11:46 GMT+02:00 Thomas Petazzoni <thomas.petazzoni@free-electrons.com
> <mailto:thomas.petazzoni@free-electrons.com>>:
> 
>     Hello,
> 
>     On Mon, 17 Oct 2016 23:53:02 +0200, Angelo Compagnucci wrote:
> 
>     > +             sudo apt-get purge -q -y snapd lxcfs lxd ubuntu-core-launcher snap-confine
> 
>     Why are you doing this step?
> 
> 
> Ubuntu 16.04 introduced a number of services releated to the ops world and they
> are not strictly releated to our use case. So I'm removing them to free some
> space on disk and gain a bit of cpu cycles.

 I'm completely on board with doing that. Although it's really only snapd that
takes space (25MB). There may even be more cruft that can be removed, but people
can contribute if they want to :-).

 BTW, how are you going to gain CPU cycles this way?

> 
> 
>     Thanks,
> 
>     Thomas
>     --
>     Thomas Petazzoni, CTO, Free Electrons
>     Embedded Linux and Kernel engineering
>     http://free-electrons.com
> 
> 
> 
> 
> -- 
> Profile: http://it.linkedin.com/in/compagnucciangelo
> 
> 
> _______________________________________________
> buildroot mailing list
> buildroot@busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
>
Angelo Compagnucci Oct. 18, 2016, 12:10 p.m. UTC | #5
Dear Arnout,

2016-10-18 14:03 GMT+02:00 Arnout Vandecappelle <arnout@mind.be>:

>
>
> On 18-10-16 12:00, Angelo Compagnucci wrote:
> > Dear Thomas,
> >
> > 2016-10-18 11:46 GMT+02:00 Thomas Petazzoni <thomas.petazzoni@free-
> electrons.com
> > <mailto:thomas.petazzoni@free-electrons.com>>:
> >
> >     Hello,
> >
> >     On Mon, 17 Oct 2016 23:53:02 +0200, Angelo Compagnucci wrote:
> >
> >     > +             sudo apt-get purge -q -y snapd lxcfs lxd
> ubuntu-core-launcher snap-confine
> >
> >     Why are you doing this step?
> >
> >
> > Ubuntu 16.04 introduced a number of services releated to the ops world
> and they
> > are not strictly releated to our use case. So I'm removing them to free
> some
> > space on disk and gain a bit of cpu cycles.
>
>  I'm completely on board with doing that. Although it's really only snapd
> that
> takes space (25MB). There may even be more cruft that can be removed, but
> people
> can contribute if they want to :-).
>
>  BTW, how are you going to gain CPU cycles this way?
>

They runs several background services (like snapd, lxcfs) that potentially
could use cpu to do thier unnecessary (for us) duties.

Sincerely, Angelo


>
> >
> >
> >     Thanks,
> >
> >     Thomas
> >     --
> >     Thomas Petazzoni, CTO, Free Electrons
> >     Embedded Linux and Kernel engineering
> >     http://free-electrons.com
> >
> >
> >
> >
> > --
> > Profile: http://it.linkedin.com/in/compagnucciangelo
> >
> >
> > _______________________________________________
> > buildroot mailing list
> > buildroot@busybox.net
> > http://lists.busybox.net/mailman/listinfo/buildroot
> >
>
> --
> Arnout Vandecappelle                          arnout at mind be
> Senior Embedded Software Architect            +32-16-286500
> Essensium/Mind                                http://www.mind.be
> G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
> LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
> GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
>
Thomas Petazzoni Oct. 19, 2016, 9:01 p.m. UTC | #6
Hello,

On Mon, 17 Oct 2016 23:53:02 +0200, Angelo Compagnucci wrote:
> * Updating to ubuntu 16.04
> * Fixing dependencies
> * Fixing locale complaints
> * Removing unused packages
> 
> Signed-off-by: Angelo Compagnucci <angelo.compagnucci@gmail.com>
> ---
> Changelog

Applied to master, thanks.

Thomas
Peter Korsgaard Oct. 22, 2016, noon UTC | #7
>>>>> "Angelo" == Angelo Compagnucci <angelo.compagnucci@gmail.com> writes:

 > * Updating to ubuntu 16.04
 > * Fixing dependencies
 > * Fixing locale complaints
 > * Removing unused packages

 > Signed-off-by: Angelo Compagnucci <angelo.compagnucci@gmail.com>
 > ---
 > Changelog

 > * Changed to C locale as suggested by Arnout Vandecappelle

 >  support/misc/Vagrantfile | 9 ++++++---
 >  1 file changed, 6 insertions(+), 3 deletions(-)

 > diff --git a/support/misc/Vagrantfile b/support/misc/Vagrantfile
 > index cf269fe..5e56d5d 100644
 > --- a/support/misc/Vagrantfile
 > +++ b/support/misc/Vagrantfile
 > @@ -12,7 +12,7 @@ VM_MEMORY=2048
 >  VM_CORES=1
 
 >  Vagrant.configure('2') do |config|
 > -	config.vm.box = 'ubuntu/trusty64'
 > +	config.vm.box = 'bento/ubuntu-16.04'

What is the reason to use a base image from the bento project instead of
the official ubuntu image?

https://atlas.hashicorp.com/ubuntu/boxes/xenial64
Angelo Compagnucci Oct. 25, 2016, 8:04 a.m. UTC | #8
Hi Peter,

2016-10-22 14:00 GMT+02:00 Peter Korsgaard <peter@korsgaard.com>:

> >>>>> "Angelo" == Angelo Compagnucci <angelo.compagnucci@gmail.com>
> writes:
>
>  > * Updating to ubuntu 16.04
>  > * Fixing dependencies
>  > * Fixing locale complaints
>  > * Removing unused packages
>
>  > Signed-off-by: Angelo Compagnucci <angelo.compagnucci@gmail.com>
>  > ---
>  > Changelog
>
>  > * Changed to C locale as suggested by Arnout Vandecappelle
>
>  >  support/misc/Vagrantfile | 9 ++++++---
>  >  1 file changed, 6 insertions(+), 3 deletions(-)
>
>  > diff --git a/support/misc/Vagrantfile b/support/misc/Vagrantfile
>  > index cf269fe..5e56d5d 100644
>  > --- a/support/misc/Vagrantfile
>  > +++ b/support/misc/Vagrantfile
>  > @@ -12,7 +12,7 @@ VM_MEMORY=2048
>  >  VM_CORES=1
>
>  >  Vagrant.configure('2') do |config|
>  > -    config.vm.box = 'ubuntu/trusty64'
>  > +    config.vm.box = 'bento/ubuntu-16.04'
>
> What is the reason to use a base image from the bento project instead of
> the official ubuntu image?
>
> https://atlas.hashicorp.com/ubuntu/boxes/xenial64


The official images from Canonical are broken in many ways, for example
this bug [1] prevents the image working properly cause it lacks the vagrant
user.

Bento images are instead very well tested and triaged from the Chef team,
you can find more info here [2]

[1] https://bugs.launchpad.net/cloud-images/+bug/1569237
[2] http://chef.github.io/bento/

Sincerely, Angelo


>
>
> --
> Bye, Peter Korsgaard
>
Peter Korsgaard Oct. 25, 2016, 8:45 a.m. UTC | #9
>>>>> "Angelo" == Angelo Compagnucci <angelo.compagnucci@gmail.com> writes:

Hi,

 >> >  Vagrant.configure('2') do |config|
 >> > -    config.vm.box = 'ubuntu/trusty64'
 >> > +    config.vm.box = 'bento/ubuntu-16.04'
 >> 
 >> What is the reason to use a base image from the bento project instead of
 >> the official ubuntu image?
 >> 
 >> https://atlas.hashicorp.com/ubuntu/boxes/xenial64

 > The official images from Canonical are broken in many ways, for example
 > this bug [1] prevents the image working properly cause it lacks the vagrant
 > user.

 > Bento images are instead very well tested and triaged from the Chef team,
 > you can find more info here [2]

 > [1] https://bugs.launchpad.net/cloud-images/+bug/1569237
 > [2] http://chef.github.io/bento/

Ok, thanks - That would have been useful information in the commit message.
diff mbox

Patch

diff --git a/support/misc/Vagrantfile b/support/misc/Vagrantfile
index cf269fe..5e56d5d 100644
--- a/support/misc/Vagrantfile
+++ b/support/misc/Vagrantfile
@@ -12,7 +12,7 @@  VM_MEMORY=2048
 VM_CORES=1
 
 Vagrant.configure('2') do |config|
-	config.vm.box = 'ubuntu/trusty64'
+	config.vm.box = 'bento/ubuntu-16.04'
 
 	config.vm.provider :vmware_fusion do |v, override|
 		v.vmx['memsize'] = VM_MEMORY
@@ -44,10 +44,13 @@  Vagrant.configure('2') do |config|
 	config.vm.provision 'shell', inline:
 		"sudo dpkg --add-architecture i386
 		sudo apt-get -q update
+		sudo apt-get purge -q -y snapd lxcfs lxd ubuntu-core-launcher snap-confine
+		sudo apt-get -q -y upgrade
 		sudo apt-get -q -y install build-essential libncurses5-dev \
-			git bzr cvs mercurial subversion libc6:i386 unzip
+			git bzr cvs mercurial subversion libc6:i386 unzip bc
 		sudo apt-get -q -y autoremove
-		sudo apt-get -q -y clean"
+		sudo apt-get -q -y clean
+		sudo update-locale LC_ALL=C"
 
 	config.vm.provision 'shell', privileged: false, inline:
 		"echo 'Downloading and extracting buildroot #{RELEASE}'