Skip to content

Commit 54b9409

Browse files
committed
Support for VNC
1 parent 141ebf9 commit 54b9409

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

webconsole/webconsole/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ COPY --from=builder /go/webconsole ./
2020
ADD assets.tar.gz /
2121

2222
ENTRYPOINT ["./webconsole"]
23-
CMD ["--port", "8888", "--daemon", "unix:///docker.sock"]
23+
CMD ["-p", "8888", "-d", "unix:///docker.sock"]
1 Byte
Binary file not shown.

webconsole/webconsole/webconsole.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func main() {
5050
http.ServeFile(w, r, "/web/vnc.html")
5151
} else if r.URL.Path == "/core/display.js" {
5252
w.Header().Set("Content-Type", "application/javascript")
53-
http.ServeFile(w, r, "/web/novnc//web/novnc//web/novnc/core/display.js")
53+
http.ServeFile(w, r, "/web/novnc/core/display.js")
5454
} else if r.URL.Path == "/core/inflator.js" {
5555
http.ServeFile(w, r, "/web/novnc/core/inflator.js")
5656
w.Header().Set("Content-Type", "application/javascript")
@@ -362,7 +362,7 @@ func ExecContainer(websock *websocket.Conn) {
362362
// Base64 decode params
363363
param_array := strings.Split(string(decoded_params), ",")
364364
hash := param_array[0]
365-
session_id := param_array[1]
365+
problem_id := param_array[1]
366366
user_id := param_array[2]
367367

368368
// Build Docker CLI context for localhost
@@ -556,3 +556,4 @@ func AttachExec(ctx context.Context, cli *client.Client,
556556
}()
557557

558558
return nil
559+
}

0 commit comments

Comments
 (0)