-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #199 from wri/merge/dev-staging
Merge dev into staging
- Loading branch information
Showing
5,260 changed files
with
63,619 additions
and
10,979 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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,4 @@ | ||
name: "CodeQL config" | ||
|
||
paths-ignore: | ||
- 'e2e/**' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ CKAN_CONTAINER_NAME=ckan-wri | |
WORKER_CONTAINER_NAME=ckan-worker | ||
MINIO_CONTAINER_NAME=minio-wri | ||
CKAN_IMAGE=${CKAN_IMAGE} | ||
SMTP_CONTAINER_NAME=smtp-wri | ||
|
||
# UWSGI | ||
UWSGI_HARAKIRI=50 | ||
|
@@ -33,6 +34,7 @@ DATASTORE_DB=datastore | |
CKAN_SQLALCHEMY_URL=postgresql://ckandbuser:ckandbpassword@db/ckandb | ||
CKAN_DATASTORE_WRITE_URL=postgresql://ckandbuser:ckandbpassword@db/datastore | ||
CKAN_DATASTORE_READ_URL=postgresql://datastore_ro:datastore@db/datastore | ||
CKAN__DATASTORE__SQLSEARCH__ENABLED=True | ||
|
||
# Test database connections | ||
TEST_CKAN_SQLALCHEMY_URL=postgres://ckan:ckan@db/ckan_test | ||
|
@@ -64,7 +66,7 @@ CKAN__AUTH__ALLOW_ADMIN_COLLABORATORS=True | |
CKAN__AUTH__ALLOW_COLLABORATORS_TO_CHANGE_OWNER_ORG=True | ||
|
||
# Solr | ||
SOLR_IMAGE_VERSION=2.10-solr8 | ||
SOLR_IMAGE_VERSION=2.10-solr8-spatial | ||
CKAN_SOLR_URL=http://solr:8983/solr/ckan | ||
TEST_CKAN_SOLR_URL=http://solr:8983/solr/ckan | ||
|
||
|
@@ -104,16 +106,36 @@ CKAN___SCHEMING__PRESETS=ckanext.wri.schema:presets.json | |
|
||
# auth | ||
CKANEXT__AUTH__INCLUDE_FRONTEND_LOGIN_TOKEN=True | ||
CKANEXT__AUTH__AZURE_TENANT_ID=ffffffff-ffff-ffff-ffff-ffffffffffff | ||
CKANEXT__AUTH__AZURE_CLIENT_ID=ffffffff-ffff-ffff-ffff-ffffffffffff | ||
|
||
# custom auth | ||
CKANEXT__WRI__ODP_URL=http://frontend:3000 | ||
|
||
# DataAPI | ||
#CKANEXT__DATA_API__HASURA_URL=http://hasura-svc:80 | ||
#CKANEXT__DATA_API__HASURA_ADMIN_KEY=test123546789 | ||
#CKANEXT__DATA_API__HASURA_DB="WRI Datastore" | ||
|
||
|
||
# Frontend Creds | ||
NEXTAUTH_SECRET=secret | ||
NEXTAUTH_URL=http://frontend:3000 | ||
CKAN_URL=http://ckan-dev:5000 | ||
NEXT_PUBLIC_CKAN_URL=http://ckan-dev:5000 | ||
S3_ACCESS_KEY_ID=${MINIO_ROOT_USER} | ||
S3_SECRET_KEY_ID=${MINIO_ROOT_PASSWORD} | ||
S3_BUCKET_NAME=ckan | ||
S3_BUCKET_REGION=us-east-1 | ||
SYS_ADMIN_API_KEY=CKAN_API_TOKEN | ||
SYS_ADMIN_API_KEY=CKAN_API_TOKEN | ||
RW_API_KEY=ffffffff-ffff-ffff-ffff-ffffffffffff | ||
AZURE_AD_CLIENT_ID=ffffffff-ffff-ffff-ffff-ffffffffffff | ||
AZURE_AD_CLIENT_SECRET=ffffffff-ffff-ffff-ffff-ffffffffffff | ||
AZURE_AD_TENANT_ID=ffffffff-ffff-ffff-ffff-ffffffffffff | ||
SYS_ADMIN_API_KEY=CKAN_API_TOKEN | ||
SMTP_SERVER="smtp.ssss.com" | ||
SMTP_PORT="587" | ||
SMTP_USER="SMTP_Injection" | ||
SMTP_PASSWORD="b07f" | ||
SMTP_FROM="[email protected]" | ||
|
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 |
---|---|---|
|
@@ -8,4 +8,9 @@ S3_ACCESS_KEY_ID=${MINIO_ROOT_USER} | |
S3_SECRET_KEY_ID=${MINIO_ROOT_PASSWORD} | ||
S3_BUCKET_NAME=ckan | ||
S3_BUCKET_REGION=us-east-1 | ||
SYS_ADMIN_API_KEY=CKAN_API_TOKEN | ||
SYS_ADMIN_API_KEY=CKAN_API_TOKEN | ||
SMTP_SERVER="smtp.ssss.com" | ||
SMTP_PORT="587" | ||
SMTP_USER="SMTP_Injection" | ||
SMTP_PASSWORD="b07f" | ||
SMTP_FROM="[email protected]" |
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 |
---|---|---|
|
@@ -26,10 +26,30 @@ RUN pip3 install -e 'git+https://github.com/datopian/ckanext-scheming.git@ckan-2 | |
pip3 install -e 'git+https://github.com/datopian/ckanext-s3filestore.git@wri/cost-splitting-orgs#egg=ckanext-s3filestore' && \ | ||
pip3 install -r 'https://raw.githubusercontent.com/datopian/ckanext-s3filestore/wri/cost-splitting-orgs/requirements.txt' && \ | ||
pip3 install -r 'https://raw.githubusercontent.com/datopian/ckanext-s3filestore/wri/cost-splitting-orgs/dev-requirements.txt' && \ | ||
pip3 install -e 'git+https://github.com/datopian/ckanext-auth.git@auth-object-return-token#egg=ckanext-auth' && \ | ||
pip3 install -e 'git+https://github.com/datopian/ckanext-auth.git@fff325e0238334b54f23a392bb0682a5abc3da3f#egg=ckanext-auth' && \ | ||
pip3 install -e 'git+https://github.com/ckan/ckanext-hierarchy.git@master#egg=ckanext-hierarchy' && \ | ||
pip3 install -e 'git+https://github.com/datopian/[email protected]#egg=ckanext-issues' | ||
|
||
# Required by shapely dependency | ||
RUN apk --update add build-base libxslt-dev python3-dev | ||
|
||
RUN apk add --virtual .build-deps \ | ||
--repository http://dl-cdn.alpinelinux.org/alpine/edge/testing \ | ||
--repository http://dl-cdn.alpinelinux.org/alpine/edge/main \ | ||
gcc libc-dev geos-dev geos && \ | ||
runDeps="$(scanelf --needed --nobanner --recursive /usr/local \ | ||
| awk '{ gsub(/,/, "\nso:", $2); print "so:" $2 }' \ | ||
| xargs -r apk info --installed \ | ||
| sort -u)" && \ | ||
apk add --virtual .rundeps $runDeps | ||
|
||
RUN geos-config --cflags | ||
|
||
RUN pip install --disable-pip-version-check Shapely==2.0.1 | ||
|
||
RUN apk del build-base python3-dev && \ | ||
rm -rf /var/cache/apk/* | ||
|
||
# Update ckanext-s3filestore test.ini with minio credentials | ||
RUN sed -i "s|ckanext.s3filestore.aws_access_key_id = test-access-key|ckanext.s3filestore.aws_access_key_id = ${AWS_ACCESS_KEY_ID}|g" src/ckanext-s3filestore/test.ini && \ | ||
sed -i "s|ckanext.s3filestore.aws_secret_access_key = test-secret-key|ckanext.s3filestore.aws_secret_access_key = ${AWS_SECRET_ACCESS_KEY}|g" src/ckanext-s3filestore/test.ini && \ | ||
|
@@ -74,4 +94,6 @@ RUN ckan config-tool ${CKAN_INI} "api_token.jwt.algorithm = RS256" && \ | |
ckan config-tool ${CKAN_INI} "api_token.jwt.encode.secret = file:${APP_DIR}/jwtRS256.key" && \ | ||
ckan config-tool ${CKAN_INI} "api_token.jwt.decode.secret = file:${APP_DIR}/jwtRS256.key.pub" | ||
|
||
COPY docker-entrypoint.d/* /docker-entrypoint.d/ | ||
|
||
CMD ["sh", "-c", "${APP_DIR}/start_ckan_development.sh"] |
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,14 @@ | ||
#!/bin/bash | ||
|
||
echo "Initializing custom tables..." | ||
|
||
ckan -c production.ini notificationdb | ||
|
||
EXIT_CODE=$? | ||
|
||
if [ $EXIT_CODE -ne 0 ]; then | ||
echo "Failed to initialize custom tables" | ||
exit $EXIT_CODE | ||
fi | ||
|
||
echo "Custom tables initialized successfully" |
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,4 @@ | ||
|
||
# Initialize Issues and Notification DB | ||
docker exec ckan-wri sh -c "ckan -c production.ini issuesdb" | ||
docker exec ckan-wri sh -c "ckan -c production.ini notificationdb" |
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.