-
Notifications
You must be signed in to change notification settings - Fork 7
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 #39 from OriHoch/dylanjw-feature/get_homepage_snippet
Dylanjw feature/get homepage snippet
- Loading branch information
Showing
9 changed files
with
183 additions
and
136 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
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
3 changes: 1 addition & 2 deletions
3
ckan/ckanext-odata_org_il/ckanext/odata_org_il/templates/home/snippets/stats.html
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 |
---|---|---|
@@ -1,19 +1,19 @@ | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
name: ckan-create-db | ||
spec: | ||
template: | ||
metadata: | ||
name: ckan-create-db | ||
spec: | ||
containers: | ||
- name: ckan-create-db | ||
image: postgres:9.6.3-alpine | ||
env: | ||
- {name: PGPASSWORD, valueFrom: {secretKeyRef: {name: "env-vars", key: "POSTGRES_PASSWORD"}}} | ||
command: ["su-exec", "postgres", "bash", "-c", "psql -h db -U postgres -c 'CREATE DATABASE ckan;'"] | ||
resources: | ||
requests: | ||
cpu: 1m | ||
restartPolicy: Never | ||
#apiVersion: batch/v1 | ||
#kind: Job | ||
#metadata: | ||
# name: ckan-create-db | ||
#spec: | ||
# template: | ||
# metadata: | ||
# name: ckan-create-db | ||
# spec: | ||
# containers: | ||
# - name: ckan-create-db | ||
# image: postgres:9.6.3-alpine | ||
# env: | ||
# - {name: PGPASSWORD, valueFrom: {secretKeyRef: {name: "env-vars", key: "POSTGRES_PASSWORD"}}} | ||
# command: ["su-exec", "postgres", "bash", "-c", "psql -h db -U postgres -c 'CREATE DATABASE ckan;'"] | ||
# resources: | ||
# requests: | ||
# cpu: 1m | ||
# restartPolicy: Never |
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 |
---|---|---|
@@ -1,25 +1,25 @@ | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
name: ckan-initialize-db | ||
spec: | ||
template: | ||
metadata: | ||
name: ckan-initialize-db | ||
spec: | ||
containers: | ||
- name: ckan-initialize-db | ||
image: orihoch/data4dappl-ckan | ||
args: ["db", "init", "-c", "/etc/ckan/default/development.ini"] | ||
resources: | ||
requests: | ||
cpu: 1m | ||
volumeMounts: | ||
- name: etc-ckan-default | ||
mountPath: /etc/ckan/default | ||
readOnly: true | ||
volumes: | ||
- name: etc-ckan-default | ||
secret: | ||
secretName: etc-ckan-default | ||
restartPolicy: Never | ||
#apiVersion: batch/v1 | ||
#kind: Job | ||
#metadata: | ||
# name: ckan-initialize-db | ||
#spec: | ||
# template: | ||
# metadata: | ||
# name: ckan-initialize-db | ||
# spec: | ||
# containers: | ||
# - name: ckan-initialize-db | ||
# image: orihoch/data4dappl-ckan | ||
# args: ["db", "init", "-c", "/etc/ckan/default/development.ini"] | ||
# resources: | ||
# requests: | ||
# cpu: 1m | ||
# volumeMounts: | ||
# - name: etc-ckan-default | ||
# mountPath: /etc/ckan/default | ||
# readOnly: true | ||
# volumes: | ||
# - name: etc-ckan-default | ||
# secret: | ||
# secretName: etc-ckan-default | ||
# restartPolicy: Never |
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 |
---|---|---|
@@ -1,43 +1,43 @@ | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
name: ckan-restore-data | ||
spec: | ||
template: | ||
metadata: | ||
name: ckan-restore-data | ||
spec: | ||
nodeSelector: | ||
# loads data dump from hostPath | ||
# TODO: change to use network shared filesystem | ||
kubernetes.io/hostname: gke-data4dappl-default-pool-29af7936-z7tf | ||
containers: | ||
- name: ckan-restore-data | ||
# this image was updated with psql which is needed to restore db | ||
image: gcr.io/hasadna-odata/data4dappl-ckan:34085ec7df43172d33c7fb53858374af76886be1 | ||
command: | ||
- "bash" | ||
- "-c" | ||
- > | ||
tar -xzvf /var/ckan-dump/data.tar.gz -C /var/lib/ckan | ||
resources: | ||
requests: | ||
cpu: 5m | ||
volumeMounts: | ||
- name: etc-ckan-default | ||
mountPath: /etc/ckan/default | ||
readOnly: true | ||
- name: ckan-dump | ||
mountPath: /var/ckan-dump | ||
- name: ckan-data | ||
mountPath: /var/lib/ckan | ||
volumes: | ||
- name: etc-ckan-default | ||
secret: | ||
secretName: etc-ckan-default | ||
- name: ckan-dump | ||
hostPath: {path: /var/ckan-dump} | ||
- name: ckan-data | ||
persistentVolumeClaim: | ||
claimName: ckan-data | ||
restartPolicy: Never | ||
#apiVersion: batch/v1 | ||
#kind: Job | ||
#metadata: | ||
# name: ckan-restore-data | ||
#spec: | ||
# template: | ||
# metadata: | ||
# name: ckan-restore-data | ||
# spec: | ||
# nodeSelector: | ||
# # loads data dump from hostPath | ||
# # TODO: change to use network shared filesystem | ||
# kubernetes.io/hostname: gke-data4dappl-default-pool-29af7936-z7tf | ||
# containers: | ||
# - name: ckan-restore-data | ||
# # this image was updated with psql which is needed to restore db | ||
# image: gcr.io/hasadna-odata/data4dappl-ckan:34085ec7df43172d33c7fb53858374af76886be1 | ||
# command: | ||
# - "bash" | ||
# - "-c" | ||
# - > | ||
# tar -xzvf /var/ckan-dump/data.tar.gz -C /var/lib/ckan | ||
# resources: | ||
# requests: | ||
# cpu: 5m | ||
# volumeMounts: | ||
# - name: etc-ckan-default | ||
# mountPath: /etc/ckan/default | ||
# readOnly: true | ||
# - name: ckan-dump | ||
# mountPath: /var/ckan-dump | ||
# - name: ckan-data | ||
# mountPath: /var/lib/ckan | ||
# volumes: | ||
# - name: etc-ckan-default | ||
# secret: | ||
# secretName: etc-ckan-default | ||
# - name: ckan-dump | ||
# hostPath: {path: /var/ckan-dump} | ||
# - name: ckan-data | ||
# persistentVolumeClaim: | ||
# claimName: ckan-data | ||
# restartPolicy: Never |
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 |
---|---|---|
@@ -1,40 +1,40 @@ | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
name: ckan-restore-db | ||
spec: | ||
template: | ||
metadata: | ||
name: ckan-restore-db | ||
spec: | ||
nodeSelector: | ||
# loads data dump from hostPath | ||
# TODO: change to use network shared filesystem | ||
kubernetes.io/hostname: gke-data4dappl-default-pool-29af7936-z7tf | ||
containers: | ||
- name: ckan-restore-db | ||
# this image was updated with psql which is needed to restore db | ||
image: gcr.io/hasadna-odata/data4dappl-ckan:34085ec7df43172d33c7fb53858374af76886be1 | ||
command: | ||
- "bash" | ||
- "-c" | ||
- > | ||
gunzip -c /var/ckan-dump/db.gz > /db && | ||
../../bin/paster --plugin=ckan db clean -c /etc/ckan/default/development.ini && | ||
../../bin/paster --plugin=ckan db load /db -c /etc/ckan/default/development.ini | ||
resources: | ||
requests: | ||
cpu: 5m | ||
volumeMounts: | ||
- name: etc-ckan-default | ||
mountPath: /etc/ckan/default | ||
readOnly: true | ||
- name: ckan-dump | ||
mountPath: /var/ckan-dump | ||
volumes: | ||
- name: etc-ckan-default | ||
secret: | ||
secretName: etc-ckan-default | ||
- name: ckan-dump | ||
hostPath: {path: /var/ckan-dump} | ||
restartPolicy: Never | ||
#apiVersion: batch/v1 | ||
#kind: Job | ||
#metadata: | ||
# name: ckan-restore-db | ||
#spec: | ||
# template: | ||
# metadata: | ||
# name: ckan-restore-db | ||
# spec: | ||
# nodeSelector: | ||
# # loads data dump from hostPath | ||
# # TODO: change to use network shared filesystem | ||
# kubernetes.io/hostname: gke-data4dappl-default-pool-29af7936-z7tf | ||
# containers: | ||
# - name: ckan-restore-db | ||
# # this image was updated with psql which is needed to restore db | ||
# image: gcr.io/hasadna-odata/data4dappl-ckan:34085ec7df43172d33c7fb53858374af76886be1 | ||
# command: | ||
# - "bash" | ||
# - "-c" | ||
# - > | ||
# gunzip -c /var/ckan-dump/db.gz > /db && | ||
# ../../bin/paster --plugin=ckan db clean -c /etc/ckan/default/development.ini && | ||
# ../../bin/paster --plugin=ckan db load /db -c /etc/ckan/default/development.ini | ||
# resources: | ||
# requests: | ||
# cpu: 5m | ||
# volumeMounts: | ||
# - name: etc-ckan-default | ||
# mountPath: /etc/ckan/default | ||
# readOnly: true | ||
# - name: ckan-dump | ||
# mountPath: /var/ckan-dump | ||
# volumes: | ||
# - name: etc-ckan-default | ||
# secret: | ||
# secretName: etc-ckan-default | ||
# - name: ckan-dump | ||
# hostPath: {path: /var/ckan-dump} | ||
# restartPolicy: Never |