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
This solution works well when you don't want to modify or add argument. However, if you want to add a flag or run a project from a remote repository, the following command doesn't work:
The CMD directive gets fully override and it fails because "https://github.com/vmware-labs/wasm-workers-server.git" is not a valid binary. You need to refer to the wws binary directly, which it's not in the PATH making difficult to add / remove parameters.
The container always run the wws CLI. For that, we can use the ENTRYPOINT directive which fits perfectly for this use case.
Keep the CMD directive, but only for the default arguments (/app and --host 0.0.0.0). You can override the default values by adding arguments as showed in the previous example. There is a great example in the Docker documentation.
For convenience, the wws should be present in the PATH in case you need to update the default entrypoint. Pointing it to the binary location (/wws) is not trivial.
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
The
wws
container runs thewws
CLI with a set of default flags. To configure this behavior, the container uses the CMD directive:wasm-workers-server/image/Prebuilt.dockerfile
Line 20 in 93e1165
This solution works well when you don't want to modify or add argument. However, if you want to add a flag or run a project from a remote repository, the following command doesn't work:
The CMD directive gets fully override and it fails because "https://github.com/vmware-labs/wasm-workers-server.git" is not a valid binary. You need to refer to the
wws
binary directly, which it's not in thePATH
making difficult to add / remove parameters.The following code works, but it's not trivial:
Describe the solution you'd like
I want the container to run "like a binary". The following command should work out of the box:
These are the requirements:
wws
CLI. For that, we can use the ENTRYPOINT directive which fits perfectly for this use case.CMD
directive, but only for the default arguments (/app
and--host 0.0.0.0
). You can override the default values by adding arguments as showed in the previous example. There is a great example in the Docker documentation.For convenience, the
wws
should be present in thePATH
in case you need to update the default entrypoint. Pointing it to the binary location (/wws
) is not trivial.Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: