-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
28 lines (24 loc) · 875 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
27
28
FROM centos:latest
MAINTAINER Marcus Grando <[email protected]>
ENV REPO none
ENV REGION none
ENV AWS_ACCESS_KEY_ID none
ENV AWS_SECRET_ACCESS_KEY none
# Add Fuse and Boto support
RUN yum -y update \
&& yum -y install fuse fuse-libs createrepo rsync epel-release \
&& yum -y install python3-pip && pip3 install boto \
&& yum -y install automake fuse-devel gcc-c++ libcurl-devel libxml2-devel make openssl-devel \
&& curl -L https://github.com/s3fs-fuse/s3fs-fuse/archive/v1.86.tar.gz | tar -xzf - \
&& cd s3fs-fuse-1.86 \
&& ./autogen.sh && ./configure --prefix=/usr \
&& make \
&& make install \
&& cd .. \
&& rm -rf s3fs-fuse-1.86 \
&& yum -y history undo last \
&& yum clean all
ADD ./start.sh /usr/bin/start.sh
ADD ./sqs-createrepo.py /usr/bin/sqs-createrepo.py
RUN chmod +x /usr/bin/start.sh
CMD ["/usr/bin/start.sh"]