Replies: 1 comment 1 reply
-
And that's pretty easy to maintain in CI/CD. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Node.js is not always available on systems, but sometimes Docker is installed instead.
Therefore, it is possible to use
zx
from a Docker container (if one is provided).It's not difficult. I've tested it. Here is the recipe.
Dockerfile:
Build the image with:
docker build --tag zx .
Run any script in the local folder (e.g., using the Fish shell):
Or add this command as shell alias:
alias zx='docker run --interactive --tty --rm --user (id -u "$USER"):(id -g "$USER") --volume "$PWD":/tmp --workdir /tmp --network=host zx'
now it's possible to run zx with a simple command:
I'm ready to publish such a Docker image, but seems to me it would be more appropriate if you provided and supported it.
Beta Was this translation helpful? Give feedback.
All reactions