From 31edcaf84002b7d9a024fd8cb7764d30f2099960 Mon Sep 17 00:00:00 2001 From: Anand Krishnamoorthy Date: Sat, 28 Jan 2017 00:33:23 -0500 Subject: [PATCH] Update Dockerfile reconfigure bash to dash and install additional packages --- build-yocto/Dockerfile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/build-yocto/Dockerfile b/build-yocto/Dockerfile index 58eb645..cbf6db7 100644 --- a/build-yocto/Dockerfile +++ b/build-yocto/Dockerfile @@ -1,4 +1,6 @@ -FROM ubuntu:14.04 +FROM ubuntu:16.04 + +ENV DEBIAN_FRONTEND noninteractive RUN apt-get update && apt-get -y upgrade @@ -12,6 +14,12 @@ RUN apt-get install -y bzip2 dosfstools mtools parted syslinux tree RUN curl http://storage.googleapis.com/git-repo-downloads/repo > /usr/local/bin/repo RUN chmod a+x /usr/local/bin/repo +# Additional host packages +RUN apt-get install -y openssh-client coreutils libreadline-dev rpcbind nfs-common vim + +# Set the default shell to bash instead of dash +RUN echo "dash dash/sh boolean false" | debconf-set-selections && dpkg-reconfigure dash + # Create user "jenkins" RUN id jenkins 2>/dev/null || useradd --uid 1000 --create-home jenkins