Skip to content

Commit 6a7a164

Browse files
author
zessirb
authored
Added catfs and goofys's "allow_other" optional parameter (#7)
1 parent 43fc24f commit 6a7a164

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ RUN apk update && apk add gcc ca-certificates openssl musl-dev git fuse syslog-n
77
ENV GOOFYS_VERSION 0.23.1
88
RUN curl --fail -sSL -o /usr/local/bin/goofys https://github.com/kahing/goofys/releases/download/v${GOOFYS_VERSION}/goofys \
99
&& chmod +x /usr/local/bin/goofys
10+
RUN curl -sSL -o /usr/local/bin/catfs https://github.com/kahing/catfs/releases/download/v0.8.0/catfs && chmod +x /usr/local/bin/catfs
1011

1112
ARG ENDPOINT
1213
ENV MOUNT_DIR /mnt/s3

rootfs/usr/bin/run.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22

33
syslog-ng -f /etc/syslog-ng/syslog-ng.conf
44

5-
goofys -f ${ENDPOINT:+--endpoint $ENDPOINT} --region $REGION --stat-cache-ttl $STAT_CACHE_TTL --type-cache-ttl $TYPE_CACHE_TTL --dir-mode $DIR_MODE --file-mode $FILE_MODE --uid $UID --gid $GID -o nonempty $BUCKET $MOUNT_DIR
5+
[[ "$UID" -ne "0" ]] && MOUNT_ACCESS="allow_other" || MOUNT_ACCESS="nonempty"
6+
7+
goofys -f ${ENDPOINT:+--endpoint $ENDPOINT} --region $REGION --stat-cache-ttl $STAT_CACHE_TTL --type-cache-ttl $TYPE_CACHE_TTL --dir-mode $DIR_MODE --file-mode $FILE_MODE --uid $UID --gid $GID -o $MOUNT_ACCESS $BUCKET $MOUNT_DIR

0 commit comments

Comments
 (0)