-
Notifications
You must be signed in to change notification settings - Fork 2
/
install-apt_packages.sh
executable file
·52 lines (40 loc) · 1.63 KB
/
install-apt_packages.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/bin/bash
set -e -o pipefail
# Silence some warnings about Readline. Checkout more over her$
# https://github.com/phusion/baseimage-docker/issues/58
DEBIAN_FRONTEND=noninteractive
echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
# Add some basics
apt-get update
#--no-install-recommends
# See here for packages required to build beagle:
# https://github.com/beagle-dev/beagle-lib/wiki/LinuxInstallInstructions
apt-get install -y -qq \
lsb-release ca-certificates wget rsync curl \
less nano vim git locales make \
dirmngr \
liblz4-tool pigz bzip2 lbzip2 zstd \
cmake build-essential autoconf automake libtool git pkg-config \
ant \
openjdk-11-jre openjdk-11-jdk
#
mkdir -p /usr/local/cuda/bin
ln -s /usr/bin/gcc-9 /usr/local/cuda/bin/gcc
ln -s /usr/bin/g++-9 /usr/local/cuda/bin/g++
# Auto-detect platform
DEBIAN_PLATFORM="$(lsb_release -c -s)"
echo "Debian platform: $DEBIAN_PLATFORM"
# Add source for gcloud sdk
echo "deb http://packages.cloud.google.com/apt cloud-sdk main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
# The line below is commented out since there is not a "focal" build of cloud-sdk in the apt repo (20.04);
# remove the line above and uncomment below when available.
# echo "deb http://packages.cloud.google.com/apt cloud-sdk-$DEBIAN_PLATFORM 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 -
# Install gcloud and aws
apt-get update
apt-get install -y -qq --no-install-recommends \
google-cloud-sdk awscli
# Upgrade and clean
apt-get upgrade -y
apt-get clean -y
locale-gen en_US.UTF-8