Can it be used on containerd?
nathonNot opened this issue · comments
I built an image based on the documentation and deployed it on EC2's k3s
ERROR:
IAM_ROLE is not set - mounting S3 with credentials from ENV
/docker-entrypoint.sh: line 19: /usr/bin/s3fs: No such file or directory
my dockerfile:
###############################################################################
The FUSE driver needs elevated privileges, run Docker with --privileged=true
###############################################################################
FROM alpine:latest
ENV MNT_POINT /var/s3
ENV IAM_ROLE=none
ENV S3_REGION 'ap-east-1'
VOLUME /var/s3
ARG S3FS_VERSION=v1.89
RUN apk --update add bash fuse libcurl libxml2 libstdc++ libgcc alpine-sdk automake autoconf libxml2-dev fuse-dev curl-dev git;
git clone https://github.com/s3fs-fuse/s3fs-fuse.git;
cd s3fs-fuse;
git checkout tags/${S3FS_VERSION};
./autogen.sh;
./configure --prefix=/usr ;
make;
make install;
make clean;
rm -rf /var/cache/apk/*;
apk del git automake autoconf;
RUN sed -i s/"#user_allow_other"/"user_allow_other"/g /etc/fuse.conf
COPY docker-entrypoint.sh /
RUN chmod 777 docker-entrypoint.sh
CMD /docker-entrypoint.sh
I changed the version of s3fs-fuse to 1.91 and it compiles normally