Managing the User Interface

Packages

Like the other services, the User Interface is shipped as a Docker image with port 80 exposed.

$ docker run -d -p 8000:80 screwdrivercd/ui:stable
$ open http://localhost:8000

Our images are tagged for their version (eg. 1.2.3) as well as a floating latest and stable. Most installations should be using stable or the fixed version tags.

Configuration

The User Interface has a few configuration options, the location of the API, store, and path to avatar images.

API Configuration

API hostname is set via an environment variable ECOSYSTEM_API.

Example:

$ docker run -d -p 8000:80 -e ECOSYSTEM_API=http://localhost:9000 screwdrivercd/ui:stable

Store Configuration

Log and file store hostname is set via an environment variable ECOSYSTEM_STORE.

Example:

$ docker run -d -p 8000:80 -e ECOSYSTEM_STORE=http://localhost:9001 screwdrivercd/ui:stable

Avatar Configuration

We’ve added content security protection headers to the docker image for the UI, so images loaded from external sources, such as avatars, must be configured in these headers. This is set via an environment variable AVATAR_HOSTNAME.

Example:

$ docker run -d -p 8000:80 -e AVATAR_HOSTNAME="avatars*.githubusercontent.com" screwdrivercd/ui:stable

Common examples for avatar hostnames are:

Multiple hostnames can be added at once by separating them with a space.

Example:

$ docker run -d -p 8000:80 -e AVATAR_HOSTNAME="avatars*.githubusercontent.com bitbucket.org/account/*/avatar/*" screwdrivercd/ui:stable