restructued folders in docker

This commit is contained in:
2021-02-03 19:31:51 +04:00
parent 67fc7ebc63
commit a2adff2318
7 changed files with 18 additions and 2 deletions

2
go.mod
View File

@@ -8,7 +8,7 @@ require (
github.com/christophwitzko/go-curl v0.0.0-20171216141518-4203158d6acb
github.com/containerd/containerd v1.4.3 // 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-units v0.4.0 // indirect
github.com/fsouza/go-dockerclient v1.7.0 // indirect

View 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
View File

@@ -0,0 +1,8 @@
package docker
import (
)
func BuildContainer() string{
return "test"
}

View File

@@ -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