Skip to content

Commit 43fc24f

Browse files
zessirbosterman
authored andcommitted
Bump goofys version, removed default ENDPOINT and added UID/GID (#6)
* Bumped kahing/goofys version to avoid "not found" error. Added optional USER & GROUP options to change the goofys ownership. * Correctly mapping uid and gid instead of user/group * Removing default endpoint
1 parent 57c8db7 commit 43fc24f

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,20 @@ MAINTAINER Cloud Posse, LLC
44

55
RUN apk update && apk add gcc ca-certificates openssl musl-dev git fuse syslog-ng coreutils curl
66

7-
ENV GOOFYS_VERSION 0.19.0
7+
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
1010

11+
ARG ENDPOINT
1112
ENV MOUNT_DIR /mnt/s3
1213
ENV REGION us-east-1
13-
ENV ENDPOINT https://s3.amazonaws.com
1414
ENV BUCKET teleport-bucket
1515
ENV STAT_CACHE_TTL 1m0s
1616
ENV TYPE_CACHE_TTL 1m0s
1717
ENV DIR_MODE 0700
1818
ENV FILE_MODE 0600
19+
ENV UID 0
20+
ENV GID 0
1921

2022
RUN mkdir /mnt/s3
2123

rootfs/usr/bin/run.sh

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

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

5-
goofys -f --endpoint $ENDPOINT --region $REGION --stat-cache-ttl $STAT_CACHE_TTL --type-cache-ttl $TYPE_CACHE_TTL --dir-mode $DIR_MODE --file-mode $FILE_MODE -o nonempty $BUCKET $MOUNT_DIR
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

0 commit comments

Comments
 (0)