forked from childsb/s3fs-container
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
26 lines (23 loc) · 721 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Copyright 2015 bradley childs, All rights reserved.
#
FROM centos:7
MAINTAINER bradley childs, [email protected]
RUN yum update -y ; yum install automake fuse-devel gcc-c++ git libcurl-devel libxml2-devel make openssl-devel -y
RUN mkdir -p /root
WORKDIR /root
RUN git clone https:/s3fs-fuse/s3fs-fuse.git
WORKDIR /root/s3fs-fuse
RUN ./autogen.sh
RUN ./configure
RUN make
RUN make install
RUN mkdir -p /mnt/mountpoint
RUN echo $'#!/bin/sh\n \
echo $S3User:$S3Secret > /etc/passwd-s3fs\n \
chmod 600 /etc/passwd-s3fs\n \
exec s3fs "$@"' > /root/s3fs.sh
RUN chmod +x /root/s3fs.sh
ENV S3User $S3User
ENV S3Secret $S3Secret
ENTRYPOINT ["/root/s3fs.sh"]
# CMD ["--help"]