Skip to content

Conversation

@darora
Copy link
Contributor

@darora darora commented Nov 17, 2021

Builds ARM Postgres AMIs from Github Actions.


- name: Build AMI
run: |
packer build -timestamp-ui -color=false -on-error=abort -var "ansible_arguments=--tags,update-only,--tags,install-pgbouncer,--tags,install-supabase-internal" -var-file common.vars.json -var-file development-arm.vars.json amazon.json
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@dragarcia do you wanna take this PR over and flesh out what this needs to be?

@darora
Copy link
Contributor Author

darora commented Nov 18, 2021

fails on walg build now

@dragarcia
Copy link
Contributor

Suggested changes via this PR. We can build an internal image from scratch with just one set of ansible_arguments. Will just be dependent on this PR coming in first.

fails on walg build now

Resolved by the same PR above

@darora darora changed the base branch from develop to feature/14.0.0 November 22, 2021 06:25
@darora darora marked this pull request as ready for review November 22, 2021 06:26
@darora darora force-pushed the da/ci branch 2 times, most recently from d8b88c7 to c475f1e Compare November 22, 2021 06:28
@dragarcia dragarcia merged commit ceae008 into feature/14.0.0 Nov 22, 2021
@dragarcia dragarcia deleted the da/ci branch November 22, 2021 15:14
dragarcia added a commit that referenced this pull request Dec 2, 2021
* chore: bump postgres and pgbouncer
- #67 #68

* chore: #65 sha-scram-256 encryption

* chore: Bump to Postgres 14.0

* chore: bump up existing extensions

* Use PG 14 version of postgresql.conf

* move up running of SQL files
- to a part where the DB is still up and running

* new extensions:
- rum
- pg_hashids

* Cleanup build dependencies immediately after installation

* Remove hardcoded values for Postgres major

* Update variables

* Update wal-g installation process

* add build dependencies for supautils

* changes to pgbouncer config
- use scram-sha-256 encryption
- list out additional build dependencies
- assign postgres as stats user

* Revert "Cleanup build dependencies immediately after installation"

This reverts commit 25c93de.

* Minimise packages cleaned up
- some extensions were dependent to them

* link pg binaries only at the end

* remove postgres as pgbouncer stats_users

* bump to Postgres 14.1

* rename filename for pgsodium

* update regex for session_preload_libraries

* Update README

* update download URLs for postgrest

* Bump versions

