mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-23 10:45:45 +01:00
b8a48d0326
The project list will contain all public projects, user is a member of this project, or user is in the group which is a member of this projects. Change the behaviour of user roles, if the user is not a member of this project, then return the user's groups role of current project
21 lines
732 B
Bash
Executable File
21 lines
732 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
cp tests/docker-compose.test.yml make/.
|
|
|
|
mkdir -p /etc/ui
|
|
cp make/common/config/ui/private_key.pem /etc/ui/
|
|
|
|
mkdir src/ui/conf
|
|
cp make/common/config/ui/app.conf src/ui/conf/
|
|
if [ "$(uname)" == "Darwin" ]; then
|
|
IP=`ifconfig en0 | grep "inet " | grep -Fv 127.0.0.1 | awk '{print $2}'`
|
|
else
|
|
IP=`ip addr s eth0 |grep "inet "|awk '{print $2}' |awk -F "/" '{print $1}'`
|
|
fi
|
|
echo "server ip is "$IP
|
|
sed -i -r "s/POSTGRESQL_HOST=postgresql/POSTGRESQL_HOST=$IP/" make/common/config/adminserver/env
|
|
sed -i -r "s|REGISTRY_URL=http://registry:5000|REGISTRY_URL=http://$IP:5000|" make/common/config/adminserver/env
|
|
sed -i -r "s/UI_SECRET=.*/UI_SECRET=$UI_SECRET/" make/common/config/adminserver/env
|
|
|
|
chmod 777 /data/
|