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