$ wget https://dl.minio.io/server/minio/release/linux-amd64/minio
$ chmod 755 minio
$ sudo cp minio /usr/local/bin/
$ whoami
ubuntu
$ sudo su
# cat <<EOT >> /etc/default/minio
> MINIO_VOLUMES="/tmp/myvolume"
> EOT
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd $GOPATH/src/github.com/minio/minio | |
git remote add dc https://github.com/dutchcoders/minio.git | |
git fetch dc feature-gateway-cache | |
git checkout dc/feature-gateway-cache | |
go build | |
MINIO_ACCESS_KEY=Q3AM3UQ867SPQQA43P2F MINIO_SECRET_KEY=zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG ./minio gateway s3 https://play.minio.io:9000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
images/venture-deals.pdf | {"Records": [{"s3": {"bucket": {"arn": "arn:aws:s3:::images", "name": "images", "ownerIdentity": {"principalId": "M004Y9P10IBN6BWLB2IY"}}, "object": {"key": "venture-deals.pdf", "eTag": "98ae0bb7ee5e4fa4d955dbca62910939", "size": 1674638, "sequencer": "14B05DF605D797BD"}, "configurationId": "Config", "s3SchemaVersion": "1.0"}, "source": {"host": "10.0.0.4", "port": "57731", "userAgent": "Minio (darwin; amd64) minio-go/2.0.4 mc/DEVELOPMENT.GOGET"}, "awsRegion": "us-east-1", "eventName": "s3:ObjectCreated:Put", "eventTime": "2017-03-29T13:39:47Z", "eventSource": "minio:s3", "eventVersion": "2.0", "userIdentity": {"principalId": "M004Y9P10IBN6BWLB2IY"}, "responseElements": {"x-amz-request-id": "14B05DF605D797BD", "x-minio-origin-endpoint": "http://10.0.0.5:9000"}, "requestParameters": {"sourceIPAddress": "10.0.0.4:57731"}}]} | |
images/the fasting cure.pdf | {"Records": [{"s3": {"bucket": {"arn": "arn:aws:s3:::images", "name": "images", "ownerIdentity": {"principalId": "M004Y9P10IBN6BWL |
Using JSON in Postgres by example.
- Download and install: Docker Toolbox
- Open Docker Quickstart Terminal
- Start a new postgres container:
docker run --name my-postgres -e POSTGRES_PASSWORD=mysecretpassword -d postgres
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OS: Ubuntu 16.04 | |
1. Install nginx : nginx version: nginx/1.10.0 (Ubuntu) | |
2. Install Minio: Follow https://github.com/minio/minio | |
3. Install MC client: Follow https://github.com/minio/mc | |
4. Create a bucket: | |
$ mc mb myminio/static | |
Bucket created successfully ‘myminio/static’. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Fork to your github repo: https://github.com/minio/minio-service | |
## Clone your local repo: | |
git clone https://github.com/koolhead17/minio-service | |
## Create a remote directory branch for minio-service | |
git remote add koolhead17 [email protected]:koolhead17/minio-service.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Note | |
- Replace ``User=minio-user`` and ``Group=minio-user`` in minio.service file with your local setup. | |
- Ensure that ``MINIO_VOLUMES`` source has appropirate write access. |
It is most convenient to use Docker to do this.
A Kafka setup is required (and this requires a Zookeeper setup). A Kafka consumer is needed to check the events sent to Kafka. I used kafkacat.
NewerOlder