-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding downstream official Red Hat container images for components
- Loading branch information
1 parent
d5a8ac3
commit 42a4c17
Showing
20 changed files
with
244 additions
and
122 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
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/sh | ||
|
||
echo "attempting to create pg_trgm extension" | ||
psql -d $POSTGRESQL_DATABASE -h $POSTGRESQL_DATABASE -U postgres -c 'CREATE EXTENSION pg_trgm;' || true | ||
echo "succesfully created pg_trgm extension" | ||
break |
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,35 @@ | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
name: quay-postgres-init | ||
spec: | ||
template: | ||
metadata: | ||
name: quay-postgres-init | ||
spec: | ||
restartPolicy: Never | ||
securityContext: | ||
fsGroup: 0 | ||
volumes: | ||
- name: postgres-bootstrap | ||
secret: | ||
secretName: postgres-bootstrap | ||
defaultMode: 0777 | ||
items: | ||
- key: create-extensions.sh | ||
path: create-extensions.sh | ||
- key: restore.sh | ||
path: restore.sh | ||
containers: | ||
- name: quay-postgres-init | ||
image: centos/postgresql-10-centos7 | ||
command: | ||
- /opt/app-root/src/docker-entrypoint-initdb.d/create-extensions.sh | ||
env: | ||
- name: POSTGRESQL_DATABASE | ||
value: $(POSTGRES_DEPLOYMENT_NAME) | ||
- name: PGPASSWORD | ||
value: postgres | ||
volumeMounts: | ||
- name: postgres-bootstrap | ||
mountPath: /opt/app-root/src/docker-entrypoint-initdb.d |
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.