awscontainer: add a flag to disable the installation code

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
Nicola Murino
2022-05-07 12:50:49 +02:00
parent 737109b2b8
commit 164621289c
12 changed files with 54 additions and 19 deletions

View File

@@ -36,7 +36,7 @@ Please take a look at the usage below to customize the startup options`,
LoadDataClean: loadDataClean,
Shutdown: make(chan bool),
}
if err := service.Start(); err == nil {
if err := service.Start(disableAWSInstallationCode); err == nil {
service.Wait()
if service.Error == nil {
os.Exit(0)
@@ -50,4 +50,5 @@ Please take a look at the usage below to customize the startup options`,
func init() {
rootCmd.AddCommand(serveCmd)
addServeFlags(serveCmd)
addAWSContainerFlags(serveCmd)
}