feat: build a debug-shell and distroless container
This commit is contained in:
parent
5a254b746b
commit
eed12d348e
5 changed files with 73 additions and 9 deletions
19
cmd/fake_sh/fake_sh.go
Normal file
19
cmd/fake_sh/fake_sh.go
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
)
|
||||
|
||||
var imageTag string
|
||||
|
||||
func main() {
|
||||
if imageTag == "" {
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
fmt.Fprintln(os.Stderr, "Headplane containers do not contain a shell by default.")
|
||||
fmt.Fprintln(os.Stderr, "If you need a non-production container with a shell and root access use:")
|
||||
fmt.Fprintf(os.Stderr, "\n%s-shell\n\n", imageTag)
|
||||
os.Exit(127)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue