Skip to content
24 changes: 24 additions & 0 deletions ansible/tasks/postgres-extensions/19-pg_graphql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# pg_graphql
- name: pg_graphql - download libgraphqlparser
git:
repo: https://github.com/graphql/libgraphqlparser.git
dest: /tmp/libgraphqlparser
version: master
become: yes
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@olirice do you have a recommendation/ preferred way to install libgraphqlparser? Their repository hasn't had any new releases since 2017 so the above is just building off from the master branch.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

preferred way to install libgraphqlparser

I've been pinning it to the last realease 0.7.0. Heres the install line in the dockerfile used for the quickstart
https://github.com/supabase/pg_graphql/blob/75565af8ef81f0d4e1cf281356d7270c2c6d5a1d/dockerfiles/db/Dockerfile#L13

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

got it 👍


- name: pg_graphql - build libgraphqlparser
make:
chdir: /tmp/libgraphqlparser
become: yes

- name: pg_graphql - download latest release
git:
repo: https://github.com/supabase/pg_graphql.git
dest: /tmp/pg_graphql
version: "{{ pg_graphql_release }}"
become: yes

- name: pg_graphql - build
make:
chdir: /tmp/pg_graphql
become: yes
2 changes: 2 additions & 0 deletions ansible/vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,5 +94,7 @@ libsodium_release_checksum: sha1:795b73e3f92a362fabee238a71735579bf46bb97
pgsodium_release: "2.0.1"
pgsodium_release_checksum: sha1:b6ef733c9bbae590c1eee676fd0a97fd129893e0

pg_graphql_release: "v0.1.0-beta.1"

osquery_deb: 'https://pkg.osquery.io/deb/osquery_5.1.0-1.linux_arm64.deb'
osquery_deb_checksum: sha1:6b6fa49edcfad5d77aa1e59c75b8708de2f634ac