Closed y12studio closed 10 years ago
run db
$ sudo docker run -d --name db ckan/postgresql
$ sudo docker ps
$ sudo docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
1fab82892b74 ckan/postgresql:latest /usr/local/bin/run 53 seconds ago Up 52 seconds 5432/tcp db
run solr
$ sudo docker run -d --name solr ckan/solr
link CKAN
$ docker run -d -p 80:80 --link db:db --link solr:solr ckan/ckan
$ docker ps
ckanext-harvest TW ckan/ckanext-harvest
TODO
FROM ckan/ckan
# Install git
RUN DEBIAN_FRONTEND=noninteractive apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -q -y git redis-server
# Install the CKAN Spatial extension
RUN $CKAN_HOME/bin/pip install -e git+https://github.com/okfn/ckanext-harvest.git@stable#egg=ckanext-harvest
RUN $CKAN_HOME/bin/pip install -r pip-requirements.txt
# Add my custom configuration file
ADD mycustomconfig.ini $CKAN_CONFIG/ckan.ini
TODO
FROM ckan/ckan
# Install git
RUN DEBIAN_FRONTEND=noninteractive apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -q -y git
# Install the CKAN Spatial extension
RUN $CKAN_HOME/bin/pip install -e git+https://github.com/ckan/ckanext-spatial.git@stable#egg=ckanext-spatial
# Add my custom configuration file
ADD mycustomconfig.ini $CKAN_CONFIG/ckan.ini
ckan/install-using-docker.rst at master · ckan/ckan ckan/contrib/docker at master · ckan/ckan Issues · ckan/ckan