-
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.
- Loading branch information
Showing
17 changed files
with
189 additions
and
152 deletions.
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,9 @@ | ||
name: action1 | ||
run-name: ${{ github.actor }} is learning GitHub Actions | ||
on: [push] | ||
jobs: | ||
list-repo: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: ls -la |
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 |
---|---|---|
|
@@ -7,6 +7,6 @@ docker/.tmp/* | |
|
||
**node_modules** | ||
|
||
*.env | ||
.env-secrets.env | ||
|
||
**/*build.log |
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,10 @@ | ||
#!/bin/sh | ||
|
||
cd docker && \ | ||
docker compose build --build-arg GH_TOKEN=$(aws secretsmanager get-secret-value \ | ||
--secret-id ci-cd \ | ||
--query SecretString \ | ||
--output text | \ | ||
jq .CKAN_GH_CTREPKA_TOKEN | \ | ||
tr -d '"') --progress plain --no-cache 2>&1 | \ | ||
tee build.log |
This file was deleted.
Oops, something went wrong.
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,94 @@ | ||
# Runtime configuration of CKAN enabled through ckanext-envvars | ||
# Information about how it works: https://github.com/okfn/ckanext-envvars | ||
# Note that variables here take presedence over build/up time variables in .env | ||
|
||
# Set to true to disable CKAN from starting and serve a maintenance page | ||
MAINTENANCE_MODE=false | ||
|
||
|
||
POSTGRES_PASSWORD=ckan | ||
POSTGRES_USER=postgres | ||
POSTGRES_PORT=5432 | ||
|
||
CKAN_SQLALCHEMY_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db/ckan | ||
CKAN_SOLR_URL=http://solr:8983/solr/ckan | ||
CKAN_REDIS_URL=redis://redis:6379/1 | ||
CKAN_SITE_URL=${CKAN_SITE_URL} | ||
CKAN_MAX_UPLOAD_SIZE_MB=${CKAN_MAX_UPLOAD_SIZE_MB} | ||
|
||
DATASTORE_READONLY_USER=datastore | ||
DATASTORE_READONLY_PASSWORD=datastore | ||
|
||
#DB CONNECTION STRINGS | ||
CKAN_DATASTORE_WRITE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db/datastore | ||
CKAN_DATASTORE_READ_URL=postgresql://${DATASTORE_READONLY_USER}:${DATASTORE_READONLY_PASSWORD}@db/datastore | ||
|
||
# General Settings | ||
CKAN_VERSION=2.9.5 | ||
CKAN_SITE_ID=default | ||
CKAN_SITE_URL=http://localhost:5000 | ||
CKAN_PORT=5000 | ||
CKAN__MAX_UPLOAD_SIZE_MB=512 | ||
CKAN__MAX_RESOURCE_SIZE=512 | ||
|
||
# CKAN Plugins | ||
CKAN__PLUGINS=envvars image_view text_view recline_view datastore datapusher | ||
|
||
# CKAN requires storage path to be set in order for filestore to be enabled | ||
CKAN__STORAGE_PATH=/srv/app/data | ||
CKAN__WEBASSETS__PATH=/srv/app/data/webassets | ||
|
||
# SYSADMIN settings, a sysadmin user is created automatically with the below credentials | ||
CKAN_SYSADMIN_NAME=sysadmin | ||
CKAN_SYSADMIN_PASSWORD=password | ||
CKAN_SYSADMIN_EMAIL=[email protected] | ||
|
||
# Email settings | ||
# CKAN_SMTP_SERVER=smtp.corporateict.domain:25 | ||
# CKAN_SMTP_STARTTLS=True | ||
# CKAN_SMTP_USER=user | ||
# CKAN_SMTP_PASSWORD=pass | ||
# CKAN_SMTP_MAIL_FROM=ckan@localhost | ||
|
||
# Datapusher configuration | ||
CKAN__DATAPUSHER__URL=http://datapusher:8000 | ||
CKAN__DATAPUSHER__CALLBACK_URL_BASE=http://ckan:5000/ | ||
DATAPUSHER_VERSION=0.0.17 | ||
DATAPUSHER_MAX_CONTENT_LENGTH=512000000 | ||
DATAPUSHER_CHUNK_SIZE=16384 | ||
DATAPUSHER_CHUNK_INSERT_ROWS=250 | ||
DATAPUSHER_DOWNLOAD_TIMEOUT=30 | ||
DATAPUSHER_SSL_VERIFY=False | ||
DATAPUSHER_REWRITE_RESOURCES=True | ||
DATAPUSHER_REWRITE_URL=http://ckan:5000 | ||
|
||
# Harvest settings | ||
CKAN__HARVEST__MQ__TYPE=redis | ||
CKAN__HARVEST__MQ__HOSTNAME=redis | ||
|
||
# Solr configuration | ||
CKAN_VERSION=2.9.5 | ||
CKAN_CORE_NAME=ckan | ||
|
||
# Redis | ||
REDIS_VERSION=6.0.7 | ||
|
||
# ckanext_envvars for plugins | ||
CKAN___BEAKER__SESSION__DATA_SERIALIZER=json | ||
CKAN___BEAKER__SESSION__HTTPONLY=true | ||
CKAN___BEAKER__SESSION__SECURE=true | ||
CKAN___BEAKER__SESSION__TIMEOUT=3600 | ||
CKAN___BEAKER__SESSION__SAVE_ACCESSED_TIME=true | ||
CKAN___BEAKER__SESSION__TYPE=ext:redis | ||
CKAN___BEAKER__SESSION__URL=redis://redis:6379/8 | ||
CKAN___BEAKER__SESSION__COOKIE_EXPIRES=true | ||
CKAN___BEAKER__SESSION__COOKIE_DOMAIN=localhost:5000 | ||
CKANEXT__SECURITY__DOMAIN=localhost:5000 | ||
CKANEXT__SECURITY__REDIS__HOST=redis | ||
CKANEXT__SECURITY__REDIS__PORT=6379 | ||
CKANEXT__SECURITY__REDIS__DB=8 | ||
CKANEXT__SECURITY__LOCK_TIMEOUT=900 | ||
CKANEXT__SECURITY__LOGIN_MAX_COUNT=10 | ||
CKANEXT__SECURITY__BRUTE_FORCE_KEY=user_name | ||
CKANEXT__SECURITY__DISABLE_PASSWORD_RESET_OVERRIDE=true | ||
CKANEXT__SECURITY__MFA_HELP_LINK=https://localhost:5000/pages/mfa |
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,5 @@ | ||
# Database | ||
POSTGRES_PASSWORD=ckan | ||
POSTGRES_USER=postgres | ||
POSTGRES_PORT="5432" | ||
DATASTORE_READONLY_PASSWORD=datastore |
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,26 @@ | ||
# Datapusher | ||
DATAPUSHER_VERSION=0.0.17 | ||
DATAPUSHER_MAX_CONTENT_LENGTH=512000000 | ||
DATAPUSHER_CHUNK_SIZE=16384 | ||
DATAPUSHER_CHUNK_INSERT_ROWS=250 | ||
DATAPUSHER_DOWNLOAD_TIMEOUT=30 | ||
DATAPUSHER_SSL_VERIFY=False | ||
DATAPUSHER_REWRITE_RESOURCES=True | ||
DATAPUSHER_REWRITE_URL=http://ckan:5000 | ||
|
||
DB_HOST=db | ||
POSTGRES_USER=postgres | ||
POSTGRES_PASSWORD=ckan | ||
POSTGRES_DB=ckan | ||
CKAN_DB_USER=ckan | ||
CKAN_DB_PASSWD=ckan | ||
CKAN_DB_NAME=ckan | ||
DATASTORE_DB_USER=datastore | ||
DATASTORE_DB_PASSWORD=datastore | ||
DATASTORE_DB_NAME=datastore | ||
JOBS_DB_USER=jobs | ||
JOBS_DB_PASSWORD=jobs | ||
JOBS_DB_NAME=jobs | ||
CKAN_SQLALCHEMY_URL=postgresql://$(CKAN_DB_USER):$(CKAN_DB_PASSWD)@$(DB_HOST)/$(CKAN_DB_NAME) | ||
SQLALCHEMY_DATABASE_URI=postgresql://$(JOBS_DB_USER):$(JOBS_DB_PASSWORD)@$(DB_HOST)/$(JOBS_DB_NAME) | ||
WRITE_ENGINE_URL=postgresql://$(DATASTORE_DB_USER):$(DATASTORE_DB_PASSWORD)@$(DB_HOST)/$(DATASTORE_DB_NAME) |
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,2 @@ | ||
# Redis | ||
REDIS_VERSION=6.0.7 |
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,8 @@ | ||
# DO NOT UPLOAD THESE VALUES TO GITHUB!!! | ||
# THIS FILE SHOULD BE RENAMED TO `.env-secrets.env` WHEN TESTING LOCALLY | ||
# AGAIN, DO NOT UPLOAD THESE VALUES TO SOURCE CONTROL | ||
# THEY ALLOW ACCESS TO A PRIVATE S3 BUCKET | ||
|
||
# s3filestore key id and access key | ||
CKANEXT__S3FILESTORE__AWS_ACCESS_KEY_ID=<ACCESS_KEY_ID_HERE> | ||
CKANEXT__S3FILESTORE__AWS_SECRET_ACCESS_KEY=<SECRET_ACCESS_KEY_HERE> |
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,2 @@ | ||
# SOLR | ||
CKAN_CORE_NAME=ckan |
This file was deleted.
Oops, something went wrong.
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
Empty file.
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.