mirror of
https://github.com/pgsty/minio.git
synced 2026-08-10 16:23:28 +03:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b06a514ce0 | |||
| 5b9dd8b80b | |||
| 55882ce783 |
+4
-4
@@ -5,15 +5,15 @@ ENV ALLOW_CONTAINER_ROOT=1
|
|||||||
|
|
||||||
COPY . /go/src/app
|
COPY . /go/src/app
|
||||||
RUN \
|
RUN \
|
||||||
apk add --no-cache git && \
|
apk add --no-cache git bash && \
|
||||||
go-wrapper download && \
|
go-wrapper download && \
|
||||||
go-wrapper install && \
|
go-wrapper install -ldflags "`./buildscripts/docker-flags.sh`" && \
|
||||||
mkdir -p /export/docker && \
|
mkdir -p /export/docker && \
|
||||||
cp /go/src/app/docs/Docker.md /export/docker/ && \
|
cp /go/src/app/docs/Docker.md /export/docker/ && \
|
||||||
rm -rf /go/pkg /go/src && \
|
rm -rf /go/pkg /go/src && \
|
||||||
apk del git
|
apk del git bash
|
||||||
|
|
||||||
EXPOSE 9000
|
EXPOSE 9000
|
||||||
ENTRYPOINT ["go-wrapper", "run", "server"]
|
ENTRYPOINT ["minio", "server"]
|
||||||
VOLUME ["/export"]
|
VOLUME ["/export"]
|
||||||
CMD ["/export"]
|
CMD ["/export"]
|
||||||
|
|||||||
Executable
+24
@@ -0,0 +1,24 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
#
|
||||||
|
# Minio Cloud Storage, (C) 2016 Minio, Inc.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
#
|
||||||
|
|
||||||
|
minio="github.com/minio/minio"
|
||||||
|
version="2016-09-11T17:42:18Z"
|
||||||
|
release="RELEASE.2016-09-11T17-42-18Z"
|
||||||
|
commit="85e2d886bcb005d49f3876d6849a2b5a55e03cd3"
|
||||||
|
|
||||||
|
echo "-X ${minio}/cmd.Version=${version} -X ${minio}/cmd.ReleaseTag=${release} -X ${minio}/cmd.CommitID=${commit}"
|
||||||
|
|
||||||
+1
-1
@@ -354,7 +354,7 @@ func doesSignatureMatch(hashedPayload string, r *http.Request, validateRegion bo
|
|||||||
for _, h := range signV4Values.SignedHeaders {
|
for _, h := range signV4Values.SignedHeaders {
|
||||||
if h == "content-length" {
|
if h == "content-length" {
|
||||||
header = cloneHeader(req.Header)
|
header = cloneHeader(req.Header)
|
||||||
header.Add("content-length", strconv.FormatInt(r.ContentLength, 10))
|
header.Set("content-length", strconv.FormatInt(r.ContentLength, 10))
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -143,10 +143,10 @@ func getReleaseUpdate(updateURL string, noError bool) updateMessage {
|
|||||||
switch runtime.GOOS {
|
switch runtime.GOOS {
|
||||||
case "windows":
|
case "windows":
|
||||||
// For windows.
|
// For windows.
|
||||||
downloadURL = newUpdateURLPrefix + "/minio.exe?update=yes"
|
downloadURL = newUpdateURLPrefix + "/minio.exe"
|
||||||
default:
|
default:
|
||||||
// For all other operating systems.
|
// For all other operating systems.
|
||||||
downloadURL = newUpdateURLPrefix + "/minio?update=yes"
|
downloadURL = newUpdateURLPrefix + "/minio"
|
||||||
}
|
}
|
||||||
|
|
||||||
// Initialize update message.
|
// Initialize update message.
|
||||||
|
|||||||
Reference in New Issue
Block a user