Browse Source

dev cluster adds fuse mount

pull/1727/head
Chris Lu 4 years ago
parent
commit
712563fbdd
  1. 2
      docker/Dockerfile.go_build
  2. 2
      docker/Dockerfile.go_build_large
  3. 12
      docker/local-dev-compose.yml

2
docker/Dockerfile.go_build

@ -1,5 +1,5 @@
FROM frolvlad/alpine-glibc as builder
RUN apk add git go g++
RUN apk add git go g++ fuse
RUN mkdir -p /go/src/github.com/chrislusf/
RUN git clone https://github.com/chrislusf/seaweedfs /go/src/github.com/chrislusf/seaweedfs
ARG BRANCH=${BRANCH:-master}

2
docker/Dockerfile.go_build_large

@ -1,5 +1,5 @@
FROM frolvlad/alpine-glibc as builder
RUN apk add git go g++
RUN apk add git go g++ fuse
RUN mkdir -p /go/src/github.com/chrislusf/
RUN git clone https://github.com/chrislusf/seaweedfs /go/src/github.com/chrislusf/seaweedfs
ARG BRANCH=${BRANCH:-master}

12
docker/local-dev-compose.yml

@ -12,7 +12,7 @@ services:
ports:
- 8080:8080
- 18080:18080
command: "volume -mserver=master:9333 -port=8080 -ip=volume"
command: "volume -mserver=master:9333 -port=8080 -ip=volume -preStopSeconds=1"
depends_on:
- master
filer:
@ -33,3 +33,13 @@ services:
- master
- volume
- filer
mount:
image: chrislusf/seaweedfs:local
privileged: true
cap_add:
- SYS_ADMIN
command: 'mount -filer="filer:8888" -dirAutoCreate -dir=/mnt/seaweedfs'
depends_on:
- master
- volume
- filer
Loading…
Cancel
Save