canonical / rockcraft

Tool to create OCI Images using the language from Snapcraft and Charmcraft.
GNU General Public License v3.0
32 stars 40 forks source link

Tutorial "Bundle a Node.js app within a rock" does not work #626

Closed hd9 closed 1 month ago

hd9 commented 2 months ago

Bug Description

In the tutorial Bundle a Node.js app within a rock, just after the docker run command, one is instructed to navigate to http://localhost:8000. You should see a blank page with a “Hello World from inside the rock!”.

However, if you're following the tutorial as instructed from a Multipass VM, this fails as the app is only accessible from inside the Multipass VM, not from the host itself.

To Reproduce

  1. Run the tutorial inside a Multipass host as instructed by the article
  2. Try to open your web browser and navigate to http://localhost:8000

Error:

This site can’t be reached
localhost refused to connect.

The documentation should either instruct to expose the service on the Multipass host or recommend to open another shell into the Multipass VM and curl http://localhost:8000

Environment

See Bundle a Node.js app within a rock

rockcraft.yaml

Available in the link above

Relevant log output

Available in the link above
syncronize-issues-to-jira[bot] commented 1 month ago

Thank you for reporting us your feedback!

The internal ticket has been created: https://warthogs.atlassian.net/browse/CRAFT-3113.

This message was autogenerated