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

zitadel: init at 2.37.2; nixos/zitadel: init #254896

Merged
merged 3 commits into from
Oct 3, 2023
Merged

zitadel: init at 2.37.2; nixos/zitadel: init #254896

merged 3 commits into from
Oct 3, 2023

Conversation

Sorixelle
Copy link
Member

@Sorixelle Sorixelle commented Sep 13, 2023

Description of changes

ZITADEL is a identity and access management platform. This PR creates a Nix derivation for it, as well as a NixOS module for running it as a service.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 23.11 Release Notes (or backporting 23.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

@Sorixelle Sorixelle changed the title zitadel: init at 2.36.2; nixos/zitadel: init zitadel: init at 2.36.3; nixos/zitadel: init Sep 13, 2023
@Sorixelle
Copy link
Member Author

Result of nixpkgs-review pr 254896 run on x86_64-linux 1

1 package blacklisted:
  • nixos-install-tools
1 package built:
  • zitadel

Copy link
Contributor

@Gabriella439 Gabriella439 left a comment

Choose a reason for hiding this comment

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

Looks great! Just a few small suggestions

nixos/modules/services/web-apps/zitadel.nix Outdated Show resolved Hide resolved
nixos/modules/services/web-apps/zitadel.nix Outdated Show resolved Hide resolved
nixos/modules/services/web-apps/zitadel.nix Outdated Show resolved Hide resolved
@Sorixelle Sorixelle changed the title zitadel: init at 2.36.3; nixos/zitadel: init zitadel: init at 2.37.2; nixos/zitadel: init Sep 23, 2023
@pinpox
Copy link
Member

pinpox commented Sep 28, 2023

Anything missing on this? I'm eager to try it out 👍

@pinpox pinpox mentioned this pull request Sep 28, 2023
12 tasks
Copy link
Contributor

@Gabriella439 Gabriella439 left a comment

Choose a reason for hiding this comment

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

Just one last thing. After you fix this and resolve the merge conflict I'm ready to merge this

nixos/modules/services/web-apps/zitadel.nix Outdated Show resolved Hide resolved
@Gabriella439 Gabriella439 merged commit 638d19a into NixOS:master Oct 3, 2023
24 checks passed
@Sorixelle Sorixelle deleted the zitadel branch October 3, 2023 05:39
go run internal/api/assets/generator/asset_generator.go -directory=internal/api/assets/generator/ -assets=docs/apis/assets/assets.md

cp -r ${passthru.console}/* internal/api/ui/console/static
CGO_ENABLED=0 go build -o zitadel -v -ldflags="-s -w -X 'github.com/zitadel/zitadel/cmd/build.version=${version}'"
Copy link
Member

Choose a reason for hiding this comment

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

Is there a good reason not to use ldflags?

Now if I want to make a debug build of zitadel, I have to use nix build --impure --expr '(import <nixpkgs> {}).zitadel.overrideAttrs (old: { buildPhase = builtins.replaceStrings [ "-s -w" ] [ "" ] old.buildPhase; })'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants