Skip to content

Commit 0962352

Browse files
committed
add readme and delete unneeded files
1 parent 319b74b commit 0962352

File tree

2,137 files changed

+59
-755205
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,137 files changed

+59
-755205
lines changed

README.md

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# CIOOS Fork of CKAN/CKAN
2+
3+
This repo was originally forked from `https://github.com/ckan/ckan` and has undergone significant modification to make it docker compatible. It now more closely resembles `https://github.com/ckan/ckan-docker` and has a similer intention, that of providing an easy ckan install encapsulated in docker containers.
4+
5+
This repo builds a cioos ckan docker container along with associated solr, postgres, redis containers. It differs from other ckan docker builds such as `https://github.com/ckan/ckan-docker-base` in that it does not user supervisor to run the harvesters. instead 3 containers are spun up, ckan_gather_harvester, ckan_fetch_harvester, and ckan_run_harvester. In this way the harvesters are independent of the ckan main app.
6+
7+
Detailed documentation can be found in `/docs`. Release notes for cioos ckan version can be found in `/contrib/docker/release_notes`
8+
9+
## Details
10+
CKAN docker images built in this repo are based on the `ckan/ckan-base:2.9` docker image. The CKAN extensions are included in this repo as submodules and can be found at `/contrib/docker/src`.
11+
12+
The Redis, Postgres, and Solr containers use prebuilt images. Some configuration of the Solr container is required however. Solr schema config can be found in `/ckan/config/solr`. The CKAN, Solr and Postgres images are built by github actions and pushed to docker hub. Postgres init scripts are found in `/contrib/docker/postgres/docker-entrypoint-initdb.d`. See the docker-compose.yml in `/contrib/docker/` for more infomation.
13+
14+
## How to Build
15+
Building of produciton and dev images can be done in various ways
16+
17+
### Local build
18+
```
19+
cd ~/ckan/contrib/docker/
20+
sudo docker-compose -f docker-compose.yml build ckan
21+
```
22+
23+
### GitHub actions
24+
To build images from github actions we first start a pull request to `cioos` or `cioos-dev` branches. Once the PR is approved and merged, a new dev or production image will be built by the github actions. The images will be pushed to docker hub and available for download at `https://hub.docker.com/orgs/cioos/repositories`
25+
26+
## How to update
27+
If updating a submodule simple make changes to the sub repo and generate a PR or push changes as per the usual
28+
development workflow for that repo. Once changes are pushed to GitHub you can update the submodule in this repo and
29+
push changes. Any push to the 'cioos' or 'cioos-dev' branches will generate a new image
30+
31+
A new image build will automatically use the latest ckan 2.9 base image so to update to a newer base image minor version you simple need to rebuild the image
32+
33+
If updating to a newer major version you will need to modify the Dockerfile to use a new major version and do significant testing.
34+
35+
## How to install
36+
Clone this github repo to your server
37+
```
38+
git clone https://github.com/cioos-siooc/ckan.git
39+
```
40+
41+
Generate enviroemnt file
42+
```
43+
cd ckan/contrib/docker
44+
cp .env.template .env
45+
nano .env
46+
```
47+
48+
Pull CKAN, solr, redis, and postgres images
49+
```
50+
sudo docker-compose pull
51+
```
52+
53+
Start containers
54+
```
55+
sudo docker-compose up -d
56+
```
57+
58+
Depending on your setup you will likely want to proxy the containers behind nginx or apache. More details regarding install, upgrading, debugging can be found in the /docs folder
59+

contrib/docker/apache.conf

Lines changed: 0 additions & 14 deletions
This file was deleted.

contrib/docker/apache.wsgi

Lines changed: 0 additions & 10 deletions
This file was deleted.

contrib/docker/main.cf

Lines changed: 0 additions & 4 deletions
This file was deleted.

contrib/docker/my_init.d/50_configure

Lines changed: 0 additions & 64 deletions
This file was deleted.

contrib/docker/my_init.d/70_initdb

Lines changed: 0 additions & 4 deletions
This file was deleted.

contrib/docker/nginx.conf

Lines changed: 0 additions & 57 deletions
This file was deleted.

contrib/docker/pycsw/entrypoint.py

Lines changed: 0 additions & 178 deletions
This file was deleted.

0 commit comments

Comments
 (0)