I have the following CircleCI config (this is trimmed, I don't include the config after the failing line):
version: 2
jobs:
build:
working_directory: ~/mycompany/mycompany_app
docker:
- image: ubuntu:18.04
steps:
- run:
name: Update yum cache
command: apt-get update
- run:
name: Install base packages
command: apt-get install -y sudo git wget tzdata postgresql postgresql-contrib build-essential python2.7 make gcc redis-server
- run:
name: Start Redis
command: sudo service redis-server start
- run: redis-cli ping
The last command, redis-cli ping
gives me the error Could not connect to Redis at 127.0.0.1:6379: Connection refused
The best thread I've been able to find on this issue is https://github.com/Microsoft/WSL/issues/365 though that doesn't help since I'm doing the manual start as they suggest. There's also some stuff in this SO answer that's related, but I don't think not using upstart
is my problem.
How can I get the server started so that it will answer to the ping?