Compare commits
30 Commits
master
...
RELEASE.20
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4f61bd025d | ||
|
|
40985cc4e3 | ||
|
|
1b472dae78 | ||
|
|
eb50175ad9 | ||
|
|
e85349381e | ||
|
|
06bc68a4b3 | ||
|
|
fb506c7fca | ||
|
|
8a7cffe7b8 | ||
|
|
5c85ce1afd | ||
|
|
710db6bdad | ||
|
|
058ea84605 | ||
|
|
6e7d33df20 | ||
|
|
5311eb22fd | ||
|
|
83abb310b4 | ||
|
|
3d98311d9f | ||
|
|
d44e38b462 | ||
|
|
8948c972ee | ||
|
|
29b49f9343 | ||
|
|
f8e4700a11 | ||
|
|
4c5c00c640 | ||
|
|
0be44133d4 | ||
|
|
817e763416 | ||
|
|
0abab5305f | ||
|
|
e6e855a7cf | ||
|
|
6fca1d164c | ||
|
|
9b76eba37e | ||
|
|
03714d4809 | ||
|
|
3a73ea3f54 | ||
|
|
9625629fc7 | ||
|
|
8507ce2a87 |
@@ -11,7 +11,8 @@ RUN \
|
|||||||
apk add --no-cache --virtual .build-deps git go musl-dev && \
|
apk add --no-cache --virtual .build-deps git go musl-dev && \
|
||||||
go get -v -d github.com/minio/minio && \
|
go get -v -d github.com/minio/minio && \
|
||||||
cd /go/src/github.com/minio/minio && \
|
cd /go/src/github.com/minio/minio && \
|
||||||
go install -v -ldflags "$(go run buildscripts/gen-ldflags.go)" && \
|
git checkout release && \
|
||||||
|
go install -v -ldflags "-X github.com/minio/minio/cmd.Version=2017-05-05T01:14:51Z -X github.com/minio/minio/cmd.ReleaseTag=RELEASE.2017-05-05T01-14-51Z -X github.com/minio/minio/cmd.CommitID=40985cc4e3eec06b7ea82dc34c8d907fd2e7aa12" && \
|
||||||
rm -rf /go/pkg /go/src /usr/local/go && apk del .build-deps
|
rm -rf /go/pkg /go/src /usr/local/go && apk del .build-deps
|
||||||
|
|
||||||
EXPOSE 9000
|
EXPOSE 9000
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ RUN \
|
|||||||
apk add --no-cache --virtual .build-deps git go musl-dev && \
|
apk add --no-cache --virtual .build-deps git go musl-dev && \
|
||||||
go get -v -d github.com/minio/minio && \
|
go get -v -d github.com/minio/minio && \
|
||||||
cd /go/src/github.com/minio/minio && \
|
cd /go/src/github.com/minio/minio && \
|
||||||
go install -v -ldflags "$(go run buildscripts/gen-ldflags.go)" && \
|
go install -v -ldflags "-X github.com/minio/minio/cmd.Version=2017-03-16T21:50:32Z -X github.com/minio/minio/cmd.ReleaseTag=RELEASE.2017-03-16T21-50-32Z -X github.com/minio/minio/cmd.CommitID=5311eb22fd681a8cd4a46e2a872d46c2352c64e8" && \
|
||||||
rm -rf /go/pkg /go/src /usr/local/go && apk del .build-deps
|
rm -rf /go/pkg /go/src /usr/local/go && apk del .build-deps
|
||||||
|
|
||||||
EXPOSE 9000
|
EXPOSE 9000
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ RUN \
|
|||||||
apk add --no-cache --virtual .build-deps git go musl-dev && \
|
apk add --no-cache --virtual .build-deps git go musl-dev && \
|
||||||
go get -v -d github.com/minio/minio && \
|
go get -v -d github.com/minio/minio && \
|
||||||
cd /go/src/github.com/minio/minio && \
|
cd /go/src/github.com/minio/minio && \
|
||||||
go install -v -ldflags "$(go run buildscripts/gen-ldflags.go)" && \
|
go install -v -ldflags "-X github.com/minio/minio/cmd.Version=2017-03-16T21:50:32Z -X github.com/minio/minio/cmd.ReleaseTag=RELEASE.2017-03-16T21-50-32Z -X github.com/minio/minio/cmd.CommitID=5311eb22fd681a8cd4a46e2a872d46c2352c64e8" && \
|
||||||
rm -rf /go/pkg /go/src /usr/local/go && apk del .build-deps
|
rm -rf /go/pkg /go/src /usr/local/go && apk del .build-deps
|
||||||
|
|
||||||
EXPOSE 9000
|
EXPOSE 9000
|
||||||
|
|||||||
2
Makefile
2
Makefile
@@ -1,7 +1,7 @@
|
|||||||
LDFLAGS := $(shell go run buildscripts/gen-ldflags.go)
|
LDFLAGS := $(shell go run buildscripts/gen-ldflags.go)
|
||||||
PWD := $(shell pwd)
|
PWD := $(shell pwd)
|
||||||
GOPATH := $(shell go env GOPATH)
|
GOPATH := $(shell go env GOPATH)
|
||||||
BUILD_LDFLAGS := '$(LDFLAGS)'
|
BUILD_LDFLAGS := '$(LDFLAGS) -s -w'
|
||||||
TAG := latest
|
TAG := latest
|
||||||
|
|
||||||
HOST ?= $(shell uname)
|
HOST ?= $(shell uname)
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ go_build() {
|
|||||||
|
|
||||||
release_bin_6="$release_str/$os-${arch}6vl/$(basename $package).$release_tag"
|
release_bin_6="$release_str/$os-${arch}6vl/$(basename $package).$release_tag"
|
||||||
## Support building for ARM6vl
|
## Support building for ARM6vl
|
||||||
GOARM=6 GOOS=$os GOARCH=$arch go build --ldflags "${LDFLAGS}" -o $release_bin_6
|
GOARM=6 GOOS=$os GOARCH=$arch go build --ldflags "-s -w ${LDFLAGS}" -o $release_bin_6
|
||||||
|
|
||||||
## Copy
|
## Copy
|
||||||
$CP -p $release_bin_6 $release_real_bin_6
|
$CP -p $release_bin_6 $release_real_bin_6
|
||||||
@@ -70,7 +70,7 @@ go_build() {
|
|||||||
|
|
||||||
release_bin_7="$release_str/$os-$arch/$(basename $package).$release_tag"
|
release_bin_7="$release_str/$os-$arch/$(basename $package).$release_tag"
|
||||||
## Support building for ARM7vl
|
## Support building for ARM7vl
|
||||||
GOARM=7 GOOS=$os GOARCH=$arch go build --ldflags "${LDFLAGS}" -o $release_bin_7
|
GOARM=7 GOOS=$os GOARCH=$arch go build --ldflags "-s -w ${LDFLAGS}" -o $release_bin_7
|
||||||
|
|
||||||
## Copy
|
## Copy
|
||||||
$CP -p $release_bin_7 $release_real_bin_7
|
$CP -p $release_bin_7 $release_real_bin_7
|
||||||
@@ -82,7 +82,7 @@ go_build() {
|
|||||||
shasum_str=$(${SHASUM} ${release_bin_7})
|
shasum_str=$(${SHASUM} ${release_bin_7})
|
||||||
echo ${shasum_str} | $SED "s/$release_str\/$os-$arch\///g" > $release_shasum_7
|
echo ${shasum_str} | $SED "s/$release_str\/$os-$arch\///g" > $release_shasum_7
|
||||||
else
|
else
|
||||||
GOOS=$os GOARCH=$arch go build --ldflags "${LDFLAGS}" -o $release_bin
|
GOOS=$os GOARCH=$arch go build --ldflags "-s -w ${LDFLAGS}" -o $release_bin
|
||||||
|
|
||||||
# Create copy
|
# Create copy
|
||||||
if [ $os == "windows" ]; then
|
if [ $os == "windows" ]; then
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
%define tag RELEASE.2017-04-25T01-27-49Z
|
%define tag RELEASE.2017-04-29T00-40-27Z
|
||||||
%define subver %(echo %{tag} | sed -e 's/[^0-9]//g')
|
%define subver %(echo %{tag} | sed -e 's/[^0-9]//g')
|
||||||
# git fetch https://github.com/minio/minio.git refs/tags/RELEASE.2017-02-16T01-47-30Z
|
# git fetch https://github.com/minio/minio.git refs/tags/RELEASE.2017-04-29T00-40-27Z
|
||||||
# git rev-list -n 1 FETCH_HEAD
|
# git rev-list -n 1 FETCH_HEAD
|
||||||
%define commitid 83abb310b4ce3a0dfc6d7faf78e33cb6f9132cfe
|
%define commitid 1b472dae78b491fa7efcd21278c1e6aa83b037d3
|
||||||
Summary: Cloud Storage Server.
|
Summary: Cloud Storage Server.
|
||||||
Name: minio
|
Name: minio
|
||||||
Version: 0.0.%{subver}
|
Version: 0.0.%{subver}
|
||||||
@@ -19,7 +19,7 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
|
|||||||
%define debug_package %{nil}
|
%define debug_package %{nil}
|
||||||
|
|
||||||
## Go related tags.
|
## Go related tags.
|
||||||
%define gobuild(o:) go build -ldflags "${LDFLAGS:-}" %{?**};
|
%define gobuild(o:) go build -ldflags "-s -w ${LDFLAGS:-}" %{?**};
|
||||||
%define gopath %{_libdir}/golang
|
%define gopath %{_libdir}/golang
|
||||||
%define import_path github.com/minio/minio
|
%define import_path github.com/minio/minio
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user