From 1b0bc814c47ddb57e84d71da5e03868a0ae20421 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Thu, 24 Mar 2016 22:53:13 -0700 Subject: [PATCH] docker: Fix docker Makefile. --- Docker.md | 2 +- Makefile | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/Docker.md b/Docker.md index 49d5d6ca9..6f08fc0d5 100644 --- a/Docker.md +++ b/Docker.md @@ -1,6 +1,6 @@ ### Run Minio docker image -Start docker, however image is not persistent. +Start docker, however data is not persistent. ```bash docker run -p 9000:9000 minio/minio fs /export/data diff --git a/Makefile b/Makefile index ba6ffc9bc..3705a47e0 100644 --- a/Makefile +++ b/Makefile @@ -132,11 +132,9 @@ install: gomake-all dockerimage: checkdocker verifiers $(UI_ASSETS) @echo "Building docker image:" minio:$(TAG) @GO15VENDOREXPERIMENT=1 GOOS=linux GOARCH=amd64 go build --ldflags $(DOCKER_LDFLAGS) -o docker/minio.dockerimage - @cd docker - @mkdir -p export - @sudo docker build --rm --tag=minio/minio:$(TAG) . - @rmdir export - @rm minio.dockerimage + @cd docker; mkdir -p export; sudo docker build --rm --tag=minio/minio:$(TAG) . + @rmdir docker/export + @rm docker/minio.dockerimage release: verifiers @MINIO_RELEASE=RELEASE ./buildscripts/build.sh