update "deploy to hippo" documentation#560
Conversation
| ``` | ||
| # this command opens up the nomad dashboard in your browser | ||
| $ nomad ui | ||
| $ curl http://spin-deploy.spin-hello-world.hippo.local.fermyon.link/hello |
There was a problem hiding this comment.
Note that this URL is currently incorrect. At the moment Spin creates a channel called spin-hello-world resulting in the domain http://spin-hello-world.spin-hello-world.hippo.local.fermyon.link/hello
IIRC there is work in-development to change this, so this should be changed to reflect the new URL once complete.
cc @michelleN
There was a problem hiding this comment.
Good catch. I believe this is because nomad-local-demo uses local.fermyon.link as the platform domain instead of hippo.local.fermyon.link. nomad-aws-demo uses hippo.ip_address.sslip.io as the platform domain.
Both work because both use wildcard A records to point to Traefik. I would prefer to use the http://myapp.hippo.domain convention to signify to the user that "this app is running on Hippo".
We have two options:
- update nomad-local-demo to match nomad-aws-demo (no changes to this doc required)
- update nomad-aws-demo to match nomad-local-demo (changes to this doc required)
Let's chat about this offline
cc @adamreese
There was a problem hiding this comment.
Ah, thanks for comparing scenarios. Indeed, we should decide on a consistent approach. 👍
There was a problem hiding this comment.
the channel name has been updated to be spin-deploy!
| In the future, spin deploy will give the user a domain to hit for the running app. In the meantime, find the IP address and port for the running app int he Nomad dashboard. | ||
|
|
||
| Check the Nomad UI for the running job. | ||
| In the future, `spin deploy` will give the user a domain to hit for the running |
There was a problem hiding this comment.
quick thought: how far away are we from implementing this? Will it be in Spin 0.3? @michelleN
Based on feedback/testing with recent changes to nomad-local-demo, spin, and hippo. Signed-off-by: Matthew Fisher <matt.fisher@fermyon.com>
3f411ba to
60907c4
Compare
| ``` | ||
| # this command opens up the nomad dashboard in your browser | ||
| $ nomad ui | ||
| $ curl http://spin-deploy.spin-hello-world.hippo.local.fermyon.link/hello |
|
I'll test these instructions shortly.
Edit: nevermind -- we decided to use a different approach for fermyon/nomad-local-demo#13, so no doc changes needed. |
|
I'm following the instructions from bacongobbler:update=deploy-docs from the beginning, and getting this when creating the user: And indeed, when I try to log in to http://localhost:5309/, I get a 400 error (should probably be a 401?), so apparently the user wasn't created. Any tips on debugging this? The |
|
Regarding my last comment: I just now noticed the new hippo-cli release. Will retry with that. Sorry for the noise! |
|
Same issue with Hippo v0.13.0: |
|
update: after a 🍐 session with @dicej, it turned out to be some stale services that were not cleaned up from previous invocations of nomad-local-demo's |
|
Okay, after resolving the rogue |
|
|
||
| Start Nomad, Consul, and Traefik using the `run_servers.sh` script from the [nomad-local-demo repo](https://github.com/fermyon/nomad-local-demo). | ||
| Start Nomad, Consul, and Traefik using the `run_servers.sh` script from the | ||
| [nomad-local-demo repo](https://github.com/fermyon/nomad-local-demo). |
There was a problem hiding this comment.
This can now change to point to fermyon/installer... Not sure if we want to link specifically to https://github.com/fermyon/installer/tree/main/local
| [nomad-local-demo repo](https://github.com/fermyon/nomad-local-demo). | |
| [fermyon/installer repo](https://github.com/fermyon/installer). |
|
|
||
| Check that the Hippo platform is running by making sure you see the hippo dashboard in the browser at https://localhost:5309. | ||
| Check that the Hippo platform is running by making sure you see the hippo | ||
| dashboard in the browser at <http://hippo.local.fermyon.link> |
There was a problem hiding this comment.
Did the domain change recently?
There was a problem hiding this comment.
nvm I just tested the latest local demo script and realized this is current! please disregard
| In the future, spin deploy will give the user a domain to hit for the running app. In the meantime, find the IP address and port for the running app int he Nomad dashboard. | ||
|
|
||
| Check the Nomad UI for the running job. | ||
| In the future, `spin deploy` will give the user a domain to hit for the running |
Signed-off-by: Matthew Fisher <matt.fisher@fermyon.com>
|
Updated as per feedback. The document now points to https://fermyon.dev. All links currently do not work; please use https://canary.fermyon.dev for now. |
|
Thanks, @bacongobbler! Thanks! |
vdice
left a comment
There was a problem hiding this comment.
Besides #560 (comment) as a follow-up, I think the only remaining change needed in this PR is updating this line: https://github.com/fermyon/spin/blob/main/docs/templates/content_sidebar.hbs#L37
Signed-off-by: Matthew Fisher <matt.fisher@fermyon.com>
|
done |

Based on feedback/testing with recent changes to nomad-local-demo, spin,
and hippo.
Couple of notes on the changes:
-kflag because everything is over HTTPnomad dashboardlookup isn't necessary - the domain will behttp://<channel_name>.<app_name>.hippo.local.fermyon.link/hello, which is routable via Traefik (see http://localhost:8081 for more details)Signed-off-by: Matthew Fisher matt.fisher@fermyon.com