2016-08-08 10:40:14 +02:00
|
|
|
#!/bin/bash
|
2017-01-12 11:29:02 +01:00
|
|
|
set -e
|
2016-10-19 08:32:00 +02:00
|
|
|
cp tests/docker-compose.test.yml make/.
|
2016-06-15 05:19:10 +02:00
|
|
|
|
2017-03-30 05:04:09 +02:00
|
|
|
mkdir -p /etc/ui
|
2016-10-19 08:32:00 +02:00
|
|
|
cp make/common/config/ui/private_key.pem /etc/ui/.
|
2016-06-07 06:19:48 +02:00
|
|
|
|
2018-02-02 09:17:58 +01:00
|
|
|
mkdir src/ui/conf
|
|
|
|
cp make/common/config/ui/app.conf src/ui/conf/.
|
2017-11-15 07:49:14 +01:00
|
|
|
IP=`ip addr s eth0 |grep "inet "|awk '{print $2}' |awk -F "/" '{print $1}'`
|
|
|
|
echo "server ip is "$IP
|
|
|
|
sed -i -r "s/MYSQL_HOST=mysql/MYSQL_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
|
2017-01-12 11:29:02 +01:00
|
|
|
sed -i -r "s/UI_SECRET=.*/UI_SECRET=$UI_SECRET/" make/common/config/adminserver/env
|
2017-02-15 08:25:59 +01:00
|
|
|
|
2017-11-15 07:49:14 +01:00
|
|
|
chmod 777 /data/
|