@@ -396,10 +396,17 @@ def calc_app_id(self, compose_file: str) -> str:
396396 compose_hash = hashlib .sha256 (compose_file .encode ()).hexdigest ()
397397 return compose_hash [:40 ]
398398
399- def create_app_compose (self , name : str , prelaunch_script : str , docker_compose : str ,
400- kms_enabled : bool , tproxy_enabled : bool , local_key_provider_enabled : bool ,
401- public_logs : bool , public_sysinfo : bool ,
399+ def create_app_compose (self ,
400+ name : str ,
401+ prelaunch_script : str ,
402+ docker_compose : str ,
403+ kms_enabled : bool ,
404+ tproxy_enabled : bool ,
405+ local_key_provider_enabled : bool ,
406+ public_logs : bool ,
407+ public_sysinfo : bool ,
402408 envs : Optional [Dict ],
409+ no_instance_id : bool ,
403410 output : str ,
404411 ) -> None :
405412 """Create a new app compose file"""
@@ -414,6 +421,7 @@ def create_app_compose(self, name: str, prelaunch_script: str, docker_compose: s
414421 "public_logs" : public_logs ,
415422 "public_sysinfo" : public_sysinfo ,
416423 "allowed_envs" : [k for k in envs .keys ()],
424+ "no_instance_id" : no_instance_id ,
417425 }
418426 if prelaunch_script :
419427 app_compose ["prelaunch_script" ] = prelaunch_script
@@ -770,6 +778,8 @@ def main():
770778 '--public-sysinfo' , action = 'store_true' , help = 'Enable public sysinfo' )
771779 compose_parser .add_argument (
772780 '--env-file' , help = 'File with environment variables to encrypt' , default = None )
781+ compose_parser .add_argument (
782+ '--no-instance-id' , action = 'store_true' , help = 'Disable instance ID' )
773783 compose_parser .add_argument (
774784 '--output' , required = True , help = 'Path to output app-compose.json file' )
775785
@@ -856,6 +866,7 @@ def main():
856866 public_logs = args .public_logs ,
857867 public_sysinfo = args .public_sysinfo ,
858868 envs = parse_env_file (args .env_file ),
869+ no_instance_id = args .no_instance_id ,
859870 output = args .output
860871 )
861872 elif args .command == 'deploy' :
0 commit comments