From b84571840a590c7b543bb0514a389c9c80740bb6 Mon Sep 17 00:00:00 2001
From: David Garcia Quintas <dgq@google.com>
Date: Wed, 16 Mar 2016 16:46:59 -0700
Subject: [PATCH] moved apt-gets from .sh file to dockerfile for nanopb

---
 .../tools/dockerfile/test/sanity/Dockerfile.template      | 8 +++++++-
 tools/distrib/check_nanopb_output.sh                      | 2 --
 tools/dockerfile/test/sanity/Dockerfile                   | 2 +-
 3 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/templates/tools/dockerfile/test/sanity/Dockerfile.template b/templates/tools/dockerfile/test/sanity/Dockerfile.template
index ad1d92e7cb..9706380709 100644
--- a/templates/tools/dockerfile/test/sanity/Dockerfile.template
+++ b/templates/tools/dockerfile/test/sanity/Dockerfile.template
@@ -34,7 +34,13 @@
   <%include file="../../apt_get_basic.include"/>
   #========================
   # Sanity test dependencies
-  RUN apt-get update && apt-get install -y python-pip
+  RUN apt-get update && apt-get install -y \
+        python-pip \
+        autoconf \
+        automake \
+        libtool \
+        curl \
+        python-virtualenv
   RUN pip install simplejson mako
 
   #===================
diff --git a/tools/distrib/check_nanopb_output.sh b/tools/distrib/check_nanopb_output.sh
index 5f49ebb93e..51c4d75041 100755
--- a/tools/distrib/check_nanopb_output.sh
+++ b/tools/distrib/check_nanopb_output.sh
@@ -30,8 +30,6 @@
 
 set -ex
 
-apt-get install -y autoconf automake libtool curl python-virtualenv
-
 readonly NANOPB_TMP_OUTPUT="$(mktemp -d)"
 
 # install protoc version 3
diff --git a/tools/dockerfile/test/sanity/Dockerfile b/tools/dockerfile/test/sanity/Dockerfile
index 1935f67560..01ca268f84 100644
--- a/tools/dockerfile/test/sanity/Dockerfile
+++ b/tools/dockerfile/test/sanity/Dockerfile
@@ -65,7 +65,7 @@ RUN apt-get update && apt-get install -y time && apt-get clean
 
 #========================
 # Sanity test dependencies
-RUN apt-get update && apt-get install -y python-pip
+RUN apt-get update && apt-get install -y       python-pip       autoconf       automake       libtool       curl       python-virtualenv
 RUN pip install simplejson mako
 
 #===================
-- 
GitLab