Skip to content

Zenith: How to use shell command with entrypoint? #6436

Answered by helderco
skycaptain asked this question in Q&A
Discussion options

You must be logged in to vote

There's an issue in shell with reporting errors. So a failed execution of the entrypoint just exits without a proper non-zero return code and error message. In your case, you can debug manually with --entrypoint, which forces the command to use:

dagger shell debug --entrypoint=bash
root@urjt6mj2624m0:/# /usr/bin/local/entrypoint.sh /bin/bash
/usr/bin/local/entrypoint.sh: line 2: !#/bin/sh: No such file or directory
root@urjt6mj2624m0:/# which sh
/usr/bin/sh

This explains why you're not able to enter shell, but you don't actually need to source the venv like that. For the virtual env, the only thing that you need is PATH=/venv/bin:$PATH. You can also set VIRTUAL_ENV=/venv since some tool…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@helderco
Comment options

@skycaptain
Comment options

Answer selected by skycaptain
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants