switch naar nix? #8

Open
opened 2023-04-09 18:44:04 +00:00 by kiara · 9 comments
Owner

we proberen hier civicrm te reproduceren, waar dit zo te zien al door de makers gedaan wordt.
van hun opties klinkt de nix variant misschien nog het meest interessant. dit zou alsnog als container kunnen draaien/deployen.
(overigens zegt die buildkit 'voor dev/testen' te zijn. wat zou deze onderscheiden van iets geschikt voor productie?)

cf. nix + containers

we proberen hier civicrm te reproduceren, waar dit zo te zien al door de makers [gedaan wordt](https://docs.civicrm.org/dev/en/latest/tools/buildkit/). van hun opties klinkt de nix variant misschien nog het meest interessant. dit zou alsnog als container kunnen draaien/deployen. (overigens zegt [die buildkit](https://github.com/civicrm/civicrm-buildkit) 'voor dev/testen' te zijn. wat zou deze onderscheiden van iets geschikt voor productie?) cf. [nix + containers](https://trello.com/c/5mqNXDci/#comment-6592baba5ea7698a7c283a89)
kiara changed title from switch naar nix to switch naar nix? 2023-04-09 18:44:12 +00:00
Author
Owner

misschien dichter bij productie: civicrm op nixpkgs

misschien dichter bij productie: civicrm [op nixpkgs](https://github.com/NixOS/nixpkgs/pull/209002)
Author
Owner

argument hiervoor lijkt die lange build pijplijn nu, nix+cachix zou dat nog best wel eens kunnen terugbrengen.

argument hiervoor lijkt die lange build pijplijn nu, nix+cachix zou dat nog best wel eens kunnen terugbrengen.
Author
Owner

potentieel extra argument lijkt reproduceerbaarheid inclusief van sub-dependencies over tijd

potentieel extra argument lijkt reproduceerbaarheid inclusief van sub-dependencies over tijd
Author
Owner

helaas is ook met hun guide op nixos me dit nog niet gelukt, al lijkt het dat zij nix zonder nixos gebruikten

helaas is ook met hun guide op nixos me dit [nog niet gelukt](https://github.com/civicrm/civicrm-buildkit/issues/779), al lijkt het dat zij nix zonder nixos gebruikten
Author
Owner
links: - https://nixos.wiki/wiki/Wordpress - [nixpkgs: wordpress-plugins.json](https://github.com/NixOS/nixpkgs/blob/master/pkgs/servers/web-apps/wordpress/packages/wordpress-plugins.json) - [nixpkgs: wordpress thirdparty.nix](https://github.com/NixOS/nixpkgs/blob/master/pkgs/servers/web-apps/wordpress/packages/thirdparty.nix) - [`wp4nix`](https://git.helsinki.tools/helsinki-systems/wp4nix) - [civicrm-buildkit: nix](https://github.com/civicrm/civicrm-buildkit/blob/master/nix/default.nix) (based on [`loco.yml`](https://github.com/civicrm/civicrm-buildkit/blob/master/.loco/loco.yml) - focused on setting up other services so super un-nix-like)
Author
Owner

civicoop:

Buildkit houdt weinig rekening met extensies

zelf geen ervaring mee nog dus weet hier niet veel meer over.

open issues:

civicoop: > Buildkit houdt weinig rekening met [extensies](https://civicrm.org/extensions) zelf geen ervaring mee nog dus weet hier niet veel meer over. open issues: - [`civicrm-buildkit`](https://github.com/civicrm/civicrm-buildkit/issues/837) - [`nixpkgs`](https://github.com/NixOS/nixpkgs/issues/274520)
Author
Owner
https://code.bij1.org/bij1/civicrm-bij1/compare/main...generated-nix
Author
Owner

voor extensions doen we nu:

  • download naar ${WP_BASE}/wp-content/uploads/civicrm/ext/*
  • cv ext:enable (fetch dependencies + ???)

klinkt best wel als hoe packagen in nix gaat. php in nix:

edit: uploads/civicrm/ext/ daargelaten, nix wordpress wp-content/plugins/civicrm/civicrm/ext is misschien ook een optie via bv overlays?

voor extensions doen we nu: - download naar `${WP_BASE}/wp-content/uploads/civicrm/ext/*` - [`cv ext:enable`](https://github.com/civicrm/cv/blob/0f774b807bac88e7048270ef32cdc71359e8ff24/src/Command/ExtensionEnableCommand.php#L20) (fetch dependencies + ???) klinkt best wel als hoe packagen in nix gaat. php in nix: - [setup](https://nixos.wiki/wiki/PHP) - [consumeren/bouwen](https://github.com/NixOS/nixpkgs/blob/master/doc/languages-frameworks/php.section.md) - voor repo's met `composer.json`: - [`composer2nix`](https://github.com/svanderburg/composer2nix) - [`loophp/nix-shell`](https://github.com/loophp/nix-shell) edit: `uploads/civicrm/ext/` daargelaten, nix wordpress [`wp-content/plugins/civicrm/civicrm/ext`](https://lab.civicrm.org/dev/core/-/tree/master/ext) is misschien ook een optie via bv [overlays](https://nixos.wiki/wiki/Overlays)?
Author
Owner

gebruikte extensies (non-recursief):

elke civi extensie heeft ook een info.xml met o.a. dependencies.

edit: de extensies hebben maar soms iets boeiends in de composer file dus zonder zou misschien ook wel gaan.

gebruikte extensies (non-recursief): - [`org.project60.sepa`](https://github.com/Project60/org.project60.sepa) - [`de.systopia.identitytracker`](https://github.com/systopia/de.systopia.identitytracker) - [`org.project60.banking`](https://github.com/Project60/org.project60.banking) (composer) - [`assignee`](https://lab.civicrm.org/extensions/assignee) - [`apikey`](https://lab.civicrm.org/extensions/apikey) - [`dataprocessor`](https://lab.civicrm.org/extensions/dataprocessor) - [`emailapi`](https://lab.civicrm.org/extensions/emailapi) (composer) - [`action-provider`](https://lab.civicrm.org/extensions/action-provider) - [`form-processor`](https://lab.civicrm.org/extensions/form-processor) - [`de.systopia.xcm`](https://github.com/systopia/de.systopia.xcm) - [`group2summary`](https://lab.civicrm.org/extensions/group2summary) - [`org.project60.bic`](https://github.com/Project60/org.project60.bic) (composer) - [`org.civicrm.contactlayout`](https://github.com/civicrm/org.civicrm.contactlayout) - [`org.civicrm.recentmenu`](https://github.com/civicrm/org.civicrm.recentmenu) - [`civirules`](https://lab.civicrm.org/extensions/civirules) (composer) - [`org.wikimedia.relationshipblock`](https://github.com/eileenmcnaughton/org.wikimedia.relationshipblock) - [`uk.co.vedaconsulting.mosaico`](https://github.com/veda-consulting-company/uk.co.vedaconsulting.mosaico) elke civi extensie heeft ook een [`info.xml`](https://docs.civicrm.org/dev/en/latest/extensions/info-xml/) met o.a. dependencies. edit: de extensies hebben [maar soms iets boeiends](https://github.com/Project60/org.project60.bic/blob/master/composer.json) in de composer file dus zonder zou misschien ook wel gaan.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: bij1/civicrm-bij1#8
No description provided.