mirror of
https://github.com/google/nomulus.git
synced 2025-04-30 03:57:51 +02:00
GPG1 is deprecated and stuck in v1.4 from 2018. GPG2 is recommended. We only use the GPG binary in tests and when the host system has both versions it causes problems because we hardcode the GPG import command in GpgSystemCommandExension to use the binary named "gpg", which could be linked to either GPG1 or GPG2, causing the other test to fail when the version of GPG that runs in tests is incompatible with the version of GPG that imports the keys. With this PR we only support GPG2 from now on.
60 lines
2.1 KiB
Bash
Executable file
60 lines
2.1 KiB
Bash
Executable file
#!/bin/bash
|
|
# Copyright 2019 The Nomulus Authors. All Rights Reserved.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
set -e
|
|
apt-get update -y
|
|
apt-get install locales -y
|
|
locale-gen en_US.UTF-8
|
|
apt-get install apt-utils gnupg -y
|
|
apt-get upgrade -y
|
|
# Install GPG2 (in case it was not included)
|
|
apt-get install gnupg2 -y
|
|
# Install Java
|
|
apt-get install openjdk-11-jdk-headless -y
|
|
# Install Python
|
|
apt-get install python -y
|
|
# As of March 2021 python3 is at v3.6. Get pip then install dataclasses
|
|
# (introduced in 3.7) for nom_build
|
|
apt-get install python3-pip -y
|
|
python3 -m pip install dataclasses
|
|
# Install curl.
|
|
apt-get install curl -y
|
|
# Install Node
|
|
curl -sL https://deb.nodesource.com/setup_current.x | bash -
|
|
apt-get install -y nodejs
|
|
# Install gcloud
|
|
# Cribbed from https://cloud.google.com/sdk/docs/quickstart-debian-ubuntu
|
|
apt-get install lsb-release -y
|
|
export CLOUD_SDK_REPO="cloud-sdk-$(lsb_release -c -s)"
|
|
echo "deb http://packages.cloud.google.com/apt $CLOUD_SDK_REPO main" \
|
|
| tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
|
|
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg \
|
|
| apt-key add -
|
|
apt-get update -y
|
|
apt-get install google-cloud-sdk-app-engine-java -y
|
|
# Install git
|
|
apt-get install git -y
|
|
# Install docker
|
|
apt-get install docker.io -y
|
|
# Install Chrome
|
|
apt-get install wget -y
|
|
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
|
|
apt install ./google-chrome-stable_current_amd64.deb -y
|
|
# Install libxss1 (needed by Karma)
|
|
apt install libxss1
|
|
apt-get remove apt-utils locales -y
|
|
apt-get autoclean -y
|
|
apt-get autoremove -y
|
|
rm -rf /var/lib/apt/lists/*
|