mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-28 03:27:41 +01:00
7873a0312a
1. Update the nginx.conf 2. Update Makefile 3. Update docker-compose 4. Update image name 5. Rename folder ui to core 6. Change the harbor-ui's package name to core 7. Remove unused static file on harbor-core 8. Remove unused code for harbor-portal Signed-off-by: Qian Deng <dengq@vmware.com>
21 lines
745 B
Bash
Executable File
21 lines
745 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
cp tests/docker-compose.test.yml make/.
|
|
|
|
mkdir -p core
|
|
cp make/common/config/core/private_key.pem /etc/core/
|
|
|
|
mkdir src/core/conf
|
|
cp make/common/config/core/app.conf src/core/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/CORE_SECRET=.*/CORE_SECRET=$CORE_SECRET/" make/common/config/adminserver/env
|
|
|
|
chmod 777 /data/
|