-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·99 lines (84 loc) · 2.42 KB
/
install.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
#!/bin/bash -e
export DEBIAN_FRONTEND=noninteractive
apt-get clean && apt-get update
apt-get install -y apt-utils
echo "================ Installing locales ======================="
apt-get install -q locales
dpkg-divert --local --rename --add /sbin/initctl
locale-gen en_US en_US.UTF-8
dpkg-reconfigure locales
echo "HOME=$HOME"
cd /u18
echo "================= Updating package lists ==================="
apt-get update
echo "================= Adding some global settings ==================="
mv gbl_env.sh /etc/profile.d/
mkdir -p "$HOME/.ssh/"
mv config "$HOME/.ssh/"
mv 90forceyes /etc/apt/apt.conf.d/
touch "$HOME/.ssh/known_hosts"
mkdir -p /etc/drydock
echo "================= Installing basic packages ==================="
apt-get install -q \
build-essential \
curl \
gcc \
clang \
gettext \
libxml2-dev \
libxslt1-dev \
make \
nano \
openssh-client \
openssl \
software-properties-common \
sudo \
texinfo \
zip \
unzip \
wget \
rsync \
psmisc \
netcat-openbsd \
vim
echo "================= Installing Python packages ==================="
apt-get install -q -y \
python3-pip \
python3-dev
echo "================= Installing Git ==================="
add-apt-repository ppa:git-core/ppa -y
apt-get update
apt-get install -q -y git
echo "================= sonarcloud requirements ============"
apt install nodejs
export SONAR_SCANNER_VERSION=5.0.1.3006
export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linux
curl --create-dirs -sSLo $HOME/.sonar/sonar-scanner.zip \
https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$SONAR_SCANNER_VERSION-linux.zip
unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
export PATH=$SONAR_SCANNER_HOME/bin:$PATH
export SONAR_SCANNER_OPTS="-server"
curl --create-dirs -sSLo $HOME/.sonar/build-wrapper-linux-x86.zip \
https://sonarcloud.io/static/cpp/build-wrapper-linux-x86.zip
unzip -o $HOME/.sonar/build-wrapper-linux-x86.zip -d $HOME/.sonar/
export PATH=$HOME/.sonar/build-wrapper-linux-x86:$PATH
echo "================= parPE requirements ============"
apt-get install \
gfortran \
libatlas-base-dev \
libboost-all-dev \
libhdf5-dev \
cmake \
libceres-dev \
coinor-libipopt-dev \
gcovr \
valgrind \
swig \
python3 \
python3-numpy \
python3-venv \
hdf5-tools
echo "================= Cleaning package lists ==================="
apt-get clean
apt-get autoclean
apt-get autoremove