From 8ba4f8773cf4783893ede265cbbc097031cf7277 Mon Sep 17 00:00:00 2001 From: Jeff Croyle Date: Tue, 12 Nov 2024 10:07:14 -0500 Subject: [PATCH] try some setup code instead --- .github/workflows/ci.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cf62aed..38b4e40 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,7 +22,6 @@ jobs: POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres POSTGRES_HOST_AUTH_METHOD: trust - entrypoint: ["postgres", "-c", "shared_buffers=64MB", "-c", "work_mem=4MB"] options: >- --health-cmd="pg_isready -U postgres" --health-interval=10s @@ -36,7 +35,6 @@ jobs: image: mysql:5.6 env: MYSQL_ALLOW_EMPTY_PASSWORD: "yes" - entrypoint: ["mysqld", "--innodb-buffer-pool-size=64M"] options: >- --health-cmd="mysqladmin ping --silent" --health-interval=10s @@ -71,6 +69,18 @@ jobs: gem update --system '3.3.22' gem install bundler -v '2.5.18' + - name: Set up PostgreSQL + run: | + docker exec ${{ job.services.postgres.id }} bash -c "psql -U postgres -c 'ALTER SYSTEM SET shared_buffers TO '64MB';'" + docker exec ${{ job.services.postgres.id }} bash -c "psql -U postgres -c 'ALTER SYSTEM SET work_mem TO '4MB';'" + docker restart ${{ job.services.postgres.id }} + + - name: Set up MySQL + run: | + docker exec ${{ job.services.mysql.id }} bash -c "echo '[mysqld]' > /etc/mysql/conf.d/custom.cnf" + docker exec ${{ job.services.mysql.id }} bash -c "echo 'innodb_buffer_pool_size=64M' >> /etc/mysql/conf.d/custom.cnf" + docker restart ${{ job.services.mysql.id }} + - name: Wait for Database Services run: | sudo apt-get update