The updater may be run in two modes:
- As a service on a dedicated machine that calls the GitHub Enterprise appliance.
- Pro: No modification to the GitHub Enterprise image necessary.
- Con: Requires an additional machine and administrative shell access.
- As a service on the GitHub Enterprise appliance.
- Pro: Quick and easy setup. No additional machine required.
- Con: Requires modifications to the GitHub Enterprise image.
- Con: Will need to reinstall the service after each upgrade of your GitHub Enterprise appliance.
- Set up a Linux or macOS machine.
- Ensure that Git and Python 3 are installed (for instance, on macOS via homebrew with
brew update && brew install python3
). - Clone this repository to your machine.
- Create a config file in
updater/config.py
in your local clone (based onupdater/config.py.example
) - Configure a service or cronjob that executes
python3 update-stats.py
once per day.
- Download the latest release from GitHub.
- Check the SHA-256 hash of the downloaded package against the value published on the release page:
sha256sum hubble-enterprise_x.y.z_all.deb
- Install the package:
sudo dpkg -i hubble-enterprise_x.y.z_all.deb
- Create a config file in
/opt/autodesk/hubble-enterprise/config.py
(based on[config.py.example](config.py.example)
). - Enable and start the periodic updater process (persistently, survives reboots):
systemctl --user enable hubble-enterprise.timer systemctl --user start hubble-enterprise.timer
- Optionally, you may trigger the updater process (just once):
systemctl --user start hubble-enterprise.service
- Remove old versions of the package (if existent):
sudo apt-get remove hubble-enterprise
- Install the new version of the package:
sudo dpkg -i hubble-enterprise_x.y.z_all.deb
- If the
systemd
files (the service or timer file) have changed, let systemd adapt to the changes:systemctl --user daemon-reexec
- Disable the periodic updater process:
systemctl --user disable hubble-enterprise.timer
- Remove the package:
sudo apt-get remove hubble-enterprise
The updater’s log is accessible as follows:
journalctl -f --user-unit hubble-enterprise.service
See the documentation for more instructions.