76 lines
3.5 KiB
YAML
76 lines
3.5 KiB
YAML
uuid:
|
|
- value: 711d2246-a181-4fe5-900d-c6e4fee3c29d
|
|
langcode:
|
|
- value: en
|
|
type:
|
|
- target_id: daily_email
|
|
target_type: node_type
|
|
target_uuid: 8bde1f2f-eef9-4f2d-ae9c-96921f8193d7
|
|
revision_timestamp:
|
|
- value: '2025-05-11T09:00:05+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-05-11T09:00:05+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: |
|
|
<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>
|
|
|
|
<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>
|
|
|
|
<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>
|
|
|
|
<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>
|
|
|
|
<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>
|
|
|
|
<p>It also configures Git hooks, test scripts and custom processes, such as running Tailwind CSS.</p>
|
|
|
|
<p>I've configured it for a few projects this week and it could be a potential Docker replacement for me.</p>
|
|
|
|
<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>
|
|
|
|
|
|
format: full_html
|
|
processed: |
|
|
<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>
|
|
|
|
<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>
|
|
|
|
<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>
|
|
|
|
<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>
|
|
|
|
<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>
|
|
|
|
<p>It also configures Git hooks, test scripts and custom processes, such as running Tailwind CSS.</p>
|
|
|
|
<p>I've configured it for a few projects this week and it could be a potential Docker replacement for me.</p>
|
|
|
|
<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>
|
|
|
|
|
|
summary: null
|
|
field_daily_email_cta: { }
|