Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Basic information about Open Horizon project playlist on YouTube.

https://www.youtube.com/playlist?list=PLgohd895XSUddtseFy4HxCqTqqlYfW8Ix

https://open-horizon.github.io/quick-start


Open Horizon HUB and Agent installation

The following sample setup has been done with Ubuntu server 20.04 on Virtual Machine as a HUB and Ubuntu server 20.04 on raspberry PI as Agent.

...

https://open-horizon.github.io/common-requests/install.html

The first movie shows Ubuntu Server installation. The same steps has to be performed on both HUB and Agent. The 2nd movie says about second movie shows procedure of Open Horizon HUB installation.

Open Horizon HUB installation


The "deploy-mgmt-hub.sh" script has to downloaded first and variable "HZN_LISTEN_IP" has to be set to 0.0.0.0.

...

Code Block
sudo usermod -aG docker ${USER}


Verify that docker containers are running under 0.0.0.0.

Code Block
docker container ps

...



CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES

...



89d149cab8af openhorizon/ibm.helloworld_amd64 "/bin/sh -c /service…" 3 days ago Up About an hour faf1ba0cfc9ec7344d985b23856427c54841d773f75a9ffa8a90db5a1db9ceca-ibm.helloworld

...



38852a8c7957 openhorizon/amd64_agbot:latest "/bin/sh -c /usr/hor…" 3 days ago Up 59 minutes (healthy) 127.0.0.1:3110->8080/tcp, 0.0.0.0:3111->8083/tcp agbot

...



71cc38d60c24 openhorizon/sdo-owner-services:latest "/bin/sh -c $WORKDIR…" 3 days ago Up About an hour (healthy) 0.0.0.0:8040->8040/tcp, 0.0.0.0:8042->8042/tcp, 0.0.0.0:9008->9008/tcp sdo-owner-services

...



324a6a4009af openhorizon/amd64_cloud-sync-service:latest "/usr/edge-sync-serv…" 3 days ago Up About an hour (healthy) 0.0.0.0:9443->8080/tcp css-api

...



587afb807273 openhorizon/amd64_exchange-api:latest "/bin/sh -c '/usr/bi…" 3 days ago Up About an hour (healthy) 8083/tcp, 0.0.0.0:3090->8080/tcp exchange-api

...



15e71961ae9b mongo:latest "docker-entrypoint.s…" 3 days ago Up About an hour (healthy) 27017/tcp mongo

...



98b48ab9ccaf postgres:latest "docker-entrypoint.s…" 3 days ago Up About an hour (healthy) 5432/tcp postgres

Sample output



Configuration after installation Open Horizon Management Hub and Agent

...

export HZN_ORG_ID=myorg
export HZN_EXCHANGE_USER_AUTH=admin:<insert value from installation credentials>
export HZN_DEVICE_TOKEN=<insert value from installation credentials or use random string>
export HZN_DEVICE_ID=node1
export HZN_EXCHANGE_URL=http://<localHUB-IP-address-here>:3090/v1/
export HZN_FSS_CSSURL=http://<localHUB-IP-address-here>:9443/



How to use Open Horizon

...