diff mbox series

[for,2.10,v2,5/6] docker: don't install device-tree-compiler build-deps in travis.docker

Message ID 20170725133425.436-6-alex.bennee@linaro.org
State Superseded
Headers show
Series Various docker fixes | expand

Commit Message

Alex Bennée July 25, 2017, 1:34 p.m. UTC
Installing the device-tree-compiler build-deps is a little extreme. We
only actually need the binary so include it with the other packages.

Suggested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>

---
 tests/docker/dockerfiles/travis.docker | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

-- 
2.13.0

Comments

Philippe Mathieu-Daudé July 25, 2017, 2:17 p.m. UTC | #1
On 07/25/2017 10:34 AM, Alex Bennée wrote:
> Installing the device-tree-compiler build-deps is a little extreme. We

> only actually need the binary so include it with the other packages.

> 

> Suggested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>

> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>


before:

$ docker images qemu:travis --no-trunc 
--format="{{.Repository}}:{{.Tag}}\t{{.Size}}"

qemu:travis	6.16GB

after:

qemu:travis	5.92GB

not a big win :(

Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>

Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>


(not a "bugfix" btw)

> ---

>   tests/docker/dockerfiles/travis.docker | 3 +--

>   1 file changed, 1 insertion(+), 2 deletions(-)

> 

> diff --git a/tests/docker/dockerfiles/travis.docker b/tests/docker/dockerfiles/travis.docker

> index 636fa590a5..57ac8e1419 100644

> --- a/tests/docker/dockerfiles/travis.docker

> +++ b/tests/docker/dockerfiles/travis.docker

> @@ -1,6 +1,5 @@

>   FROM quay.io/travisci/travis-ruby

>   RUN apt-get update

>   RUN apt-get -y build-dep qemu

> -RUN apt-get -y build-dep device-tree-compiler

> -RUN apt-get -y install python2.7 python-yaml dh-autoreconf gdb strace lsof net-tools

> +RUN apt-get -y install device-tree-compiler python2.7 python-yaml dh-autoreconf gdb strace lsof net-tools

>   ENV FEATURES pyyaml

>
Philippe Mathieu-Daudé July 25, 2017, 2:28 p.m. UTC | #2
On 07/25/2017 11:17 AM, Philippe Mathieu-Daudé wrote:
> before:

> 

> $ docker images qemu:travis --no-trunc 

> --format="{{.Repository}}:{{.Tag}}\t{{.Size}}"

> 

> qemu:travis    6.16GB

> 

> after:

> 

> qemu:travis    5.92GB


I mis-selected, the correct size this patch applied:

qemu:travis	6.03GB

> 

> not a big win :(
Alex Bennée July 25, 2017, 2:39 p.m. UTC | #3
Philippe Mathieu-Daudé <f4bug@amsat.org> writes:

> On 07/25/2017 10:34 AM, Alex Bennée wrote:

>> Installing the device-tree-compiler build-deps is a little extreme. We

>> only actually need the binary so include it with the other packages.

>>

>> Suggested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>

>> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>

>

> before:

>

> $ docker images qemu:travis --no-trunc

> --format="{{.Repository}}:{{.Tag}}\t{{.Size}}"

>

> qemu:travis	6.16GB

>

> after:

>

> qemu:travis	5.92GB

>

> not a big win :(

>

> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>

> Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>

>

> (not a "bugfix" btw)


It's arguable - it was certainly wrong as we just need the compiler and
I'm not sure build-dep actually would have pulled it on (although the
qemu build-dep probably does).

>

>> ---

>>   tests/docker/dockerfiles/travis.docker | 3 +--

>>   1 file changed, 1 insertion(+), 2 deletions(-)

>>

>> diff --git a/tests/docker/dockerfiles/travis.docker b/tests/docker/dockerfiles/travis.docker

>> index 636fa590a5..57ac8e1419 100644

>> --- a/tests/docker/dockerfiles/travis.docker

>> +++ b/tests/docker/dockerfiles/travis.docker

>> @@ -1,6 +1,5 @@

>>   FROM quay.io/travisci/travis-ruby

>>   RUN apt-get update

>>   RUN apt-get -y build-dep qemu

>> -RUN apt-get -y build-dep device-tree-compiler

>> -RUN apt-get -y install python2.7 python-yaml dh-autoreconf gdb strace lsof net-tools

>> +RUN apt-get -y install device-tree-compiler python2.7 python-yaml dh-autoreconf gdb strace lsof net-tools

>>   ENV FEATURES pyyaml

>>



--
Alex Bennée
diff mbox series

Patch

diff --git a/tests/docker/dockerfiles/travis.docker b/tests/docker/dockerfiles/travis.docker
index 636fa590a5..57ac8e1419 100644
--- a/tests/docker/dockerfiles/travis.docker
+++ b/tests/docker/dockerfiles/travis.docker
@@ -1,6 +1,5 @@ 
 FROM quay.io/travisci/travis-ruby
 RUN apt-get update
 RUN apt-get -y build-dep qemu
-RUN apt-get -y build-dep device-tree-compiler
-RUN apt-get -y install python2.7 python-yaml dh-autoreconf gdb strace lsof net-tools
+RUN apt-get -y install device-tree-compiler python2.7 python-yaml dh-autoreconf gdb strace lsof net-tools
 ENV FEATURES pyyaml