use only lower case docker image names

This commit is contained in:
Alexander Bentkamp
2023-05-15 12:47:26 +02:00
parent b6052a7e89
commit ef8815f306
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -87,7 +87,7 @@ async function doImport (owner, repo, id) {
if (manifest.length !== 1) {
throw `Unexpected manifest: ${JSON.stringify(manifest)}`
}
manifest[0].RepoTags = [`github-${owner?.toString().toLowerCase()}:${repo}`]
manifest[0].RepoTags = [`g/${owner.toLowerCase()}/${repo.toLowerCase()}`]
fs.writeFileSync(`tmp/artifact_${artifactId}_inner/manifest.json`, JSON.stringify(manifest));
await runProcess(id, "tar", ["-cvf", `../archive_${artifactId}.tar`, "."], `tmp/artifact_${artifactId}_inner/`)
await runProcess(id, "docker", ["load", "-i", `tmp/archive_${artifactId}.tar`])
+3 -3
View File
@@ -16,13 +16,13 @@ import { importTrigger, importStatus } from './import.mjs'
* use a project directory instead of a docker container.
*/
const games = {
"github-hhu-adam:Robo": {
"g/hhu-adam/robo": {
name: "Adam",
module: "Adam",
dir: "../../../../Robo",
queueLength: 5
},
"github-hhu-adam:NNG4": {
"g/hhu-adam/nng4": {
name: "NNG",
module: "NNG",
dir: "../../../../NNG4",
@@ -101,7 +101,7 @@ wss.addListener("connection", function(ws, req) {
if (!reRes) { console.error(`Connection refused because of invalid URL: ${req.url}`); return; }
const owner = reRes[1]
const repo = reRes[2]
const tag = `github-${owner}:${repo}`
const tag = `g/${owner.toLowerCase()}/${repo.toLowerCase()}`
let ps;
if (!queue[tag] || queue[tag].length == 0) {