This repository has been archived by the owner on Nov 17, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Home
Michael Dye edited this page Aug 4, 2017
·
4 revisions
To install the bluehorizon deb package on a system running debian or ubuntu:
wget -qO - http://pkg.bluehorizon.network/bluehorizon.network-public.key | sudo apt-key add -
- For RPi stable:
cat <<EOF > /etc/apt/sources.list.d/bluehorizon.list
deb [arch=armhf] http://pkg.bluehorizon.network/linux/raspbian jessie main
deb [arch=armhf] http://pkg.bluehorizon.network/linux/raspbian jessie-updates main
EOF
- For amd64 testing:
cat <<EOF > /etc/apt/sources.list.d/bluehorizon.list
deb [arch=amd64] http://pkg.bluehorizon.network/linux/ubuntu xenial-testing main
EOF
-
Install docker:
curl -s https://get.docker.com/ | bash
-
Install bluehorizon:
apt update
apt install bluehorizon
-
This will install docker as a prereq, then the horizon.service will be installed and start automatically.
-
(Optional) If you want to change horizon settings:
systemctl stop horizon.service
# edit files in /etc/default/horizon and /etc/horizon/*
systemctl start horizon.service
- (Optional) If you want Horizon workloads' logs to go to individual files in
/var/log/workload
:
cat <<'EOF' > /etc/rsyslog.d/10-horizon-docker.conf
$template DynamicWorkloadFile,"/var/log/workload/%syslogtag:R,ERE,1,DFLT:.*workload-([^\[]+)--end%.log"
:syslogtag, startswith, "workload-" -?DynamicWorkloadFile
& stop
:syslogtag, startswith, "docker/" -/var/log/docker_containers.log
& stop
:syslogtag, startswith, "docker" -/var/log/docker.log
& stop
EOF
service rsyslog restart
- Now point your browser to http://localhost/ to register your edge node with Blue Horizon.