mirror of
https://github.com/tale/headplane.git
synced 2026-08-19 17:36:19 +00:00
feat: build a debug-shell and distroless container
This commit is contained in:
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user