Skip to content

Commit 279b6f6

Browse files
committed
Also remove the shell (by default)
1 parent 99ac88c commit 279b6f6

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

template/default.nix

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@
114114
# still something still includes a reference to gcc (~230MiB), causing it to be
115115
# added to the docker images.
116116
, strip ? if debuginfo == 0 then true else false
117+
# We normally don't include a shell in the (dev) operator images, but it can be
118+
# enabled by enabling this flag.
119+
, includeShell ? false
117120
}:
118121
rec {
119122
inherit cargo sources pkgsLocal pkgsTarget meta;
@@ -135,14 +138,14 @@ rec {
135138
name = dockerName;
136139
tag = dockerTag;
137140
contents = [
138-
# Common debugging tools
139-
pkgsTarget.bashInteractive
140-
pkgsTarget.coreutils
141-
pkgsTarget.util-linuxMinimal
142141
# Kerberos 5 must be installed globally to load plugins correctly
143142
pkgsTarget.krb5
144143
# Make the whole cargo workspace available on $PATH
145144
build
145+
] ++ lib.optional includeShell [
146+
pkgsTarget.bashInteractive
147+
pkgsTarget.coreutils
148+
pkgsTarget.util-linuxMinimal
146149
];
147150
config = {
148151
Env =

0 commit comments

Comments
 (0)