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@gmail.com> Reviewed-on: https://review.coreboot.org/21582 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Chris Ching <chingcodes@chromium.org>
This commit is contained in:
parent
387dec815c
commit
bea2d75f31
|
@ -1,5 +1,5 @@
|
||||||
# This dockerfile is not meant to be used directly by docker. The
|
# 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:
|
# the docker image for this file by running:
|
||||||
#
|
#
|
||||||
# make coreboot-sdk
|
# make coreboot-sdk
|
||||||
|
@ -18,15 +18,55 @@ MAINTAINER Martin Roth <martin@coreboot.org>
|
||||||
RUN \
|
RUN \
|
||||||
useradd -p locked -m coreboot && \
|
useradd -p locked -m coreboot && \
|
||||||
apt-get -qq update && \
|
apt-get -qq update && \
|
||||||
apt-get -qqy install gcc g++ gnat-6 make patch python diffutils bison \
|
apt-get -qqy install \
|
||||||
flex git doxygen ccache subversion p7zip-full unrar-free \
|
bison \
|
||||||
m4 wget curl bzip2 vim-common cmake xz-utils pkg-config \
|
bzip2 \
|
||||||
dh-autoreconf unifont \
|
ccache \
|
||||||
libssl1.0-dev libgmp-dev zlib1g-dev libpci-dev liblzma-dev \
|
cmake \
|
||||||
libyaml-dev libncurses5-dev uuid-dev libusb-dev libftdi-dev \
|
curl \
|
||||||
libusb-1.0-0-dev libreadline-dev libglib2.0-dev libgmp-dev \
|
dh-autoreconf \
|
||||||
libelf-dev libxml2-dev libfreetype6-dev libisl-dev && \
|
diffutils \
|
||||||
apt-get clean
|
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 \
|
RUN \
|
||||||
cd /root && \
|
cd /root && \
|
||||||
|
@ -41,7 +81,11 @@ RUN \
|
||||||
RUN mkdir /home/coreboot/.ccache && \
|
RUN mkdir /home/coreboot/.ccache && \
|
||||||
chown coreboot:coreboot /home/coreboot/.ccache && \
|
chown coreboot:coreboot /home/coreboot/.ccache && \
|
||||||
mkdir /home/coreboot/cb_build && \
|
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
|
VOLUME /home/coreboot/.ccache
|
||||||
|
|
||||||
ENV PATH $PATH:/opt/xgcc/bin
|
ENV PATH $PATH:/opt/xgcc/bin
|
||||||
|
|
Loading…
Reference in New Issue