Update defaults

This commit is contained in:
Chris Hunt 2024-08-13 11:05:25 +01:00
parent 5278b3914d
commit 687738b75b
No known key found for this signature in database
3 changed files with 17 additions and 6 deletions

View File

@ -261,6 +261,8 @@ In addition the top level name is removed as is top level uncompessed_size_mb as
## Channels
Schema 1.1 added the concept of channels. Each registry can specify the channels they support, these are defined by the tags an image has. For example you might have develop, 1.17.0 and 1.17.0-rolling-daily. When the registry json is built it loops through all the workspaces and generates a list of all the possible "Channels" (tags) that are listed in compatibility.available_tags. Available tags is an optional list, if you don't include it on any of the workspaces then your registry will work as before without presenting the end user with a channels option. You shouldn't mix and match though, if you add available tags to 1 workspace, you should add available tags to all workspaces.
If you are using channels, update processing/processjson.js and specify the `default_channel` such as `'develop'`. If you aren't using channels you don't need to do anything, it will automatically detect there are no channels and set the correct value.
 
## 6. Discovery

View File

@ -67,9 +67,14 @@ glob("**/workspace.json", async function (err, files) {
contact_url: nextConfig.env.contactUrl || null,
modified: Date.now(),
workspaces: workspaces,
channels: [...channels]
channels: [...channels],
default_channel: 'develop'
};
if (channels.size === 0) {
json.default_channel = null
}
let data = JSON.stringify(json);
fs.writeFileSync(dir + "/list.json", data);

View File

@ -2,7 +2,6 @@
"description": "Chromium is a free and open-source browser, primarily developed and maintained by Google.",
"docker_registry": "https://index.docker.io/v1/",
"image_src": "chromium.png",
"name": "kasmweb/chromium:develop",
"run_config": {
"hostname": "kasm"
},
@ -23,8 +22,13 @@
"arm64"
],
"compatibility": [
"1.13.x",
"1.14.x"
],
"uncompressed_size_mb": 2170
{
"version": "1.17.x",
"image": "kasmweb/chromium:develop",
"uncompressed_size_mb": 2170,
"available_tags": [
"develop"
]
}
]
}