forked from patrickhwood/docker-local-s3
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
55 lines (44 loc) · 1.54 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
FROM ubuntu:16.04
RUN apt-get update; apt-get install -y software-properties-common
# https://wiki.ubuntu.com/ServerTeam/CloudArchive
RUN add-apt-repository -y cloud-archive:ocata
RUN apt-get update; apt-get install -y \
nano \
rsyslog \
supervisor \
memcached \
swift \
swift-proxy \
swift-object \
swift-account \
swift-container \
swift-object
# dependencies for swift3
RUN apt-get install -y \
git \
python-dev \
python-pip \
libffi-dev \
libssl-dev \
libxml2-dev \
libxslt1-dev
RUN pip install lxml
# requests version with ubuntu 14.04 not comptabible with Swift3, upgrade
RUN pip install requests --upgrade
# for keystone auth, we need the keystone middleware
RUN pip install keystonemiddleware
# to get a decently recent version of swift3, you have to git clone...
RUN cd /root; git clone https://github.com/stackforge/swift3.git
RUN cd /root/swift3; python setup.py install
#RUN pip install python_swiftclient
COPY files/dispersion.conf /etc/swift/dispersion.conf
COPY files/rsyncd.conf /etc/rsyncd.conf
COPY files/account-server.conf /etc/swift/account-server.conf
COPY files/object-server.conf /etc/swift/object-server.conf
COPY files/container-server.conf /etc/swift/container-server.conf
COPY files/proxy-server-keystone.conf /etc/swift/proxy-server.conf
COPY files/swift.conf /etc/swift/swift.conf
COPY files/startmain.sh /usr/local/bin/startmain.sh
COPY files/container-reconciler.conf /etc/swift/container-reconciler.conf
EXPOSE 8080
CMD ["bash", "/usr/local/bin/startmain.sh"]