2019-07-19 23:15:47 +00:00
|
|
|
FROM arm64v8/ubuntu:18.04
|
2018-02-27 17:08:27 +00:00
|
|
|
|
|
|
|
RUN groupadd --gid 1000 builduser \
|
|
|
|
&& useradd --uid 1000 --gid builduser --shell /bin/bash --create-home builduser
|
|
|
|
|
|
|
|
# Set up TEMP directory
|
|
|
|
ENV TEMP=/tmp
|
|
|
|
RUN chmod a+rwx /tmp
|
|
|
|
|
2018-10-04 16:01:16 +00:00
|
|
|
RUN dpkg --add-architecture armhf
|
|
|
|
|
|
|
|
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
2018-02-27 17:08:27 +00:00
|
|
|
bison \
|
|
|
|
build-essential \
|
|
|
|
clang \
|
|
|
|
curl \
|
|
|
|
gperf \
|
|
|
|
git \
|
|
|
|
libasound2 \
|
|
|
|
libasound2-dev \
|
2018-10-04 16:01:16 +00:00
|
|
|
libc6:armhf \
|
2018-02-27 17:08:27 +00:00
|
|
|
libcap-dev \
|
|
|
|
libcups2-dev \
|
|
|
|
libdbus-1-dev \
|
|
|
|
libgconf-2-4 \
|
|
|
|
libgconf2-dev \
|
|
|
|
libgnome-keyring-dev \
|
|
|
|
libgtk2.0-0 \
|
|
|
|
libgtk2.0-dev \
|
|
|
|
libgtk-3-0 \
|
|
|
|
libgtk-3-dev \
|
2018-10-04 16:01:16 +00:00
|
|
|
libnotify-bin \
|
2018-02-27 17:08:27 +00:00
|
|
|
libnss3 \
|
|
|
|
libnss3-dev \
|
2018-10-04 16:01:16 +00:00
|
|
|
libstdc++6:armhf \
|
2018-02-27 17:08:27 +00:00
|
|
|
libxss1 \
|
|
|
|
libxtst-dev \
|
|
|
|
libxtst6 \
|
|
|
|
lsb-release \
|
|
|
|
locales \
|
2018-10-04 16:01:16 +00:00
|
|
|
nano \
|
2018-02-27 17:08:27 +00:00
|
|
|
python-setuptools \
|
|
|
|
python-pip \
|
2018-10-04 16:01:16 +00:00
|
|
|
sudo \
|
|
|
|
unzip \
|
2018-02-27 17:08:27 +00:00
|
|
|
wget \
|
2018-10-04 16:01:16 +00:00
|
|
|
xvfb \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
2018-02-27 17:08:27 +00:00
|
|
|
|
2018-10-04 16:01:16 +00:00
|
|
|
# Install Node.js
|
|
|
|
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - \
|
|
|
|
&& DEBIAN_FRONTEND=noninteractive apt-get install -y nodejs \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
2018-02-27 17:08:27 +00:00
|
|
|
|
2018-10-04 16:01:16 +00:00
|
|
|
# crcmod is required by gsutil, which is used for filling the gclient git cache
|
2018-02-27 17:08:27 +00:00
|
|
|
RUN pip install -U crcmod
|
|
|
|
|
2019-07-19 23:15:47 +00:00
|
|
|
# dbusmock is needed for Electron tests
|
|
|
|
RUN pip install python-dbusmock
|
|
|
|
|
2018-02-27 17:08:27 +00:00
|
|
|
ADD tools/xvfb-init.sh /etc/init.d/xvfb
|
|
|
|
RUN chmod a+x /etc/init.d/xvfb
|
|
|
|
|
2018-10-04 16:01:16 +00:00
|
|
|
RUN usermod -aG sudo builduser
|
|
|
|
RUN echo 'builduser ALL=(ALL:ALL) NOPASSWD:ALL' >> /etc/sudoers
|
2018-02-27 17:08:27 +00:00
|
|
|
|
|
|
|
WORKDIR /home/builduser
|