From 3e34d0256218054993217b0ad4d3297e30f058c6 Mon Sep 17 00:00:00 2001 From: Ed Morley <501702+edmorley@users.noreply.github.com> Date: Fri, 24 May 2024 11:28:40 +0100 Subject: [PATCH] Add `nano` to Heroku-20 and Heroku-22 (#309) Nano was added to Heroku-24 in: https://github.com/heroku/base-images/pull/284 This adds it to older stacks too, so that we don't have to: (a) check which stack an app is running and remember what packages come with that stack when debugging in eg a support ticket, (b) have to resort to using `ed` on older stacks This adds ~850KB to the run image for the older stacks. See: https://packages.ubuntu.com/jammy/nano https://packages.ubuntu.com/focal/nano --- heroku-20-build/installed-packages.txt | 1 + heroku-20/installed-packages.txt | 1 + heroku-20/setup.sh | 1 + heroku-22-build/installed-packages.txt | 1 + heroku-22/installed-packages.txt | 1 + heroku-22/setup.sh | 1 + 6 files changed, 6 insertions(+) diff --git a/heroku-20-build/installed-packages.txt b/heroku-20-build/installed-packages.txt index a31089cb..0a72fe41 100644 --- a/heroku-20-build/installed-packages.txt +++ b/heroku-20-build/installed-packages.txt @@ -543,6 +543,7 @@ mlock mount mtools mysql-common +nano ncurses-base ncurses-bin netbase diff --git a/heroku-20/installed-packages.txt b/heroku-20/installed-packages.txt index 60fe7345..1f832b61 100644 --- a/heroku-20/installed-packages.txt +++ b/heroku-20/installed-packages.txt @@ -342,6 +342,7 @@ mlock mount mtools mysql-common +nano ncurses-base ncurses-bin netbase diff --git a/heroku-20/setup.sh b/heroku-20/setup.sh index fa8a5681..de17bba2 100755 --- a/heroku-20/setup.sh +++ b/heroku-20/setup.sh @@ -129,6 +129,7 @@ packages=( locales lsb-release make + nano # More usable than ed but still much smaller than vim. netcat-openbsd openssh-client openssh-server diff --git a/heroku-22-build/installed-packages.txt b/heroku-22-build/installed-packages.txt index f9a15f32..04496170 100644 --- a/heroku-22-build/installed-packages.txt +++ b/heroku-22-build/installed-packages.txt @@ -542,6 +542,7 @@ mlock mount mtools mysql-common +nano ncurses-base ncurses-bin netbase diff --git a/heroku-22/installed-packages.txt b/heroku-22/installed-packages.txt index b07f49d3..1fcfb7bb 100644 --- a/heroku-22/installed-packages.txt +++ b/heroku-22/installed-packages.txt @@ -347,6 +347,7 @@ mlock mount mtools mysql-common +nano ncurses-base ncurses-bin netbase diff --git a/heroku-22/setup.sh b/heroku-22/setup.sh index d324c120..34cc3313 100755 --- a/heroku-22/setup.sh +++ b/heroku-22/setup.sh @@ -132,6 +132,7 @@ packages=( locales lsb-release make + nano # More usable than ed but still much smaller than vim. netcat-openbsd openssh-client openssh-server