blob: 6a80bc72bfbf97b8469ef329f9653cd7696b9279 [file] [log] [blame]
# Copyright 2019 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Creates a Docker image containing necessary dependencies of ssh_client and a
# command to build all of Secure Shell.
# For details on rebuilding & publishing the container, see:
# http://g3doc/security/nassh/g3doc/
# Although all changes at this point can be done in the kokoro/build script.
FROM debian:buster
ENV DEBIAN_FRONTEND noninteractive
# Since the container runs as root, don't muck with the cache files as the user
# won't be root outside of the container. Shouldn't be a performance hit.
# Install needed packages for building ssh_client.
RUN dpkg --add-architecture i386
RUN apt-get update && apt-get install -y --no-install-recommends apt-utils
# Keep this in sync with the's Development Tools section.
# We also list packages needed by Chrome itself for headless tests.
RUN apt-get --assume-yes install --no-install-recommends \
gcc g++ libstdc++6:i386 libglib2.0-0:i386 git make cmake lbzip2 \
python python2.7 python3 pylint3 python3-requests python3-wcwidth \
wget curl zlib1g-dev zip unzip rsync pkg-config xz-utils patch \
libasound2 libatk1.0-0 libatk-bridge2.0-0 libatspi2.0-0 libcairo2 \
libcups2 libdbus-1-3 libexpat1 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 \
libnspr4 libnss3 libpango-1.0-0 libuuid1 libx11-6 libx11-xcb1 libxcb1 \
libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 \
libxrandr2 libxrender1 libxss1 libxtst6 default-jre-headless libxcb-dri3-0 \
libdrm2 libgbm1
# Clean out any caches. We won't need them anymore.
RUN apt-get clean
# Set git config to dummy values for webports patch to work.
# When patches are applied, webports generates local git repos & commits.
RUN git config --system ""
RUN git config --system "Secure Shell Dummy Name"
CMD /libapps/kokoro/build