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.
Alternatively, you can set it up via Docker:
- Build the Docker image
$ docker build . --tag hubble-updater
- Create a config file in
updater/config.py
(based onupdater/config.py.example
) - Configure a service or cron job that executes the Docker container once a day (replace
/path/to/config.py
and/path/to/key
with your paths):docker run -it --mount type=bind,source=/path/to/config.py,target=/hubble-updater/config.py --mount type=bind,source=/path/to/key,target=/key hubble-updater
- 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):
sudo systemctl enable hubble-enterprise.timer sudo systemctl start hubble-enterprise.timer
- Optionally, you may trigger the updater process (just once):
sudo systemctl 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:sudo systemctl daemon-reexec
- Disable the periodic updater process:
sudo systemctl disable hubble-enterprise.timer
- Remove the package:
sudo apt-get remove hubble-enterprise
The updater’s log is accessible as follows:
journalctl -fu hubble-enterprise.service
See the documentation for more instructions.