Skip to content
Snippets Groups Projects
Commit ea67bcbe authored by Abdulhadi Al-Sayed's avatar Abdulhadi Al-Sayed
Browse files

Bug fix

parent 2f728a8e
No related branches found
No related tags found
No related merge requests found
Subproject commit fa7f1a7a4d99081feb9b7f641421218b02ed140b Subproject commit f615eaf48238de159ec104ff04e2b6a4fbe88070
...@@ -11,16 +11,17 @@ while [ $secs -gt 0 ]; do ...@@ -11,16 +11,17 @@ while [ $secs -gt 0 ]; do
done done
# Get both downscale and upscale webhooks from stack output and feed to service project directory # Get both downscale and upscale webhooks from stack output and feed to service project directory
openstack stack output show --all scaling_scheduler | grep -Eo "(https)://[a-zA-Z0-9./?&=_%:-]*" > infcode-golang/main/scheduleroutputdata.txt openstack stack output show --all scaling_scheduler | grep -Eo "(https)://[a-zA-Z0-9./?&=_%:-]*" > infcode-golang/scheduleroutputdata.txt
# Install golang if not installed # Install golang if not installed
sudo apt-get update sudo apt-get update
sudo apt-get -y install golang-go sudo apt-get -y install golang-go
# Build scheduler service # Build scheduler service
go build /home/ubuntu/scaling_scheduler/infcode-golang/main/main.go go build /home/ubuntu/scaling_scheduler/infcode-golang/main/main.go -o /home/ubuntu/scaling_scheduler/infcode-golang/main/main
# Create symlink for systemctl to run go service # Create symlink for systemctl to run go service
sudo systemctl disable scheduler
sudo systemctl link /home/ubuntu/scaling_scheduler/infcode-golang/main/scheduler.service sudo systemctl link /home/ubuntu/scaling_scheduler/infcode-golang/main/scheduler.service
# Activate service with systemd # Activate service with systemd
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment