File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ osd pool default pg_num = {{ .deis_store_pgNum }}
1212osd pool default pgp_num = {{ .deis_store_pgNum }}
1313osd recovery delay start = {{ .deis_store_delayStart }}
1414log file = /dev/stdout
15+ rgw_frontends = "civetweb port=8888"
16+ rgw_thread_pool_size = 512
1517
1618[client.radosgw.gateway]
1719host = deis-store-gateway
Original file line number Diff line number Diff line change 11#FROM is generated dynamically by the Makefile
22
3- # install Apache and RADOS gateway
4- RUN curl -sSL https://raw.github.com/ceph/ceph/master/keys/autobuild.asc | apt-key add -
5- RUN echo deb http://gitbuilder.ceph.com/apache2-deb-trusty-x86_64-basic/ref/master trusty main > /etc/apt/sources.list.d/ceph-apache.list
6- RUN echo deb http://gitbuilder.ceph.com/libapache-mod-fastcgi-deb-trusty-x86_64-basic/ref/master trusty main > /etc/apt/sources.list.d/ceph-fastcgi.list
3+ ADD build.sh /tmp/build.sh
74
8- RUN apt-get update && apt-get install -yq apache2 libapache2-mod-fastcgi radosgw radosgw-agent
9-
10- # enable required Apache modules
11- RUN a2enmod rewrite
12- RUN a2enmod fastcgi
13-
14- # change the default port
15- RUN sed -i 's/80/8888/' /etc/apache2/ports.conf
16-
17- # set the ServerName
18- RUN echo "ServerName deis-store-gateway" > /etc/apache2/conf-available/servername.conf
19- RUN a2enconf servername.conf
20-
21- # create gateway site, and disable the default site
22- ADD s3gw.fcgi /var/www/s3gw.fcgi
23- ADD rgw.conf /etc/apache2/sites-available/rgw.conf
24- RUN a2ensite rgw.conf
25- RUN a2dissite 000-default.conf
5+ RUN DOCKER_BUILD=true /tmp/build.sh
266
277WORKDIR /app
288EXPOSE 8888
299CMD ["/app/bin/boot"]
3010ADD bin/boot /app/bin/boot
11+
Original file line number Diff line number Diff line change @@ -98,12 +98,8 @@ etcdctl --no-sync -C $ETCD set $ETCD_PATH/secretKey ${SECRET_KEY} >/dev/null
9898echo " Starting RADOS gateway..."
9999/etc/init.d/radosgw start
100100
101- echo " Starting Apache..."
102- /usr/sbin/apache2ctl start
103-
104101# smart shutdown on SIGINT and SIGTERM
105102function on_exit() {
106- /usr/sbin/apache2ctl stop
107103 /etc/init.d/radosgw stop
108104 exit 0
109105}
@@ -146,3 +142,4 @@ if [[ ! -z $EXTERNAL_PORT ]]; then
146142fi
147143
148144wait
145+
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ # fail on any command exiting non-zero
4+ set -eo pipefail
5+
6+ if [[ -z $DOCKER_BUILD ]]; then
7+ echo
8+ echo " Note: this script is intended for use by the Dockerfile and not as a way to build the store dashboard locally"
9+ echo
10+ exit 1
11+ fi
12+
13+ DEBIAN_FRONTEND=noninteractive
14+
15+ apt-get update && apt-get install -yq radosgw radosgw-agent
16+
17+ # cleanup. indicate that python is a required package.
18+ apt-get clean -y && \
19+ rm -Rf /usr/share/man /usr/share/doc && \
20+ rm -rf /tmp/* /var/tmp/* && \
21+ rm -rf /var/lib/apt/lists/*
22+
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments