1
0
mirror of https://github.com/minio/minio.git synced 2025-02-13 06:38:09 -05:00
Commit Graph

32 Commits

Author SHA1 Message Date
Harshavardhana
eb7c690ea9 Support in-place upgrades of new minio binary and releases. ()
This PR allows 'minio update' to not only shows update banner
but also allows for in-place upgrades.

Updates are done safely by validating the downloaded
sha256 of the binary.

Fixes 
2017-12-15 12:33:42 -08:00
Krishna Srinivas
03df692ae2 Support for bosh/pcf user-agent when querying for updates. () 2017-10-26 18:53:45 -07:00
Harshavardhana
3d0dced23c Remove go1.9 specific code for windows ()
Following fix https://go-review.googlesource.com/#/c/41834/ has
been merged upstream and released with go1.9.
2017-10-13 15:31:15 +05:30
Aditya Manthramurthy
4a0a491ca1 Refactor update check code ()
- Add release-time conversion helpers
- Split GetCurrentReleaseTime() into two simpler functions.
- Avoid appending strings when assembling user-agent string.
- Reorder release info URLs to check the newer URLs earlier.
- Remove trivial low-level functions created solely for the purpose of
  writing tests.
- Remove some unnecessary tests.
2017-10-09 16:12:13 -07:00
Nitish Tiwari
7bd1f44491 Add support for helm package info in useragent () 2017-06-24 13:17:28 -07:00
Harshavardhana
b8463a738c Add support for DCOS host detection, improve Docker detection. ()
isDocker was currently reading from `/proc/cgroup` file. But
this file alone is rather not conclusive evidence. Docker
internally has `.dockerenv` as a special file which we should
use instead.

Fixes 
2017-06-13 00:33:21 +00:00
Harshavardhana
48dbd49980 Add support for kubernetes host detection ()
Additionally improve what we print for `docker pull`
such that its precisely the relevant release tag.

Fixes 
2017-06-09 02:42:12 -07:00
Aditya Manthramurthy
a0e02f43e1 Fix and cleanup update message and improve related tests ()
Fixes 
2017-05-31 09:22:00 -07:00
Harshavardhana
c63afabc9b build/release: Generate sha256sums also without the release tag. ()
Ref 
2017-05-12 21:40:22 -07:00
Harshavardhana
f0b5c0ec7c windows: Support all REPARSE_POINT attrib files properly. ()
This change adopts the upstream fix in this regard at
https://go-review.googlesource.com/#/c/41834/ for Minio's
purposes.

Go's current os.Stat() lacks support for lot of strange
windows files such as

 - share symlinks on SMB2
 - symlinks on docker nanoserver
 - de-duplicated files on NTFS de-duplicated volume.

This PR attempts to incorporate the change mentioned here

   https://blogs.msdn.microsoft.com/oldnewthing/20100212-00/?p=14963/

The article suggests to use Windows I/O manager to
dereference the symbolic link.

Fixes 
2017-05-02 02:35:27 -07:00
Bala FA
d3cb79a57c Refactor logger ()
This patch fixes below

* Previously fatalIf() never writes log other than first logging target.
* quiet flag is not honored to show progress messages other than startup messages.
* Removes console package usage for progress messages.
2017-03-23 16:36:00 -07:00
Krishna Srinivas
cea4cfa3a8 Implement S3 Gateway to third party cloud storage providers. ()
Currently supported backend is Azure Blob Storage.

