Skip to content

Commit

Permalink
Change sed string for CB-DF externalIP setting
Browse files Browse the repository at this point in the history
  • Loading branch information
seokho-son authored Nov 14, 2021
1 parent 2dac17a commit ec62982
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/setcbdf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ make
str=$(curl https://api.ipify.org)
printf "cb-operator is ready. Access to it with ssh %s " $str

sudo sed -i "s/external_ip: 127.0.0.1/external_ip: `curl https://api.ipify.org`/g" $GOPATH/src/github.com/cloud-barista/cb-operator/docker-compose-mode-files/conf/cb-dragonfly/config.yaml
sudo sed -i "s/127.0.0.1/`curl https://api.ipify.org`/g" $GOPATH/src/github.com/cloud-barista/cb-operator/docker-compose-mode-files/conf/cb-dragonfly/config.yaml

sudo sed -i "s/collector_ip: 127.0.0.1/collector_ip: `curl https://api.ipify.org`/g" $GOPATH/src/github.com/cloud-barista/cb-operator/docker-compose-mode-files/conf/cb-dragonfly/config.yaml
sudo sed -i "s/127.0.0.1/`curl https://api.ipify.org`/g" $GOPATH/src/github.com/cloud-barista/cb-operator/docker-compose-mode-files/conf/cb-dragonfly/config.yaml

nohup sudo $GOPATH/src/github.com/cloud-barista/cb-operator/src/operator run -f $GOPATH/src/github.com/cloud-barista/cb-operator/docker-compose-mode-files/docker-compose-df-only.yaml 1>/dev/null 2>&1 &
# $GOPATH/src/github.com/cloud-barista/cb-operator/src/operator info -f $GOPATH/src/github.com/cloud-barista/cb-operator/docker-compose-mode-files/docker-compose-df-only.yaml
Expand Down

0 comments on commit ec62982

Please sign in to comment.