y12studio / y12io

online service evaluation
Apache License 2.0
4 stars 0 forks source link

CKAN Docker #23

Closed y12studio closed 10 years ago

y12studio commented 10 years ago

ckan/install-using-docker.rst at master · ckan/ckan ckan/contrib/docker at master · ckan/ckan Issues · ckan/ckan

y12studio commented 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
y12studio commented 10 years ago

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
y12studio commented 10 years ago

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

ckanext-spatial TW

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