mirror of
https://github.com/minio/minio.git
synced 2024-12-25 22:55:54 -05:00
docker: Fix docker build.
This commit is contained in:
parent
1c75d35c26
commit
c9d2904e42
@ -9,7 +9,7 @@ sudo apt-get install Docker.io
|
|||||||
### Generating `minio configs` for the first time.
|
### Generating `minio configs` for the first time.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker run -p 9000:9000 minio/minio:latest
|
docker run -p 9000:9001 minio/minio:latest
|
||||||
```
|
```
|
||||||
|
|
||||||
### Persist `minio configs`.
|
### Persist `minio configs`.
|
||||||
@ -28,5 +28,5 @@ docker create -v /export --name minio-export minio/my-minio /bin/true
|
|||||||
You can then use the `--volumes-from` flag to mount the `/export` volume in another container.
|
You can then use the `--volumes-from` flag to mount the `/export` volume in another container.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker run -p 9000:9000 --volumes-from minio-export --name minio1 minio/my-minio
|
docker run -p 9000:9001 --volumes-from minio-export --name minio1 minio/my-minio
|
||||||
```
|
```
|
||||||
|
@ -4,5 +4,6 @@ ENV DOCKERIMAGE 1
|
|||||||
ADD minio.dockerimage /minio
|
ADD minio.dockerimage /minio
|
||||||
ADD export /export
|
ADD export /export
|
||||||
EXPOSE 9000
|
EXPOSE 9000
|
||||||
|
EXPOSE 9001
|
||||||
ENTRYPOINT ["/minio"]
|
ENTRYPOINT ["/minio"]
|
||||||
CMD ["server", "/export"]
|
CMD ["server", "/export"]
|
||||||
|
2
Makefile
2
Makefile
@ -82,7 +82,7 @@ pkg-remove:
|
|||||||
|
|
||||||
install: gomake-all
|
install: gomake-all
|
||||||
|
|
||||||
dockerimage: checkdocker verifiers
|
dockerimage: checkdocker verifiers $(UI_ASSETS)
|
||||||
@echo "Building docker image:" minio:$(TAG)
|
@echo "Building docker image:" minio:$(TAG)
|
||||||
@GO15VENDOREXPERIMENT=1 go build --ldflags $(DOCKER_LDFLAGS) -o minio.dockerimage
|
@GO15VENDOREXPERIMENT=1 go build --ldflags $(DOCKER_LDFLAGS) -o minio.dockerimage
|
||||||
@mkdir -p export
|
@mkdir -p export
|
||||||
|
Loading…
Reference in New Issue
Block a user