Small changes.
This commit is contained in:
@@ -88,6 +88,8 @@ func Run(Config cfg.Config){
|
|||||||
|
|
||||||
}();
|
}();
|
||||||
|
|
||||||
|
fmt.Println("Api started!");
|
||||||
|
|
||||||
time.Sleep(10*time.Millisecond);
|
time.Sleep(10*time.Millisecond);
|
||||||
<-ctx.Done();
|
<-ctx.Done();
|
||||||
fmt.Println("Stopping http server.");
|
fmt.Println("Stopping http server.");
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"encoding/base64"
|
"encoding/base64"
|
||||||
"time"
|
"time"
|
||||||
"os"
|
|
||||||
|
|
||||||
"github.com/docker/docker/api/types/mount"
|
"github.com/docker/docker/api/types/mount"
|
||||||
"github.com/docker/docker/api/types/swarm"
|
"github.com/docker/docker/api/types/swarm"
|
||||||
@@ -63,7 +62,7 @@ func prepare(w http.ResponseWriter, r *http.Request){
|
|||||||
}
|
}
|
||||||
defer ipc.Close();
|
defer ipc.Close();
|
||||||
|
|
||||||
io.Copy(os.Stdout, ipc);
|
io.Copy(io.Discard, ipc);
|
||||||
|
|
||||||
|
|
||||||
labels := inspectResoults.Spec.Labels;
|
labels := inspectResoults.Spec.Labels;
|
||||||
|
|||||||
@@ -252,7 +252,7 @@ func createStorageContainer(Config cfg.Config, DockerClient *client.Client){
|
|||||||
}
|
}
|
||||||
defer ipc.Close();
|
defer ipc.Close();
|
||||||
|
|
||||||
io.Copy(os.Stdout, ipc);
|
io.Copy(io.Discard, ipc);
|
||||||
|
|
||||||
cr, err := DockerClient.ContainerCreate(context.Background(), &container.Config{
|
cr, err := DockerClient.ContainerCreate(context.Background(), &container.Config{
|
||||||
Image: Config.BlazenaImageUrl,
|
Image: Config.BlazenaImageUrl,
|
||||||
|
|||||||
Reference in New Issue
Block a user