mirror of
https://github.com/minio/minio.git
synced 2025-01-11 23:13:23 -05:00
docker: Remove unneeded docker files and makefile tags.
This commit is contained in:
parent
ba5bb4a127
commit
3fa95f5263
13
Makefile
13
Makefile
@ -1,8 +1,6 @@
|
|||||||
LDFLAGS := $(shell go run buildscripts/gen-ldflags.go)
|
LDFLAGS := $(shell go run buildscripts/gen-ldflags.go)
|
||||||
DOCKER_BIN := $(shell which docker)
|
|
||||||
PWD := $(shell pwd)
|
PWD := $(shell pwd)
|
||||||
GOPATH := $(shell go env GOPATH)
|
GOPATH := $(shell go env GOPATH)
|
||||||
DOCKER_LDFLAGS := '$(LDFLAGS) -extldflags "-static"'
|
|
||||||
BUILD_LDFLAGS := '$(LDFLAGS)'
|
BUILD_LDFLAGS := '$(LDFLAGS)'
|
||||||
TAG := latest
|
TAG := latest
|
||||||
|
|
||||||
@ -62,10 +60,6 @@ checks:
|
|||||||
@(env bash $(PWD)/buildscripts/checkdeps.sh)
|
@(env bash $(PWD)/buildscripts/checkdeps.sh)
|
||||||
@(env bash $(PWD)/buildscripts/checkgopath.sh)
|
@(env bash $(PWD)/buildscripts/checkgopath.sh)
|
||||||
|
|
||||||
checkdocker:
|
|
||||||
@echo "Checking if docker is installed.. "
|
|
||||||
@if [ -z ${DOCKER_BIN} ]; then echo "Docker not installed, cannot build docker image. Please install 'sudo apt-get install docker.io'" && exit 1; else echo "Docker installed at ${DOCKER_BIN}."; fi;
|
|
||||||
|
|
||||||
getdeps: checks
|
getdeps: checks
|
||||||
@go get -u github.com/golang/lint/golint && echo "Installed golint:"
|
@go get -u github.com/golang/lint/golint && echo "Installed golint:"
|
||||||
@go get -u github.com/fzipp/gocyclo && echo "Installed gocyclo:"
|
@go get -u github.com/fzipp/gocyclo && echo "Installed gocyclo:"
|
||||||
@ -133,13 +127,6 @@ pkg-list:
|
|||||||
|
|
||||||
install: gomake-all
|
install: gomake-all
|
||||||
|
|
||||||
dockerimage: checkdocker getdeps 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 docker/export
|
|
||||||
@rm docker/minio.dockerimage
|
|
||||||
|
|
||||||
release: verifiers
|
release: verifiers
|
||||||
@MINIO_RELEASE=RELEASE ./buildscripts/build.sh
|
@MINIO_RELEASE=RELEASE ./buildscripts/build.sh
|
||||||
|
|
||||||
|
@ -1,10 +0,0 @@
|
|||||||
# use "make dockerimage" to build
|
|
||||||
FROM alpine:3.3
|
|
||||||
RUN apk add --no-cache ca-certificates bash
|
|
||||||
ADD minio.dockerimage /minio
|
|
||||||
ADD export /export
|
|
||||||
EXPOSE 9000
|
|
||||||
COPY start.sh /start.sh
|
|
||||||
ENV ALLOW_CONTAINER_ROOT=1
|
|
||||||
ENTRYPOINT ["/start.sh"]
|
|
||||||
CMD ["/export"]
|
|
@ -1,10 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
## Fix this check when we arrive at XL.
|
|
||||||
if [ -z "$1" ]; then
|
|
||||||
echo "Invalid arguments"
|
|
||||||
echo "Usage: <export_dir>"
|
|
||||||
exit 1
|
|
||||||
else
|
|
||||||
/bin/mkdir -p "$1" && /minio server "$1"
|
|
||||||
fi
|
|
Loading…
Reference in New Issue
Block a user