Viv Ian
04/17/2020, 12:17 AMprefecthq/prefect:latest
as the base image, but encountered pyscopg2 installation issues, so I decided to just pip install prefect within the image. The example below is super basic (just want to be able to run a prefect
command). However, when I run the image, I get the following error: /bin/sh: 1: prefect: not found
I’ve also attempted the following variations in place of the CMD prefect version
command:
• RUN ["/bin/bash", "-c", "prefect version"]
• CMD ["prefect", "version"]
Any ideas? 😄Chris White
psycopg2
error you ran into? We use our base images all over the place so I’d be surprised if there was something corrupt in them, but if so we’d want to know ASAPChris White
0.10.2
Chris White
Viv Ian
04/17/2020, 5:19 AMpsycopg2
error is raised when attempting to pip install the django-heroku
package within requirements.txt
. The error is below:Chris White
psycopg2-binary
instead of psycopg2
, otherwise you’ll need to install pg_config
into this imageViv Ian
04/17/2020, 4:07 PMChris White
Viv Ian
04/17/2020, 4:25 PMRUN apt-get update && apt-get install -y postgresql libpq-dev postgresql-client postgresql-client-common
Chris White
Chris White
Marvin
04/17/2020, 4:27 PM