Using redis with gitlab CI
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
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
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
Notifications
You’re not receiving notifications from this thread.