-
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.
add committees-next nginx, traefik and committees package
- Loading branch information
Showing
6 changed files
with
82 additions
and
10 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
charts-external/pipelines-jobs/templates/committee-package.yaml
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,41 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: pipeline-committee-package-ops-envfrom | ||
data: | ||
INITIAL_SYNC_SCRIPT: | | ||
mkdir -p /pipelines/data/committees/meeting_protocols_text &&\ | ||
mkdir -p /pipelines/data/committees/meeting_protocols_parts &&\ | ||
mkdir -p /pipelines/data/committees/kns_cmtsessionitem &&\ | ||
mkdir -p /pipelines/data/committees/kns_committeesession &&\ | ||
gsutil -m rsync -r gs://knesset-data-pipelines/data/committees/meeting_protocols_text/ \ | ||
/pipelines/data/committees/meeting_protocols_text/ | ||
gsutil -m rsync -r gs://knesset-data-pipelines/data/committees/meeting_protocols_parts/ \ | ||
/pipelines/data/committees/meeting_protocols_parts/ | ||
gsutil -m rsync -r gs://knesset-data-pipelines/data/committees/kns_cmtsessionitem/ \ | ||
/pipelines/data/committees/kns_cmtsessionitem/ | ||
gsutil -m rsync -r gs://knesset-data-pipelines/data/committees/kns_committeesession/ \ | ||
/pipelines/data/committees/kns_committeesession/ | ||
--- | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: pipeline-committee-package-envfrom | ||
data: | ||
PIPELINES_SCRIPT: | | ||
cd /pipelines &&\ | ||
( | ||
RES=0; | ||
! run_pipeline ./committees/gcs_list_files && RES=1; | ||
! run_pipeline ./committees/join-meetings && RES=1; | ||
! run_pipeline ./committees/meetings_datapackage_zip && RES=1; | ||
rm -rf /pipelines/data/committees/meeting_protocols_text; | ||
rm -rf /pipelines/data/committees/meeting_protocols_parts; | ||
rm -rf /pipelines/data/committees/kns_cmtsessionitem; | ||
rm -rf /pipelines/data/committees/kns_committeesession; | ||
exit $RES | ||
) | ||
--- | ||
{{ dict "name" "pipeline-committee-package" "Values" .Values "enabled" .Values.committeesPackage.enabled "opsEnvFrom" true "allowPipelineOps" true | include "pipeline-job" }} |
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 |
---|---|---|
|
@@ -14,7 +14,7 @@ pipelines-jobs: | |
|
||
# download and parse committee protocols | ||
committeesProtocols: {"enabled": true} | ||
committeesProtocolsParse: {"enabled": true} | ||
committeesPackage: {"enabled": true} | ||
|
||
# build the meetings html pages | ||
committeesBuildMeetings: {"enabled": true} | ||
|
@@ -34,6 +34,8 @@ traefik: | |
acmeDomains: | | ||
[[acme.domains]] | ||
main = "production.oknesset.org" | ||
[[acme.domains]] | ||
main = "committees-next.oknesset.org" | ||
acmeEmail: [email protected] | ||
dnsProvider: route53 | ||
# AWS IAM user name = oknesset-route53-api | ||
|
@@ -44,3 +46,5 @@ traefik: | |
# gcloud compute addresses describe oknesset-production-traefik --region=us-central1 | grep ^address: | ||
loadBalancerIP: "35.184.112.37" | ||
enableLoadBalancer: true | ||
enableCommitteesNext: true | ||
committeesNextDomain: committees-next.oknesset.org |
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