mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-24 11:15:24 +01:00
bd7940217a
The vesrion contains two security bug fix - CVE-2020-0601, CVE-2020-7919 More details, see the golang milestone: https://github.com/golang/go/issues?q=milestone%3AGo1.13.8+label%3ACherryPickApproved Signed-off-by: wang yan <wangyan@vmware.com>
31 lines
1.3 KiB
Bash
Executable File
31 lines
1.3 KiB
Bash
Executable File
#!/bin/bash
|
|
set -x
|
|
|
|
set +e
|
|
sudo rm -fr /data/*
|
|
sudo mkdir -p /data
|
|
DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
|
|
set -e
|
|
if [ -z "$1" ]; then echo no ip specified; exit 1;fi
|
|
# prepare cert ...
|
|
sudo ./tests/generateCerts.sh $1
|
|
sudo mkdir -p /etc/docker/certs.d/$1 && sudo cp ./tests/harbor_ca.crt /etc/docker/certs.d/$1/ && rm -rf ~/.docker/ && mkdir -p ~/.docker/tls/$1:4443/ && sudo cp ./tests/harbor_ca.crt ~/.docker/tls/$1:4443/
|
|
|
|
sudo ./tests/hostcfg.sh
|
|
|
|
if [ "$2" = 'LDAP' ]; then
|
|
cd tests && sudo ./ldapprepare.sh && cd ..
|
|
fi
|
|
|
|
|
|
|
|
# prepare a chart file for API_DB test...
|
|
sudo curl -o $DIR/../../tests/apitests/python/mariadb-4.3.1.tgz https://storage.googleapis.com/harbor-builds/bin/charts/mariadb-4.3.1.tgz
|
|
|
|
sudo apt-get update && sudo apt-get install -y --no-install-recommends python-dev openjdk-7-jdk libssl-dev && sudo apt-get autoremove -y && sudo rm -rf /var/lib/apt/lists/*
|
|
sudo wget https://bootstrap.pypa.io/get-pip.py && sudo python ./get-pip.py && sudo pip install --ignore-installed urllib3 chardet requests && sudo pip install robotframework==3.0.4 robotframework-httplibrary requests dbbot robotframework-pabot --upgrade
|
|
sudo make swagger_client
|
|
sudo make install GOBUILDIMAGE=golang:1.13.8 COMPILETAG=compile_golangimage CLARITYIMAGE=goharbor/harbor-clarity-ui-builder:1.6.0 NOTARYFLAG=true CLAIRFLAG=true TRIVYFLAG=true CHARTFLAG=true
|
|
sleep 10
|