Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Services ports #53

Open
drypatrick opened this issue Jan 21, 2023 · 0 comments
Open

Services ports #53

drypatrick opened this issue Jan 21, 2023 · 0 comments

Comments

@drypatrick
Copy link

drypatrick commented Jan 21, 2023

In the shell scripts, the ports should be inherited from .env file, not hard coded as I found in

for example, in services

waitForOrion and waitForIoTAgent fuction the ports should be referenced as environment variable (${ORION_PORT} and
${IOTA_NORTH_PORT} instead of 1026 and 4041), as in other parts of the script.

waitForOrion () {
	echo -e "\n⏳ Waiting for \033[1;34mOrion\033[0m to be available\n"

	while ! [ `docker inspect --format='{{.State.Health.Status}}' fiware-orion` == "healthy" ]
	do
	  echo -e "Context Broker HTTP state: " `curl -s -o /dev/null -w %{http_code} 'http://localhost:1026/version'` " (waiting for 200)"
	  sleep 1
	done
}

waitForIoTAgent () {
	echo -e "\n⏳ Waiting for \033[1;36mIoT-Agent\033[0m to be available\n"
	while ! [ `docker inspect --format='{{.State.Health.Status}}' fiware-iot-agent` == "healthy" ]

	do 
	  echo -e "IoT Agent HTTP state: " `curl -s -o /dev/null -w %{http_code} 'http://localhost:4041/version'` " (waiting for 200)"
	  sleep 1
	done
}
@drypatrick drypatrick changed the title services ports Services ports Jan 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant