HTTPS and File Uploads (#139)

* Add a few fixes

* Use CopyToContainer instead of bind mounts

* Remove a local compose file

* Changes according to the comments

* Rebase with master
This commit is contained in:
Jonathan Leibiusky
2017-05-12 16:20:09 -03:00
committed by Marcos Nils
parent 61a0bb4db1
commit 8df6373327
8 changed files with 267 additions and 54 deletions

View File

@@ -13,7 +13,7 @@ func NewInstance(rw http.ResponseWriter, req *http.Request) {
vars := mux.Vars(req)
sessionId := vars["sessionId"]
body := struct{ ImageName, Alias string }{}
body := services.InstanceConfig{}
json.NewDecoder(req.Body).Decode(&body)
@@ -26,7 +26,7 @@ func NewInstance(rw http.ResponseWriter, req *http.Request) {
return
}
i, err := services.NewInstance(s, body.ImageName, body.Alias)
i, err := services.NewInstance(s, body)
if err != nil {
log.Println(err)
rw.WriteHeader(http.StatusInternalServerError)