Skip to content

Commit

Permalink
Merge pull request #136 from keitaroinc/fix-and-add-features
Browse files Browse the repository at this point in the history
fix and add features
  • Loading branch information
KirilPoposki98 authored Aug 29, 2024
2 parents 357f479 + 0ee692b commit 95bb72d
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 11 deletions.
1 change: 1 addition & 0 deletions compose/2.10/.env
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ DATAPUSHER_DOWNLOAD_TIMEOUT=30
DATAPUSHER_SSL_VERIFY=False
DATAPUSHER_REWRITE_RESOURCES=True
DATAPUSHER_REWRITE_URL=http://ckan:5005
DATAPUSHER_SSL_VERIFY=False

# SOLR
CKAN_CORE_NAME=ckan
Expand Down
23 changes: 19 additions & 4 deletions compose/2.10/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,12 @@ services:
- frontend
- backend
depends_on:
- db
- solr
db:
condition: service_healthy
restart: true
solr:
condition: service_healthy
restart: true
ports:
- "0.0.0.0:${CKAN_PORT}:5000"
env_file:
Expand All @@ -28,7 +32,6 @@ services:
- CKAN_MAX_UPLOAD_SIZE_MB=${CKAN_MAX_UPLOAD_SIZE_MB}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- DS_RO_PASS=${DATASTORE_READONLY_PASSWORD}

volumes:
- ckan_data:/srv/app/data

Expand All @@ -45,7 +48,7 @@ services:
- DATAPUSHER_CHUNK_SIZE=${DATAPUSHER_CHUNK_SIZE}
- DATAPUSHER_CHUNK_INSERT_ROWS=${DATAPUSHER_CHUNK_INSERT_ROWS}
- DATAPUSHER_DOWNLOAD_TIMEOUT=${DATAPUSHER_DOWNLOAD_TIMEOUT}
- DATAPUSHER_SSL_VERIFY=${DATA_PUSHER_SSL_VERIFY}
- DATAPUSHER_SSL_VERIFY=${DATAPUSHER_SSL_VERIFY}
- DATAPUSHER_REWRITE_RESOURCES=${DATAPUSHER_REWRITE_RESOURCES}
- DATAPUSHER_REWRITE_URL=${DATAPUSHER_REWRITE_URL}

Expand Down Expand Up @@ -82,12 +85,24 @@ services:
volumes:
- solr_data:/var/solr
- ${PWD}/solr8/ckan_init_solr.sh:/docker-entrypoint-initdb.d/ckan_init_solr.sh
healthcheck:
test: ["CMD-SHELL", "/opt/solr/bin/solr","status"]
interval: 5s
timeout: 5s
retries: 5
start_period: 5s

redis:
container_name: redis
image: redis:${REDIS_VERSION}
networks:
- backend
healthcheck:
test: ["CMD", "redis-cli", "--raw", "incr", "ping"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s

networks:
frontend:
Expand Down
2 changes: 1 addition & 1 deletion compose/2.11/.env
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ DATAPUSHER_DOWNLOAD_TIMEOUT=30
DATAPUSHER_SSL_VERIFY=False
DATAPUSHER_REWRITE_RESOURCES=True
DATAPUSHER_REWRITE_URL=http://ckan:5005
DATA_PUSHER_SSL_VERIFY=False
DATAPUSHER_SSL_VERIFY=False

# SOLR
CKAN_CORE_NAME=ckan
Expand Down
23 changes: 19 additions & 4 deletions compose/2.11/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,12 @@ services:
- frontend
- backend
depends_on:
- db
- solr
db:
condition: service_healthy
restart: true
solr:
condition: service_healthy
restart: true
ports:
- "0.0.0.0:${CKAN_PORT}:5000"
env_file:
Expand All @@ -28,7 +32,6 @@ services:
- CKAN_MAX_UPLOAD_SIZE_MB=${CKAN_MAX_UPLOAD_SIZE_MB}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- DS_RO_PASS=${DATASTORE_READONLY_PASSWORD}

volumes:
- ckan_data:/srv/app/data

Expand All @@ -45,7 +48,7 @@ services:
- DATAPUSHER_CHUNK_SIZE=${DATAPUSHER_CHUNK_SIZE}
- DATAPUSHER_CHUNK_INSERT_ROWS=${DATAPUSHER_CHUNK_INSERT_ROWS}
- DATAPUSHER_DOWNLOAD_TIMEOUT=${DATAPUSHER_DOWNLOAD_TIMEOUT}
- DATAPUSHER_SSL_VERIFY=${DATA_PUSHER_SSL_VERIFY}
- DATAPUSHER_SSL_VERIFY=${DATAPUSHER_SSL_VERIFY}
- DATAPUSHER_REWRITE_RESOURCES=${DATAPUSHER_REWRITE_RESOURCES}
- DATAPUSHER_REWRITE_URL=${DATAPUSHER_REWRITE_URL}

Expand Down Expand Up @@ -82,12 +85,24 @@ services:
volumes:
- solr_data:/var/solr
- ${PWD}/solr8/ckan_init_solr.sh:/docker-entrypoint-initdb.d/ckan_init_solr.sh
healthcheck:
test: ["CMD-SHELL", "/opt/solr/bin/solr","status"]
interval: 5s
timeout: 5s
retries: 5
start_period: 5s

redis:
container_name: redis
image: redis:${REDIS_VERSION}
networks:
- backend
healthcheck:
test: ["CMD", "redis-cli", "--raw", "incr", "ping"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s

networks:
frontend:
Expand Down
2 changes: 1 addition & 1 deletion images/ckan/2.10/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ ENV DEFAULT_EXTENSIONS envvars

# Locations and tags, please use specific tags or revisions
ENV ENVVARS_GIT_URL=https://github.com/okfn/ckanext-envvars
ENV ENVVARS_GIT_BRANCH=0.0.2
ENV ENVVARS_GIT_BRANCH=v0.0.4

RUN apk add --no-cache \
python3 \
Expand Down
2 changes: 1 addition & 1 deletion images/ckan/2.10/Dockerfile.focal
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ ENV DEFAULT_EXTENSIONS envvars

# Locations and tags, please use specific tags or revisions
ENV ENVVARS_GIT_URL=https://github.com/okfn/ckanext-envvars
ENV ENVVARS_GIT_BRANCH=0.0.1
ENV ENVVARS_GIT_BRANCH=v0.0.4

RUN apt-get update && \
apt-get install --no-install-recommends -y \
Expand Down

1 comment on commit 95bb72d

@KBrianNgeno
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you. This fixed the Unable to connect to Solr... issue.

Please sign in to comment.