1 # start with Ubuntu 20.04LTS
6 # base build and check tools and libraries layer
9 && DEBIAN_FRONTEND=noninteractive apt-get install -fy \
65 && rm -rf /var/lib/apt/lists/ \
71 && DEBIAN_FRONTEND=noninteractive apt-get install -y software-properties-common \
72 && add-apt-repository universe \
73 && DEBIAN_FRONTEND=noninteractive apt-get install -y python python2 \
74 && curl https://bootstrap.pypa.io/2.7/get-pip.py --output get-pip.py \
75 && python2 get-pip.py \
76 && rm -rf /var/lib/apt/lists/ \
80 && pip3 install circleci attrs coloredlogs PyGithub pygit future \
84 # build and install gn
86 && git clone https://gn.googlesource.com/gn \
88 && python3 build/gen.py \
90 && cp out/gn /usr/local/bin \
95 # Install bloat comparison tools
97 && git clone https://github.com/google/bloaty.git \
98 && mkdir -p bloaty/build \
107 # NodeJS: install a newer version than what apt-get would read
108 # This installs the latest LTS version of nodejs
112 && wget https://nodejs.org/dist/v12.19.0/node-v12.19.0-linux-x64.tar.xz \
113 && tar xfvJ node-v12.19.0-linux-x64.tar.xz \
114 && mv node-v12.19.0-linux-x64 /opt/ \
115 && ln -s /opt/node-v12.19.0-linux-x64 /opt/node \
116 && ln -s /opt/node/bin/* /usr/bin \