Skip to content

wip: service ordering with nimi - #287

Closed
eljamm wants to merge 8 commits into
ngi-nix:masterfrom
eljamm:feat/nimi-service-ordering
Closed

wip: service ordering with nimi#287
eljamm wants to merge 8 commits into
ngi-nix:masterfrom
eljamm:feat/nimi-service-ordering

Conversation

@eljamm

@eljamm eljamm commented Apr 20, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@imincik imincik added this to Nix@NGI Apr 20, 2026
@imincik imincik linked an issue Apr 20, 2026 that may be closed by this pull request
@imincik

imincik commented Apr 20, 2026

Copy link
Copy Markdown
Contributor

We need to review and merge ngi-nix/nimi#3 to get this working.

@eljamm

eljamm commented Apr 20, 2026

Copy link
Copy Markdown
Contributor Author

We need to review and merge ngi-nix/nimi#3 to get this working.

I'm testing this against a local copy with that PR checked out. Doesn't seem to be working, but maybe I'm doing something wrong.

@eljamm

eljamm commented Apr 22, 2026

Copy link
Copy Markdown
Contributor Author

Added an afterReady option with a readyCheck in ngi-nix/nimi@f578468, which allows services to only start after another has finished setting up:

{
  services = {
    components = {
      python-web = {
        command = pkgs.mypkgs.python-web;
        readyCheck = pkgs.writeShellScript "check-web-ready" ''
          curl -sf http://localhost:5000
        '';
      };

      python-web-hello = {
        command = pkgs.hello;
      };
    };

    ordering.python-web-hello.after = [ "python-web" ];
    ordering.python-web-hello.afterReady = [ "python-web" ];
  };
}
$ podman run --rm -it localhost/python-web-app:latest
[2026-04-22T11:06:51Z INFO  nimi::cli] Launching process manager...
[2026-04-22T11:06:51Z INFO  nimi::process_manager] Starting process manager...
[2026-04-22T11:06:51Z INFO  python-web] Running readiness check (/nix/store/idsr00gd8x52lnwqlbdjwi1ghx68gbsh-check-web-ready)
[2026-04-22T11:06:51Z DEBUG python-web]  * Serving Flask app 'python_web.app'
[2026-04-22T11:06:51Z DEBUG python-web]  * Debug mode: off
[2026-04-22T11:06:51Z ERROR python-web] WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
[2026-04-22T11:06:51Z ERROR python-web]  * Running on all addresses (0.0.0.0)
[2026-04-22T11:06:51Z ERROR python-web]  * Running on http://127.0.0.1:5000
[2026-04-22T11:06:51Z ERROR python-web]  * Running on http://192.168.1.100:5000
[2026-04-22T11:06:51Z ERROR python-web] Press CTRL+C to quit
[2026-04-22T11:06:54Z ERROR python-web] 127.0.0.1 - - [22/Apr/2026 11:06:54] "GET / HTTP/1.1" 200 -
[2026-04-22T11:06:54Z DEBUG python-web-hello] Hello, world!

@eljamm
eljamm force-pushed the feat/nimi-service-ordering branch from 32aa2bf to 3a5e1c0 Compare April 22, 2026 11:15
@eljamm
eljamm force-pushed the feat/nimi-service-ordering branch from 3a5e1c0 to 923930f Compare April 22, 2026 11:55
@github-actions

Copy link
Copy Markdown
Contributor

🚀 UI Preview Deployed


Note: See the checks section at the bottom of this PR. Once the Netlify run is green, you can click Details to visit the deployment directly.

@eljamm eljamm mentioned this pull request May 1, 2026
@imincik

imincik commented May 5, 2026

Copy link
Copy Markdown
Contributor

@eljamm , would you please create Nimi PR to https://github.com/ngi-nix/nimi ?

@eljamm

eljamm commented May 8, 2026

Copy link
Copy Markdown
Contributor Author

@eljamm , would you please create Nimi PR to ngi-nix/nimi ?

Created ngi-nix/nimi#6

@eljamm

eljamm commented May 22, 2026

Copy link
Copy Markdown
Contributor Author

No longer relevant.

@eljamm eljamm closed this May 22, 2026
@github-project-automation github-project-automation Bot moved this to Done in Nix@NGI May 22, 2026
@eljamm
eljamm deleted the feat/nimi-service-ordering branch May 22, 2026 06:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Implement ordering for services in NGI Forge

2 participants