oliverdavies.uk/content/node.8d63dcb0-8092-4aa5-8687-006ef2457bdf.json
2025-05-11 20:02:13 +01:00

100 lines
No EOL
4.5 KiB
JSON

{
"uuid": [
{
"value": "8d63dcb0-8092-4aa5-8687-006ef2457bdf"
}
],
"langcode": [
{
"value": "en"
}
],
"type": [
{
"target_id": "daily_email",
"target_type": "node_type",
"target_uuid": "8bde1f2f-eef9-4f2d-ae9c-96921f8193d7"
}
],
"revision_timestamp": [
{
"value": "2025-04-21T01:21:25+00:00"
}
],
"revision_uid": [
{
"target_type": "user",
"target_uuid": "b8966985-d4b2-42a7-a319-2e94ccfbb849"
}
],
"revision_log": [],
"status": [
{
"value": true
}
],
"uid": [
{
"target_type": "user",
"target_uuid": "b8966985-d4b2-42a7-a319-2e94ccfbb849"
}
],
"title": [
{
"value": "Could Nix and devenv replace Docker Compose?"
}
],
"created": [
{
"value": "2024-11-11T00:00:00+00:00"
}
],
"changed": [
{
"value": "2025-04-21T01:21:25+00:00"
}
],
"promote": [
{
"value": false
}
],
"sticky": [
{
"value": false
}
],
"default_langcode": [
{
"value": true
}
],
"revision_translation_affected": [
{
"value": true
}
],
"path": [
{
"alias": "\/daily\/2024\/11\/11\/could-nix-and-devenv-replace-docker-compose",
"langcode": "en"
}
],
"body": [
{
"value": "\n <p>I started using the Nix package manager <a href=\"https:\/\/github.com\/opdavies\/dotfiles.nix\/commit\/af1d8d37\">in September 2022<\/a> as a replacement for Ansible to manage my dotfiles.<\/p>\n\n<p>Since then, I've switched to daily-driving NixOS as my main operating system and started to use Nix instead of Docker for some development projects.<\/p>\n\n<p>Even though I'm running Linux, there's a benefit to not running containers for simple projects as well as the reproducibility that Nix provides.<\/p>\n\n<p>I hadn't invested much time in using Nix as Docker replacement for Drupal projects, but this week, I've started to look at <a href=\"https:\/\/devenv.sh\">devenv<\/a> - a development tool based on Nix.<\/p>\n\n<p>As well as declaring and locking the package versions I need for each project, it also manages the services I need, such as PHP-FPM and MariaDB or MySQL.<\/p>\n\n<p>It also configures Git hooks, test scripts and custom processes, such as running Tailwind CSS.<\/p>\n\n<p>I've configured it for a few projects this week and it could be a potential Docker replacement for me.<\/p>\n\n<p>If you want to see an example, <a href=\"https:\/\/github.com\/opdavies\/drupal-london-meetup\/blob\/main\/devenv.nix\">see this repo on GitHub<\/a>.<\/p>\n\n ",
"format": "full_html",
"processed": "\n <p>I started using the Nix package manager <a href=\"https:\/\/github.com\/opdavies\/dotfiles.nix\/commit\/af1d8d37\">in September 2022<\/a> as a replacement for Ansible to manage my dotfiles.<\/p>\n\n<p>Since then, I've switched to daily-driving NixOS as my main operating system and started to use Nix instead of Docker for some development projects.<\/p>\n\n<p>Even though I'm running Linux, there's a benefit to not running containers for simple projects as well as the reproducibility that Nix provides.<\/p>\n\n<p>I hadn't invested much time in using Nix as Docker replacement for Drupal projects, but this week, I've started to look at <a href=\"https:\/\/devenv.sh\">devenv<\/a> - a development tool based on Nix.<\/p>\n\n<p>As well as declaring and locking the package versions I need for each project, it also manages the services I need, such as PHP-FPM and MariaDB or MySQL.<\/p>\n\n<p>It also configures Git hooks, test scripts and custom processes, such as running Tailwind CSS.<\/p>\n\n<p>I've configured it for a few projects this week and it could be a potential Docker replacement for me.<\/p>\n\n<p>If you want to see an example, <a href=\"https:\/\/github.com\/opdavies\/drupal-london-meetup\/blob\/main\/devenv.nix\">see this repo on GitHub<\/a>.<\/p>\n\n ",
"summary": null
}
],
"feeds_item": [
{
"imported": "2025-04-21T01:21:25+00:00",
"guid": null,
"hash": "d6d6e37268d4aebacb46e15def1075f8",
"target_type": "feeds_feed",
"target_uuid": "90c85284-7ca8-4074-9178-97ff8384fe76"
}
]
}