We've moved discussions to Discord

Using redis with gitlab CI

Chris Thorne
Hi,

Not sure if Ive done the right thing, but this might help others?

My jumpstart is basically unmodified, but I turned on sidkiq and redis in the configuration admin.

I then found that the gitlab-ci broke. I added the lines below to .gitlab-ci.yml that are about redis, and now the ci is passing (yay!).

Did I do it right Chris Oliver  (im a bit of a rails newbie)? If so, it might be good to fix this in jumpstart or add to the docs around config?

Hope this helps

Chris

services:
  - postgres
  - redis:latest

variables:
  RAILS_ENV: test
  POSTGRES_DB: jumpstart_test
  POSTGRES_USER: postgres
  POSTGRES_PASSWORD: "password"
  DATABASE_URL: "postgresql://postgres:password@postgres:5432/jumpstart_test"
  REDIS_HOST: redis
  REDIS_URL: redis://redis:6379
Chris Oliver
Chris Thorne Yep! And actually we probably should have that in there by default. 👍

I think you can remove the REDIS_HOST since it's part of the REDIS_URL btw.
Chris Thorne
thanks
C
Donn Felker
Thanks for posting this  Chris Thorne  
Notifications
You’re not receiving notifications from this thread.