Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:ckan/ckan into 1764-solr-rubbish
Conflicts: ckan/new_tests/helpers.py
- Loading branch information
Showing
52 changed files
with
1,184 additions
and
478 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
FROM phusion/baseimage:0.9.10 | ||
MAINTAINER Open Knowledge | ||
|
||
# Disable SSH | ||
RUN rm -rf /etc/service/sshd /etc/my_init.d/00_regen_ssh_host_keys.sh | ||
|
||
ENV HOME /root | ||
ENV CKAN_HOME /usr/lib/ckan/default | ||
ENV CKAN_CONFIG /etc/ckan/default | ||
ENV CKAN_DATA /var/lib/ckan | ||
|
||
# Install required packages | ||
RUN apt-get -q -y update | ||
RUN DEBIAN_FRONTEND=noninteractive apt-get -q -y install \ | ||
python-minimal \ | ||
python-dev \ | ||
python-virtualenv \ | ||
libevent-dev \ | ||
libpq-dev \ | ||
nginx-light \ | ||
apache2 \ | ||
libapache2-mod-wsgi \ | ||
postfix \ | ||
build-essential | ||
|
||
# Install CKAN | ||
RUN virtualenv $CKAN_HOME | ||
RUN mkdir -p $CKAN_HOME $CKAN_CONFIG $CKAN_DATA | ||
RUN chown www-data:www-data $CKAN_DATA | ||
|
||
ADD ./requirements.txt $CKAN_HOME/src/ckan/requirements.txt | ||
RUN $CKAN_HOME/bin/pip install -r $CKAN_HOME/src/ckan/requirements.txt | ||
ADD . $CKAN_HOME/src/ckan/ | ||
RUN $CKAN_HOME/bin/pip install -e $CKAN_HOME/src/ckan/ | ||
RUN ln -s $CKAN_HOME/src/ckan/ckan/config/who.ini $CKAN_CONFIG/who.ini | ||
ADD ./contrib/docker/apache.wsgi $CKAN_CONFIG/apache.wsgi | ||
|
||
# Configure apache | ||
ADD ./contrib/docker/apache.conf /etc/apache2/sites-available/ckan.conf | ||
RUN echo "Listen 8080" > /etc/apache2/ports.conf | ||
RUN a2ensite ckan | ||
RUN a2dissite 000-default | ||
|
||
# Configure nginx | ||
ADD ./contrib/docker/nginx.conf /etc/nginx/nginx.conf | ||
RUN mkdir /var/cache/nginx | ||
|
||
# Configure postfix | ||
ADD ./contrib/docker/main.cf /etc/postfix/main.cf | ||
|
||
# Configure runit | ||
ADD ./contrib/docker/svc /etc/service | ||
CMD ["/sbin/my_init"] | ||
|
||
VOLUME ["/var/lib/ckan"] | ||
EXPOSE 80 | ||
|
||
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.