File tree Expand file tree Collapse file tree 7 files changed +8
-110
lines changed
Expand file tree Collapse file tree 7 files changed +8
-110
lines changed Original file line number Diff line number Diff line change 11rootfs /bin /minio
22rootfs /bin /boot
33vendor /
4- genssl /server.cert
5- genssl /server.csr
6- genssl /server.key
7- genssl /server.pem
8- manifests /deis-minio-secretssl-final.yaml
9- mc /mc
10- server /minio
Original file line number Diff line number Diff line change @@ -35,10 +35,7 @@ build:
3535test :
3636 ${DEV_ENV_CMD} go test ${TEST_PACKAGES}
3737
38- docker-build : build build-server
39- # copy the server binary from where it was built to the final image's file system.
40- # note that the minio server is built as a dependency of this build target.
41- cp server/minio ${BINDIR}
38+ docker-build : build
4239
4340 # build the main image
4441 docker build --rm -t ${IMAGE} rootfs
@@ -47,8 +44,4 @@ docker-build: build build-server
4744
4845deploy : build docker-build docker-push
4946
50- # build the minio server
51- build-server :
52- docker run -e GO15VENDOREXPERIMENT=1 -e GOROOT=/usr/local/go --rm -v " ${CURDIR} /server" :/pwd -w /pwd golang:1.6 ./install.sh
53-
5447.PHONY : all bootstrap glideup build test docker-build deploy build-server
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ type Secret struct {
3434 Host string
3535 KeyID string
3636 AccessKey string
37+ Region string
3738}
3839
3940const configdir = "/home/minio/.minio/"
@@ -65,7 +66,8 @@ const templv2 = `{
6566 "credentials": {
6667 {{range .}}
6768 "accessKeyId": "{{.KeyID}}",
68- "secretAccessKey": "{{.AccessKey}}"
69+ "secretAccessKey": "{{.AccessKey}}",
70+ "region": "{{.Region}}"
6971 {{end}}
7072 },
7173 "mongoLogger": {
@@ -139,6 +141,7 @@ func main() {
139141 Host : pod .IP ,
140142 KeyID : key ,
141143 AccessKey : access ,
144+ Region : "us-east-1" ,
142145 },
143146 }
144147 t := template .New ("MinioTpl" )
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -12,7 +12,9 @@ COPY . /
1212RUN curl -f -SL https://dl.minio.io/client/mc/release/linux-amd64/archive/mc.OFFICIAL.2015-09-05T23-43-46Z -o /usr/bin/mc \
1313 && chmod 755 /usr/bin/mc \
1414 && mkdir /home/minio/.minio \
15- && chown minio:minio /home/minio/.minio
15+ && chown minio:minio /home/minio/.minio \
16+ && curl https://dl.minio.io/server/minio/release/linux-amd64/minio.RELEASE.2016-04-17T22-09-24Z > /bin/minio \
17+ && chmod 755 /bin/minio
1618
1719USER minio
1820
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments