I’m trying to install postgres as a -run: step in circle 2.0. I know that the best solution here would be to build our own docker image, but right now we are using a stock node image so that feels like a lot of infrastructure to spin up for a single dependency, right now.
I have a config.yaml that looks like this:
- run: sudo apt-get update && sudo apt-get install -y postgresql postgresql-contrib - run: npm run init-test-db
init-test-db is a script that as part of it’s set up runs
command -v psql and that is failing. If I SSH into the machine and run that command directly, it succeeds. Why is the install not being seen by the next line in the run command? What am I not understanding? For now, I’m going to combine the two commands, but I’d like to know why this isn’t working as is.