* feat: build AMIs using Github Actions (#101)

* feat: build AMIs using Github Actions

* eliminate two-step build

Co-authored-by: dragarcia <angelico.delosreyes@gmail.com>

* Transfer ownership of pgbouncer process to pgbouncer user

* increased timeout for get_url

* further hardening of pgbouncer
- no access to public schema
- cannot connect to port 5432 by pgbouncer user other than localhost

* bump common.vars.json

* Enhancements to docker images (#108)

* GA for dockerhub

* Shift removal of unused packages at the bottom
- For some reason, this disrupts the ansible process
- Err: the connection plugin 'local' was not found

* No longer use init.sh for docker

* Use Dockerfile when building docker images

* cleanup /tmp via the Dockerfile

* more changes to docker build
- move more cleanup to the Dockerfile
- run everything under one command in the Dockerfile

* Commenting these out for now
- Need to configure runners first
- Will uncomment in another PR once done

* ignore caretion of symbolic link for plv8 in docker arm build

* Temporarily remove CI files for Dockerhub

Co-authored-by: Div Arora <darora@users.noreply.github.com>
hf pushed a commit that referenced this pull request Jan 23, 2023
* chore: bump postgres and pgbouncer
- #67 #68

* chore: #65 sha-scram-256 encryption

* chore: Bump to Postgres 14.0

* chore: bump up existing extensions

* Use PG 14 version of postgresql.conf

* move up running of SQL files
- to a part where the DB is still up and running

* new extensions:
- rum
- pg_hashids

* Cleanup build dependencies immediately after installation

* Remove hardcoded values for Postgres major

* Update variables

* Update wal-g installation process

* add build dependencies for supautils

* changes to pgbouncer config
- use scram-sha-256 encryption
- list out additional build dependencies
- assign postgres as stats user

* Revert "Cleanup build dependencies immediately after installation"

This reverts commit 25c93de.

* Minimise packages cleaned up
- some extensions were dependent to them

* link pg binaries only at the end

* remove postgres as pgbouncer stats_users

* bump to Postgres 14.1

* rename filename for pgsodium

* update regex for session_preload_libraries

* Update README

* update download URLs for postgrest

* Bump versions

* feat: build AMIs using Github Actions (#101)

* feat: build AMIs using Github Actions

* eliminate two-step build

Co-authored-by: dragarcia <angelico.delosreyes@gmail.com>

* Transfer ownership of pgbouncer process to pgbouncer user

* increased timeout for get_url

* further hardening of pgbouncer
- no access to public schema
- cannot connect to port 5432 by pgbouncer user other than localhost

* bump common.vars.json

* Enhancements to docker images (#108)

* GA for dockerhub

* Shift removal of unused packages at the bottom
- For some reason, this disrupts the ansible process
- Err: the connection plugin 'local' was not found

* No longer use init.sh for docker

* Use Dockerfile when building docker images

* cleanup /tmp via the Dockerfile

* more changes to docker build
- move more cleanup to the Dockerfile
- run everything under one command in the Dockerfile

* Commenting these out for now
- Need to configure runners first
- Will uncomment in another PR once done

* ignore caretion of symbolic link for plv8 in docker arm build

* Temporarily remove CI files for Dockerhub

Co-authored-by: Div Arora <darora@users.noreply.github.com>
damonrand pushed a commit to cepro/postgres that referenced this pull request Jun 15, 2025
* chore: bump postgres and pgbouncer
- supabase#67 supabase#68

* chore: supabase#65 sha-scram-256 encryption

* chore: Bump to Postgres 14.0

* chore: bump up existing extensions

* Use PG 14 version of postgresql.conf

* move up running of SQL files
- to a part where the DB is still up and running

* new extensions:
- rum
- pg_hashids

* Cleanup build dependencies immediately after installation

* Remove hardcoded values for Postgres major

* Update variables

* Update wal-g installation process

* add build dependencies for supautils

* changes to pgbouncer config
- use scram-sha-256 encryption
- list out additional build dependencies
- assign postgres as stats user

* Revert "Cleanup build dependencies immediately after installation"

This reverts commit 25c93de.

* Minimise packages cleaned up
- some extensions were dependent to them

* link pg binaries only at the end

* remove postgres as pgbouncer stats_users

* bump to Postgres 14.1

* rename filename for pgsodium

* update regex for session_preload_libraries

* Update README

* update download URLs for postgrest

* Bump versions

* feat: build AMIs using Github Actions (supabase#101)

* feat: build AMIs using Github Actions

* eliminate two-step build

Co-authored-by: dragarcia <angelico.delosreyes@gmail.com>

* Transfer ownership of pgbouncer process to pgbouncer user

* increased timeout for get_url

* further hardening of pgbouncer
- no access to public schema
- cannot connect to port 5432 by pgbouncer user other than localhost

* bump common.vars.json

* Enhancements to docker images (supabase#108)

* GA for dockerhub

* Shift removal of unused packages at the bottom
- For some reason, this disrupts the ansible process
- Err: the connection plugin 'local' was not found

* No longer use init.sh for docker

* Use Dockerfile when building docker images

* cleanup /tmp via the Dockerfile

* more changes to docker build
- move more cleanup to the Dockerfile
- run everything under one command in the Dockerfile

* Commenting these out for now
- Need to configure runners first
- Will uncomment in another PR once done

* ignore caretion of symbolic link for plv8 in docker arm build

* Temporarily remove CI files for Dockerhub

Co-authored-by: Div Arora <darora@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants