Container images
Container images or also Cloud Development Environments (CDEs) are used to define the configuration of a development environment. Typically, CDEs define all the software dependencies necessary for building the intended application once implemented. Users create workspaces with such an image as "blueprint", and begin contributing code to the project within this context.
CDE images are imported from a registry as part of the resources available to users on the platform. Registries are either public or private. For private registries, you need to provide credentials to authenticate properly before importing the image. Public registries, by definition, do not need credentials.
View CDE Images
The panel displays the available CDE images in the project. You may search for one or filter those used in workspaces.
A CDE image is defined by the following characteristics:
-
Basic information: Name, scope of use (platform, organization or project), URL and tag.
-
Class Level: This option defines the visibility for the CDE image based on the user's permissions.
-
Asset Information: This option allows for providing a description of the CDE.
By clicking on a CDE image, you can see a list of the CDE's versions followed by basic details such as imported date, status.
Add a CDE Image
Requires the Resources permission set to Import.
Select Add Image. The form opens as New Workspace Image and asks for:
-
URL, the full path to the image, in the form
<registry>/<namespace>/<repository>:<tag>. -
Image Name, a name to identify the image.
-
Image Tag, for example
v1.0.0. -
Private Registry (optional), the credential used to reach a private registry.
-
Attach Asset Information (optional), a description of the image.
Warning
The image must meet the SecurSpaces container image requirements before it can be used for a workspace. At minimum it needs an SSH client, Git and Git LFS, and a user named
developer with UID 1000. For the full list, see Container image requirements.
You can edit or delete a CDE image by clicking on the "..." icon next to its class level.
Where compatibility tests run
After an image is added, its compatibility test runs in a temporary workspace. For project- and organization-scoped images, the platform first selects a region available to that project or organization, preferring the default region when it qualifies. If none qualifies, it selects a region available to the requesting user. If neither has an available region, the image version fails instead of remaining in testing. Platform-scoped images use the default region.
Outside the default region, the test workspace uses the selected cluster's default storage class. Image builds use the same region selection, and their follow-up compatibility test runs in the build region. See Create an image from an existing one.
View Registry Credentials
To display credentials used in the project click on the "Credentials" button on the top right of the panel. You may search for one or filter those used in workspaces.
A Registry Credential is defined by the following characteristics:
-
Name,
-
Scope and
-
a URL.
For security purpose, no credentials are directly exposed or available for consultation.
Add a Registry Credential
Requires the Security permission set to Manage.
You can add a Registry Credential by pressing the "Add Registry Credential" button.
You will need to enter the following information:
-
Name, to identify the credentials when needed during the registration of a CDE image,
-
Username:, and
-
Password:, as credential values, and an
-
URL: where the authentication is performed.
-
Asset information, a description of the registry credential.
The platform sends the credential to regions when you add or update it. Each region's workspace service also synchronizes saved registry credentials when it starts, creating missing image pull secrets and updating outdated ones. This lets newly added or rebuilt regions use existing credentials for workspace images and image builds without requiring you to add the credentials again.
Update a Registry Credential
When a registry credential becomes invalid, a red key icon will be displayed next to the related container image, as shown in the screenshot below.
-
Hover over the icon to identify the credential.
-
Select Credentials in the top right corner.
-
Find the credential and select ... on its right.
-
Select Update and save the corrected credential information.
The platform sends the updated credential to reachable regions. A region that missed the update synchronizes the saved credential the next time its workspace service starts. This startup check isn't continuous: a pull secret that becomes missing or outdated while the service runs is checked at its next start. Synchronization failures are recorded in the workspace service logs; see Find platform and workspace logs.