dev cluster adds fuse mount

This commit is contained in:
Chris Lu 2020-12-31 19:54:31 -08:00
parent 2a5fc7aa4d
commit 712563fbdd
3 changed files with 13 additions and 3 deletions

View file

@ -1,5 +1,5 @@
FROM frolvlad/alpine-glibc as builder 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 mkdir -p /go/src/github.com/chrislusf/
RUN git clone https://github.com/chrislusf/seaweedfs /go/src/github.com/chrislusf/seaweedfs RUN git clone https://github.com/chrislusf/seaweedfs /go/src/github.com/chrislusf/seaweedfs
ARG BRANCH=${BRANCH:-master} ARG BRANCH=${BRANCH:-master}

View file

@ -1,5 +1,5 @@
FROM frolvlad/alpine-glibc as builder 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 mkdir -p /go/src/github.com/chrislusf/
RUN git clone https://github.com/chrislusf/seaweedfs /go/src/github.com/chrislusf/seaweedfs RUN git clone https://github.com/chrislusf/seaweedfs /go/src/github.com/chrislusf/seaweedfs
ARG BRANCH=${BRANCH:-master} ARG BRANCH=${BRANCH:-master}

View file

@ -12,7 +12,7 @@ services:
ports: ports:
- 8080:8080 - 8080:8080
- 18080:18080 - 18080:18080
command: "volume -mserver=master:9333 -port=8080 -ip=volume" command: "volume -mserver=master:9333 -port=8080 -ip=volume -preStopSeconds=1"
depends_on: depends_on:
- master - master
filer: filer:
@ -33,3 +33,13 @@ services:
- master - master
- volume - volume
- filer - 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