now works, moving onto features

why
Johannes Bülow 2024-01-28 11:24:18 +01:00
parent 6011a0ab81
commit 406361575d
Signed by untrusted user who does not match committer: jmb
GPG Key ID: B56971CF7B8F83A6
4 changed files with 7 additions and 2 deletions

2
.gitignore vendored
View File

@ -1,4 +1,6 @@
*.swp *.swp
tmp/
.vagrant
### Linux template ### Linux template
*~ *~

View File

@ -1 +1,3 @@
5533801d-70e3-4c21-9942-82d20930c789 5533801d-70e3-4c21-9942-82d20930c789
5533801d-70e3-4c21-9942-82d20930c789
5533801d-70e3-4c21-9942-82d20930c789

BIN
tmp/main

Binary file not shown.

View File

@ -35,7 +35,8 @@ func setupRouter() *gin.Engine {
router.Use(gin.Recovery()) router.Use(gin.Recovery())
router.Use(sessions.Sessions("session", store)) router.Use(sessions.Sessions("session", store))
router.Use(urlLog()) router.Use(urlLog())
router.Any("/", containerProxy) router.Use(containerProxy)
// router.Any("/", containerProxy)
return router return router
} }
@ -83,7 +84,7 @@ func containerProxy(c *gin.Context) {
c.Abort() c.Abort()
} }
// Hack to wait for Container to start up and get assigned an IP // Hack to wait for Container to start up and get assigned an IP
time.Sleep(1 * time.Second) time.Sleep(3 * time.Second)
ctip, err := pods.GetContainerIP(ct) ctip, err := pods.GetContainerIP(ct)
if err != nil { if err != nil {