use only lower case docker image names
This commit is contained in:
+2
-2
@@ -68,8 +68,8 @@
|
||||
"start_client": "NODE_ENV=development webpack-dev-server --hot",
|
||||
"build": "NODE_ENV=production webpack",
|
||||
"production": "NODE_ENV=production node server/index.mjs",
|
||||
"build_robo": "rm -rf ./Robo && git clone https://github.com/hhu-adam/Robo && docker build ./Robo --file ./Robo/Dockerfile --tag github-hhu-adam:Robo && rm -rf ./Robo",
|
||||
"build_nng": "rm -rf ./NNG4 && git clone https://github.com/hhu-adam/NNG4 && docker build ./NNG4 --file ./NNG4/Dockerfile --tag github-hhu-adam:NNG4 && rm -rf ./NNG4",
|
||||
"build_robo": "rm -rf ./Robo && git clone https://github.com/hhu-adam/Robo && docker build ./Robo --file ./Robo/Dockerfile --tag g/hhu-adam/robo && rm -rf ./Robo",
|
||||
"build_nng": "rm -rf ./NNG4 && git clone https://github.com/hhu-adam/NNG4 && docker build ./NNG4 --file ./NNG4/Dockerfile --tag g/hhu-adam/nng4 && rm -rf ./NNG4",
|
||||
"update_lean": "./UPDATE_LEAN.sh"
|
||||
},
|
||||
"eslintConfig": {
|
||||
|
||||
+1
-1
@@ -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
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user