Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nomad: "Nomad UI is not available in this binary." #64410

Closed
ivan opened this issue Jul 7, 2019 · 4 comments
Closed

nomad: "Nomad UI is not available in this binary." #64410

ivan opened this issue Jul 7, 2019 · 4 comments

Comments

@ivan
Copy link
Member

ivan commented Jul 7, 2019

Issue description

nomad appears to be built without the UI.

Steps to reproduce

On nixpkgs master:

nomad agent -dev
nomad ui

and observe your browser opening a page showing:

Nomad UI is not available in this binary. To get Nomad UI do one of the following:

Download an official release

Run
make release
to create your own release binaries.

Run
make dev-ui
to create a development binary with the UI.

Technical details

Please run nix-shell -p nix-info --run "nix-info -m" and paste the
results.

  • system: "x86_64-linux"
  • host os: Linux 4.19.57-hardened, NixOS, 19.09.git.a3a9b08 (Loris)
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.2.2
  • channels(root): ""
  • nixpkgs: /var/nixpkgs
@arianvp
Copy link
Member

arianvp commented Jul 7, 2019

This is correct. We do not ship the Nomad UI because we would have to vendor all the javascript dependencies which amounts to a few-thousand extra packages in the package set just for Vault/Nomad which is really difficult to get working on nixpkgs and increases the source code size by quite a bit . We have the same problem with Vault on which I gave up trying to get it to work. The PR for that is here: #49082 which might help you get it working for Nomad. If you have ideas on how to get this into nixpkgs elegantly without it getting in the way, i'm happy to hear about it. Otherwise I think it might be more suitable to put nomad and vault UI in some outside package repository like https://github.com/nix-community/NUR

Consul UI works because the authors commit the resulting compiled javascript to their github repository. This means we don't have to install all the npm packages ourselves. I asked hashicorp if they were interested to do the same with nomad and vault, but they were not open to this idea. Hence we're shipping without UI.

@stale
Copy link

stale bot commented Jun 2, 2020

Thank you for your contributions.

This has been automatically marked as stale because it has had no activity for 180 days.

If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.

Here are suggestions that might help resolve this more quickly:

  1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
  2. Ask on the NixOS Discourse.
  3. Ask on the #nixos channel on irc.freenode.net.

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jun 2, 2020
@arianvp
Copy link
Member

arianvp commented Jun 2, 2020

Still relevant.

How I suggest to solve this ticket:

include a nomad-bin package just like we have vault-bin; that does ship the UI but isn't built from source

@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jun 2, 2020
@jktr
Copy link
Contributor

jktr commented Jun 14, 2020

The nomad package for nix includes the UI since f6c47d0 (v0.9.5, 2019-08-31).

Upstream includes the precompiled UI for its release commits, so unless you're planning on running a non-release commit / doing development this issue seems solved. A nomad-bin is thus probably not necessary, as the only releases for which we could build such a package already have the UI included in their nixpkgs version.

@arianvp arianvp closed this as completed Jun 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants