summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorralph isenmann2021-11-10 14:06:22 +0100
committerralph isenmann2021-11-10 14:06:22 +0100
commit2225fe2f0f3d76cb703ed406a3a29e53176d426b (patch)
treebd77ad07f542c4f8074e54704d2d73fcbcaf6feb
parent[server] update webserver and dbimage; refactoring (diff)
parent[client] allow to select data container images in mount config (diff)
downloadtutor-module-2225fe2f0f3d76cb703ed406a3a29e53176d426b.tar.gz
tutor-module-2225fe2f0f3d76cb703ed406a3a29e53176d426b.tar.xz
tutor-module-2225fe2f0f3d76cb703ed406a3a29e53176d426b.zip
Merge branch 'feature/docker-data-container' of git.openslx.org:openslx-ng/tutor-module into feature/docker-data-containerfeature/docker-data-container
-rw-r--r--dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/web/WebServer.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/web/WebServer.java b/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/web/WebServer.java
index cb7b5bf9..43e56137 100644
--- a/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/web/WebServer.java
+++ b/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/web/WebServer.java
@@ -101,6 +101,12 @@ public class WebServer extends NanoHTTPD {
if (uri.startsWith("/bwlp/container/clusterimages")) {
return serverContainerImages();
}
+ if (uri.startsWith("/image/container/")) {
+ if (parts.length < 4)
+ return badRequest("Bad Request");
+ if (parts[3].equals("metadata"))
+ return serveContainerImageMetaData(parts[2]);
+ }
if (uri.startsWith("/status/fileserver")) {
return serveStatus();