Skip to content

Commit f381a9e

Browse files
Merge pull request #35 from derekwaynecarr/rockmongo_pecl_update
Update Dockerfile, pecl install mongo now requires stdin
2 parents 2bb7e19 + d9f9313 commit f381a9e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

centos-rockmongo/Dockerfile

+5-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@ MAINTAINER Derek Carr <[email protected]>
55
# update, install required, clean
66
RUN yum -y update && yum install -y httpd php php-devel wget php-pear unzip gcc-c++ && yum clean all
77

8-
#install mongo drivers
9-
RUN pecl install mongo && cd /etc && echo "extension=mongo.so" >> /etc/php.d/mongo.ini
8+
# update pecl channels
9+
RUN pecl update-channels
10+
11+
# install mongo drivers without Cyrus SASL (MongoDB Enterprise Authentication)
12+
RUN printf "no\n" | pecl install mongo && cd /etc && echo "extension=mongo.so" >> /etc/php.d/mongo.ini
1013

1114
# install RockMongo
1215
RUN cd /root && wget -O rockmongo-1.1.5.zip http://rockmongo.com/downloads/go?id=12 && unzip rockmongo-1.1.5.zip -d /var/www/ && rm -R /var/www/html && mv /var/www/rockmongo/ /var/www/html

0 commit comments

Comments
 (0)