Skip to content
This repository was archived by the owner on Jun 17, 2026. It is now read-only.

docs: add instructions for installation via nix - #389

Merged
pmig merged 1 commit into
glasskube:mainfrom
jakuzure:nix-docs
Apr 2, 2024
Merged

pmig merged 1 commit into
glasskube:mainfrom
jakuzure:nix-docs

Conversation

@jakuzure

Copy link
Copy Markdown
Contributor

📑 Description

Added instructions on how to install Glasskube via nix, this works for Linux and MacOS (and maybe Windows), so I added it to the Readme directly as opposed to the installation methods web page.

This PR is still marked as a draft, because the Nixpkgs PR has not been merged yet, please leave a 👍 to increase the chances of it being merged quicker: NixOS/nixpkgs#285513

✅ Checks

  • My code requires changes to the documentation
  • I have updated the documentation as required

ℹ Additional Information

@kosmoz

kosmoz commented Mar 19, 2024

Copy link
Copy Markdown
Member

Hi @jakuzure!

I took a look at your PR over at NixOS/nixpkgs#285513. I'm not familiar with Nix packages but it looks like you build Glasskube from source. This is possible, of course, but some things won't work out of the box. To make everything work, you need to run make web or npm i; npm run build before building the go binary. This also requires a working node.js installation.

Alternatively, you can also download release binaries from our GitHub releases but I don't know if this approach would be acceptable for the Nix folks.

@jakuzure

Copy link
Copy Markdown
Contributor Author

Hi @kosmoz,

I originally tested it with v0.0.1 and the UI was looking fine. Thanks for your input, the PR above was merged in the meantime and I created another that copies the npm build artifacts over before doing the go build here: NixOS/nixpkgs#298338

Using already built binaries is usually the last resort in Nix (or done for software where no source is available), building from source is strongly preferred

@jakuzure
jakuzure marked this pull request as ready for review March 31, 2024 17:42
@jakuzure
jakuzure requested a review from pmig as a code owner March 31, 2024 17:42

@kosmoz kosmoz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @jakuzure! I see that your second PR in the nixpkg repository also got merged. We would be happy to add nix to our documentation, however, we also aim to keep the README file as concise as possible, so I think the installation guide in our documentation (website/docs/02_getting-started/01_install.mdx) would be a more appropriate place for this.

Could you please update your PR and move the instructions to the install docs? 🙂

@jakuzure

jakuzure commented Apr 2, 2024

Copy link
Copy Markdown
Contributor Author

Hi @kosmoz, does this work for you?

@pmig pmig left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the adaption. It might be easier for users if we create a separat <Tab> with the label NixOS/Nixpgks and value nixos

@jakuzure

jakuzure commented Apr 2, 2024

Copy link
Copy Markdown
Contributor Author

Thanks for the adaption. It might be easier for users if we create a separat <Tab> with the label NixOS/Nixpgks and value nixos

Good idea, I added a separate tab

@kosmoz kosmoz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me 👍

@pmig pmig self-assigned this Apr 2, 2024
@pmig
pmig merged commit 478d5ec into glasskube:main Apr 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants