forked from BatelT/jfrog-pipelines-docker-sample
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
50 lines (40 loc) · 1.3 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
#!/bin/bash -e
echo "================= Adding some global settings ==================="
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 update
apt-get install -y \
sudo \
software-properties-common \
wget \
unzip \
curl \
openssh-client \
ftp \
gettext \
smbclient \
mercurial
echo "================= Installing Python packages =================="
apt-get install -q -y \
python-pip \
python2.7-dev
pip install -q virtualenv==16.7.0
pip install -q pyOpenSSL==19.1.0
export JQ_VERSION=1.5*
echo "================= Adding JQ $JQ_VERSION ========================="
apt-get install -y -q jq="$JQ_VERSION"
echo "================= Installing CLIs packages ======================"
export GIT_VERSION=1:2.*
echo "================= Installing Git $GIT_VERSION ===================="
add-apt-repository ppa:git-core/ppa -y
apt-get update -qq
apt-get install -y -q git="$GIT_VERSION"
JFROG_VERSION=1.33.2
echo "================= Adding jfrog-cli $JFROG_VERSION ================"
wget -nv https://api.bintray.com/content/jfrog/jfrog-cli-go/"$JFROG_VERSION"/jfrog-cli-linux-amd64/jfrog?bt_package=jfrog-cli-linux-amd64 -O jfrog
sudo chmod +x jfrog
mv jfrog /usr/bin/jfrog