Dominick Olivito03/03/2022, 3:54 PM
it looks like it's finding and parsing the
/home/flex/.local/bin/prefect: line 3: import: command not found /home/flex/.local/bin/prefect: line 4: import: command not found /home/flex/.local/bin/prefect: line 5: from: command not found /home/flex/.local/bin/prefect: prefect: line 7: syntax error near unexpected token `(' /home/flex/.local/bin/prefect: prefect: line 7: ` sys.argv = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv)'
executable file but not running it with
. when I run a local container using the image, i'm able to successfully call the command
and run a flow.
is in the path of active user (
). i'm also able to run basic flows successfully on GKE using prefect's base image, so the issue is specific to our custom image. do you have any suggestions on what we can check in our custom image?
Kevin Kho03/03/2022, 4:04 PM
Dominick Olivito03/03/2022, 4:08 PM
Anna Geller03/03/2022, 4:14 PM
Dominick Olivito03/04/2022, 5:24 PM
on our image. we finally got our custom image to work with Prefect on Kubernetes by using the same entrypoint.sh script and config as in the official Prefect image:
COPY entrypoint.sh /usr/local/bin/entrypoint.sh # script will be run as a non-root user RUN chmod 555 /usr/local/bin/entrypoint.sh ENTRYPOINT ["tini", "-g", "--", "entrypoint.sh"]
Kevin Kho03/04/2022, 6:06 PM