[coreboot-gerrit] Change in coreboot[master]: util/docker: Update coreboot-sdk dockerfile

Martin Roth (Code Review) gerrit at coreboot.org
Mon Sep 18 04:58:49 CEST 2017


Martin Roth has uploaded this change for review. ( https://review.coreboot.org/21582


Change subject: util/docker: Update coreboot-sdk dockerfile
......................................................................

util/docker: Update coreboot-sdk dockerfile

- Fix typo in comment
- Aphabetize package list and put each package on a single line
- Add environment variables into coreboot user's .bashrc file
- Add openssl, qemu, and shellcheck to installed packages

Change-Id: I37771be5d3ecaa61d76d99e689b422144a6d7dc6
Signed-off-by: Martin Roth <gaumless at gmail.com>
---
M util/docker/coreboot-sdk/Dockerfile
1 file changed, 55 insertions(+), 11 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/82/21582/1

diff --git a/util/docker/coreboot-sdk/Dockerfile b/util/docker/coreboot-sdk/Dockerfile
index 8345c18..512db06 100644
--- a/util/docker/coreboot-sdk/Dockerfile
+++ b/util/docker/coreboot-sdk/Dockerfile
@@ -1,5 +1,5 @@
 # This dockerfile is not meant to be used directly by docker.  The
-# {{}} varibles are replaced with values by the makefile.  Please generate
+# {{}} variables are replaced with values by the makefile.  Please generate
 # the docker image for this file by running:
 #
 #   make coreboot-sdk
@@ -18,15 +18,55 @@
 RUN \
 	useradd -p locked -m coreboot && \
 	apt-get -qq update && \
-	apt-get -qqy install gcc g++ gnat-6 make patch python diffutils bison \
-		flex git doxygen ccache subversion p7zip-full unrar-free \
-		m4 wget curl bzip2 vim-common cmake xz-utils pkg-config \
-		dh-autoreconf unifont \
-		libssl1.0-dev libgmp-dev zlib1g-dev libpci-dev liblzma-dev \
-		libyaml-dev libncurses5-dev uuid-dev libusb-dev libftdi-dev \
-		libusb-1.0-0-dev libreadline-dev libglib2.0-dev libgmp-dev \
-		libelf-dev libxml2-dev libfreetype6-dev libisl-dev && \
-	apt-get clean
+	apt-get -qqy install \
+		bison \
+		bzip2 \
+		ccache \
+		cmake \
+		curl \
+		dh-autoreconf \
+		diffutils \
+		doxygen \
+		flex \
+		g++ \
+		gawk \
+		gcc \
+		git \
+		gnat-6 \
+		libelf-dev \
+		libfreetype6-dev \
+		libftdi-dev \
+		libglib2.0-dev \
+		libgmp-dev \
+		libgmp-dev \
+		libisl-dev \
+		liblzma-dev \
+		libncurses5-dev \
+		libpci-dev \
+		libreadline-dev \
+		libssl1.0-dev \
+		libusb-1.0-0-dev \
+		libusb-dev \
+		libxml2-dev \
+		libyaml-dev \
+		m4 \
+		make \
+		openssl \
+		p7zip-full \
+		patch \
+		pkg-config \
+		python \
+		qemu \
+		shellcheck \
+		subversion \
+		unifont \
+		unrar-free \
+		uuid-dev \
+		vim-common \
+		wget \
+		xz-utils \
+		zlib1g-dev \
+	&& apt-get clean
 
 RUN \
 	cd /root && \
@@ -41,7 +81,11 @@
 RUN mkdir /home/coreboot/.ccache && \
 	chown coreboot:coreboot /home/coreboot/.ccache && \
 	mkdir /home/coreboot/cb_build && \
-	chown coreboot:coreboot /home/coreboot/cb_build
+	chown coreboot:coreboot /home/coreboot/cb_build && \
+	echo "export PATH=$PATH:/opt/xgcc/bin" >> /home/coreboot/.bashrc && \
+	echo "export SDK_VERSION={{SDK_VERSION}}" >> /home/coreboot/.bashrc && \
+	echo "export SDK_COMMIT={{DOCKER_COMMIT}}" >> /home/coreboot/.bashrc
+
 VOLUME /home/coreboot/.ccache
 
 ENV PATH $PATH:/opt/xgcc/bin

-- 
To view, visit https://review.coreboot.org/21582
To unsubscribe, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I37771be5d3ecaa61d76d99e689b422144a6d7dc6
Gerrit-Change-Number: 21582
Gerrit-PatchSet: 1
Gerrit-Owner: Martin Roth <martinroth at google.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20170918/754acd95/attachment.html>


More information about the coreboot-gerrit mailing list