restructued folders in docker
This commit is contained in:
2
go.mod
2
go.mod
@@ -8,7 +8,7 @@ require (
|
|||||||
github.com/christophwitzko/go-curl v0.0.0-20171216141518-4203158d6acb
|
github.com/christophwitzko/go-curl v0.0.0-20171216141518-4203158d6acb
|
||||||
github.com/containerd/containerd v1.4.3 // indirect
|
github.com/containerd/containerd v1.4.3 // indirect
|
||||||
github.com/docker/distribution v2.7.1+incompatible // indirect
|
github.com/docker/distribution v2.7.1+incompatible // indirect
|
||||||
github.com/docker/docker v20.10.2+incompatible
|
github.com/docker/docker v20.10.2+incompatible // indirect
|
||||||
github.com/docker/go-connections v0.4.0 // indirect
|
github.com/docker/go-connections v0.4.0 // indirect
|
||||||
github.com/docker/go-units v0.4.0 // indirect
|
github.com/docker/go-units v0.4.0 // indirect
|
||||||
github.com/fsouza/go-dockerclient v1.7.0 // indirect
|
github.com/fsouza/go-dockerclient v1.7.0 // indirect
|
||||||
|
|||||||
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 (
|
import (
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
docker "git.sr.ht/~akilan1999/p2p-rendering-computation/server/docker"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Server() {
|
func Server() {
|
||||||
@@ -14,7 +15,7 @@ func Server() {
|
|||||||
})
|
})
|
||||||
|
|
||||||
r.GET("/create_vm", func(c *gin.Context) {
|
r.GET("/create_vm", func(c *gin.Context) {
|
||||||
c.JSON(http.StatusOK, ServerInfo())
|
c.JSON(http.StatusOK, docker.BuildContainer())
|
||||||
})
|
})
|
||||||
|
|
||||||
// Port running on
|
// Port running on
|
||||||
|
|||||||
Reference in New Issue
Block a user