restructued folders in docker
This commit is contained in:
7
server/docker/containers/README
Normal file
7
server/docker/containers/README
Normal file
@@ -0,0 +1,7 @@
|
||||
Containers
|
||||
===========
|
||||
|
||||
Structure
|
||||
|_ Containers
|
||||
|_ <name> (To ensure the name is the same as the tag name)
|
||||
|_ DockerFile
|
||||
8
server/docker/docker.go
Normal file
8
server/docker/docker.go
Normal file
@@ -0,0 +1,8 @@
|
||||
package docker
|
||||
|
||||
import (
|
||||
)
|
||||
|
||||
func BuildContainer() string{
|
||||
return "test"
|
||||
}
|
||||
@@ -3,6 +3,7 @@ package server
|
||||
import (
|
||||
"github.com/gin-gonic/gin"
|
||||
"net/http"
|
||||
docker "git.sr.ht/~akilan1999/p2p-rendering-computation/server/docker"
|
||||
)
|
||||
|
||||
func Server() {
|
||||
@@ -14,7 +15,7 @@ func Server() {
|
||||
})
|
||||
|
||||
r.GET("/create_vm", func(c *gin.Context) {
|
||||
c.JSON(http.StatusOK, ServerInfo())
|
||||
c.JSON(http.StatusOK, docker.BuildContainer())
|
||||
})
|
||||
|
||||
// Port running on
|
||||
|
||||
Reference in New Issue
Block a user