Skip to content

Commit 220ea07

Browse files
authored
Merge pull request #48 from joewxboy/issue-47
Changed instructions for downloading and installing packages
2 parents f10c978 + e82a1b1 commit 220ea07

File tree

2 files changed

+20
-25
lines changed

2 files changed

+20
-25
lines changed

hub/03-install-agent.md

Lines changed: 16 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -135,38 +135,33 @@ Update the package manager
135135
apt-get -y update
136136
```
137137

138-
Install and test Docker
138+
Install dependencies
139139

140140
``` bash
141-
curl -fsSL get.docker.com | sh
142-
docker --version
141+
apt-get -y install jq
143142
```
144143

145-
Configure package manager for the Anax Agent:
146-
147-
If you operating system is not xenial (16.x) then update the following appropriately for bionic (18.x).
148-
*NOTE*: If you did not copy the CRLF after `EOF`, then you will need to press Enter/Return on your keyboard.
144+
Install and test Docker
149145

150146
``` bash
151-
wget -qO - http://pkg.bluehorizon.network/bluehorizon.network-public.key | apt-key add -
152-
aptrepo=testing
153-
cat <<EOF > /etc/apt/sources.list.d/bluehorizon.list
154-
deb [arch=$(dpkg --print-architecture)] http://pkg.bluehorizon.network/linux/ubuntu xenial-$aptrepo main
155-
deb-src [arch=$(dpkg --print-architecture)] http://pkg.bluehorizon.network/linux/ubuntu xenial-$aptrepo main
156-
EOF
157-
147+
curl -fsSL get.docker.com | sh
148+
docker --version
158149
```
159150

160-
Refresh package manager index list
161-
162-
``` bash
163-
apt-get -y update
164-
```
151+
Install the Anax Agent:
165152

166-
Install and the Agent
153+
*NOTE* If your operating system is Ubuntu xenial (16.x) then use `dist=xenial` below.
167154

168155
``` bash
169-
apt-get -y install bluehorizon
156+
arch=$(dpkg --print-architecture)
157+
dist=bionic
158+
version=2.24.18
159+
wget http://pkg.bluehorizon.network/linux/ubuntu/pool/main/h/horizon/bluehorizon_${version}~ppa~ubuntu.${dist}_all.deb
160+
wget http://pkg.bluehorizon.network/linux/ubuntu/pool/main/h/horizon/horizon-cli_${version}~ppa~ubuntu.${dist}_${arch}.deb
161+
wget http://pkg.bluehorizon.network/linux/ubuntu/pool/main/h/horizon/horizon_${version}~ppa~ubuntu.${dist}_${arch}.deb
162+
dpkg -i horizon-cli_${version}~ppa~ubuntu.${dist}_${arch}.deb
163+
dpkg -i horizon_${version}~ppa~ubuntu.${dist}_${arch}.deb
164+
dpkg -i bluehorizon_${version}~ppa~ubuntu.${dist}_all.deb
170165
```
171166

172167
IMPORTANT, exit out of root, back to your user account

hub/04-configure-anax.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ The results of `hzn exchange user list` should be something like the following:
3434
Next we will publish an example EdgeX service to the openhorizon hub and then tell the agent to run the service.
3535

3636
``` bash
37-
git clone https://github.com/joewxboy/horizon-edgex.git
38-
cd ./horizon-edgex
37+
git clone https://github.com/edgexfoundry-holding/open-horizon-integration.git
38+
cd ./open-horizon-integration
3939
```
4040

4141
First, we'll generate an RSA key pair to be used for signing the edge service.
@@ -61,7 +61,7 @@ The digest is recorded in the published service definition.
6161
This example service is composed of several EdgeX microservices.
6262

6363
```
64-
hzn exchange service publish -P -f ./configs/service.json
64+
hzn exchange service publish -P -f hub/configs/service.json
6565
```
6666

6767
Now check to ensure that the service definition was published and is available in the exchange:
@@ -83,7 +83,7 @@ A pattern is the easiest way for a node to indicate which services it should run
8383
Policy based service deployment is also supported, but is slightly more complex to setup.
8484

8585
```
86-
hzn exchange pattern publish -f ./configs/pattern.json
86+
hzn exchange pattern publish -f hub/configs/pattern.json
8787
```
8888

8989
Now check to ensure the pattern is available:

0 commit comments

Comments
 (0)