```
export MINIO_ACCESS_KEY=azureaccountname
export MINIO_SECRET_KEY=azureaccountkey
minio gateway azure
```
2017-03-16 12:21:58 -07:00
Aditya Manthramurthy
09e9fd745c Close client connection after checking for release update () 2017-03-01 09:18:55 -08:00
Harshavardhana
99a12613a3 update: For source builds look for absolute path. ()
os.Args[0] doesn't point to absolute path we need
use exec.LookPath to find the absolute path before
sending os.Stat().
2017-02-21 01:32:05 -08:00
Harshavardhana
9eb8e375c5 cli: Make sure to add --help flag for subcommands. ()
--help is now back and prints properly with command
help template.
2017-02-19 20:46:06 -08:00
Harshavardhana
611bd68739 cli: Add new features from CLI.
use `.HelpName` for template to pass down
proper command names. Also treat flags
to be optional in all of them.
2017-02-15 17:45:11 -08:00
Harshavardhana
13c3b9cbcb main/cli: Don't print hidden flags/commands in help template. ()
Always use .VisibleFlags and .VisibleCommands to not print
Hidden flags as expected from help template.
2017-02-15 02:25:38 -08:00
Bala FA
602dac8773 mainUpdate: refactor to handle quiet flag properly () 2017-02-15 00:31:00 -08:00
Harshavardhana
62f8343879 Add constants for commonly used values. ()
This is a consolidation effort, avoiding usage
of naked strings in codebase. Whenever possible
use constants which can be repurposed elsewhere.

This also fixes `goconst ./...` reported issues.
2017-01-18 12:24:34 -08:00
Harshavardhana
08b6cfb082 ssl: Set a global boolean to enable SSL across Minio ()
We have been using `isSSL()` everywhere we can set
a global value once and re-use it again.
2017-01-11 13:59:51 -08:00
Anis Elleuch
01f625824a args: Honor config-dir & quiet wherever they are ()
setGlobalsFromContext() is added to set global variables after parsing
command line arguments. Thus, global flags will be honored wherever
they are placed in minio command.
2016-11-28 12:15:36 -08:00
Bala FA
d3064e40b3 isDocker() logs error than fatal error. () 2016-11-24 16:06:49 -08:00
Harshavardhana
dd74e5a809 Revert "init: Honor config-dir flag when it is passed as global or local flag ()"
This reverts commit e2ef95af7dcf2c7a528bff5b28dde5916ecb64f7.

This is reverted since the previous patch caused crashes.
2016-11-23 17:31:36 -08:00
Anis Elleuch
e2ef95af7d init: Honor config-dir flag when it is passed as global or local flag ()
setGlobalsFromContext() is added to sets global variable after parsing
command line arguments.
2016-11-23 17:13:40 -08:00
Harshavardhana
6efee2072d objectLayer: Check for format.json in a wrapped disk. ()
This is needed to validate if the `format.json` indeed exists
when a fresh node is brought online.

This wrapped implementation also connects to the remote node
by attempting a re-login. Subsequently after a successful
connect `format.json` is validated as well.

Fixes 
2016-11-23 15:48:10 -08:00
Harshavardhana
2c3a2241e7 update: Change update notifier for new style banner. ()
For binary releases and operating systems it would be

All operating systems.
```
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Minio is 25 days 12 hours 30 minutes old                           ┃
┃ Update: https://dl.minio.io/server/minio/release/linux-amd64/minio ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
```

On docker.
```
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Minio is 25 days 12 hours 32 minutes old ┃
┃ Update: docker pull minio/minio          ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
```
2016-11-19 23:20:13 -08:00
Harshavardhana
7fc598b73f Fix user-agent prefix to have docker instead of suffix. () 2016-10-24 13:44:15 -07:00
Harshavardhana
fdaa129a5b Fix dockerfile container image. () 2016-10-12 18:09:08 -07:00
Harshavardhana
1edd74dda2 update: Deprecate the usage of update=yes query param. ()
Fixes 
2016-09-28 02:41:21 -07:00
Krishna Srinivas
81d8263ae2 binary-update: Do not fetch update info for minio binary compiled from source.
fixes 
2016-09-13 21:18:30 -07:00
Anis Elleuch
3e284162d7 Add global flags to all commands and subcommands () 2016-09-13 21:18:30 -07:00
Harshavardhana
bccf549463 server: Move all the top level files into cmd folder. ()
This change brings a change which was done for the 'mc'
package to allow for clean repo and have a cleaner
github drop in experience.
2016-08-18 16:23:42 -07:00