You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure, I've only recently started with bazel.
Description
I am trying to run a script prior to executing the nodejs binary, in order to initialise some system dependencies that I installed on a custom base image.
However, nodejs_image seems to use CMD for args, and ENTRYPOINT for the nodejs binary.
Also when I provide it with an alternative entrypoint or a launcher, the resulting docker image ignores both, and the ENTRYPOINT remains stuck at: "/app/path/to/myapp"
The net result of this is that I can't configure 'launcher scripts' and use nodejs_image at the same time.
This issue has been automatically marked as stale because it has not had any activity for 180 days. It will be closed if no further activity occurs in 30 days.
Collaborators can add an assignee to keep this open indefinitely. Thanks for your contributions to rules_docker!
🐞 bug report
Affected Rule
The problem is with
nodejs_image
.Is this a regression?
I'm not sure, I've only recently started with bazel.
Description
I am trying to run a script prior to executing the nodejs binary, in order to initialise some system dependencies that I installed on a custom base image.
The 'dockerfile' way to do this is to use an ENTRYPOINT script described here:
https://stackoverflow.com/questions/41512237/how-to-execute-a-shell-command-before-the-entrypoint-via-the-dockerfile
...and then call node with CMD
However,
nodejs_image
seems to use CMD forargs
, and ENTRYPOINT for thenodejs
binary.Also when I provide it with an alternative
entrypoint
or alauncher
, the resulting docker image ignores both, and the ENTRYPOINT remains stuck at:"/app/path/to/myapp"
The net result of this is that I can't configure 'launcher scripts' and use
nodejs_image
at the same time.🔬 Minimal Reproduction
Clone:
https://github.com/cleric-sh/cleric-bazel
Run:
Then:
Not that the launcher defined in
images/chrome/BUILD
:34
is left out.🌍 Your Environment
Operating System:
Output of
bazel version
:Rules_docker version:
Anything else relevant?
The text was updated successfully, but these errors were encountered: