From f1dd7048fb8254e385b468a01addadd1112224c7 Mon Sep 17 00:00:00 2001 From: Sam Rose Date: Sun, 11 Aug 2024 14:50:12 +0000 Subject: [PATCH 1/3] fix: it is required to run this at the end of AMI build to remove deps in the store not used by the installed pkg --- ansible/playbook.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ansible/playbook.yml b/ansible/playbook.yml index 7938aa7b4..af2471257 100644 --- a/ansible/playbook.yml +++ b/ansible/playbook.yml @@ -206,3 +206,9 @@ shell: | sudo -u ubuntu bash -c ". /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh && nix profile remove osquery" when: stage2_nix + + - name: nix collect garbage + become: yes + shell: | + sudo -u ubuntu bash -c ". /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh && nix-collect-garbage -d" + when: stage2_nix \ No newline at end of file From 0704de665daa5b3e1f43e3c990e05b85457cdce7 Mon Sep 17 00:00:00 2001 From: Sam Rose Date: Sun, 11 Aug 2024 14:54:36 +0000 Subject: [PATCH 2/3] fix: newline --- ansible/playbook.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/playbook.yml b/ansible/playbook.yml index af2471257..84802e469 100644 --- a/ansible/playbook.yml +++ b/ansible/playbook.yml @@ -211,4 +211,4 @@ become: yes shell: | sudo -u ubuntu bash -c ". /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh && nix-collect-garbage -d" - when: stage2_nix \ No newline at end of file + when: stage2_nix From 0cc404d2954fc00d452ab3fc30061745a2e32408 Mon Sep 17 00:00:00 2001 From: Sam Rose Date: Sun, 11 Aug 2024 20:26:47 +0000 Subject: [PATCH 3/3] chore: bump ami version --- common-nix.vars.pkr.hcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common-nix.vars.pkr.hcl b/common-nix.vars.pkr.hcl index 9b378b4b7..db1efb0a9 100644 --- a/common-nix.vars.pkr.hcl +++ b/common-nix.vars.pkr.hcl @@ -1 +1 @@ -postgres-version = "15.6.1.108" +postgres-version = "15.6.1.109"