Skip to content

v0.9.1

Choose a tag to compare

@github-actions github-actions released this 04 Dec 05:48
· 9 commits to main since this release
4c7f34d

v0.9.1 ~ "Images that ship their extensions load them from the registry"


Highlights

  • An image that ships its extensions no longer needs them in the console. On an image built with REGISTRY_PREINSTALLED_EXTENSIONS=true (Fleetbase Cloud) nothing installs at runtime, so an extension had to be added twice: its server package to the API image and its engine to the console's package.json. Now it is one line:

    • add the server package to api/extensions/composer.json;
    • build the API image with REGISTRY_FETCH_ENGINES=true. After the Composer install, php artisan registry:fetch-engines downloads each extension's ready-built console files from the registry, checks them and puts them where the API serves them;
    • the console loads them at boot, and stays the stock image.

    Private and paid extensions need the instance token at build time (the registry_token build secret) or REGISTRY_FETCH_ENGINES_ON_START=true. See api/extensions/README.md. (registry-bridge 0.4.0, #780)

  • On such an image, an extension loads only for the organizations that installed it. The image carries the engine for everyone; an organization's install record decides who gets it. (ember-core 0.4.1)

  • Extensions say why they are not available. On an image that ships its extensions, the catalog no longer asks for a console rebuild. An extension the image does not carry reads "Not on Fleetbase Cloud yet" on the cloud. (registry-bridge 0.3.2)

  • Private extensions stay out of Discover. Private listings are no longer listed or searchable in the console; an organization with access opens one by its link, and it shows under Installed. On Fleetbase Cloud a company sees only the private listings granted to it. (registry-bridge 0.4.1, with Registry Service 2.0.1)

  • Tidier Extensions pages. A long category no longer pushes the install button out of its card, and Fleetbase Cloud drops the "Only what works with my Fleetbase" filter. (registry-bridge 0.4.1)


Component Versions

  • registry-bridge: 0.4.1
  • ember-core: 0.4.1
  • Works with the Registry Service v2.0.1 and @fleetbase/cli 2.0.x

Upgrading

Nothing to do for an instance that installs extensions at runtime (the Docker setup, a self-hosted install).

For an image that ships its extensions:

  1. Add each extension's server package to api/extensions/composer.json.
  2. Build the API image with REGISTRY_FETCH_ENGINES=true (and REGISTRY_SERVICE_URL for a registry other than the default).
  3. Take those engines out of the console's package.json once they load at runtime. An engine the console was built with keeps winning over its runtime copy.

Need help?