forked from cerc-io/stack-orchestrator
		
	
							parent
							
								
									199a4036a8
								
							
						
					
					
						commit
						eb70f2526e
					
				| @ -18,4 +18,7 @@ services: | ||||
|       - "9090" | ||||
|       - "9091" | ||||
|       - "1317" | ||||
| 
 | ||||
|   cli: | ||||
|     image: cerc/laconic-registry-cli:local | ||||
|     volumes: | ||||
|       - ../config/fixturenet-laconicd/registry-cli-config-template.yml:/registry-cli-config-template.yml | ||||
|  | ||||
| @ -0,0 +1,7 @@ | ||||
| services: | ||||
|   cns: | ||||
|     restEndpoint: 'http://laconicd:1317' | ||||
|     gqlEndpoint: 'http://laconicd:9473/api' | ||||
|     userKey: REPLACE_WITH_MYKEY | ||||
|     bondId: | ||||
|     chainId: laconic_9000-1 | ||||
| @ -51,4 +51,6 @@ RUN npm config set @lirewine:registry ${CERC_NPM_URL} \ | ||||
| # Globally install the cli package | ||||
| RUN yarn global add @cerc-io/laconic-registry-cli | ||||
| 
 | ||||
| ENTRYPOINT ["laconic"] | ||||
| # Default command sleeps forever so docker doesn't kill it | ||||
| CMD ["sh", "-c", "while :; do sleep 600; done"] | ||||
| 
 | ||||
|  | ||||
| @ -0,0 +1,2 @@ | ||||
| #!/bin/sh | ||||
| sed 's/REPLACE_WITH_MYKEY/'${1}'/' registry-cli-config-template.yml > config.yml | ||||
| @ -75,7 +75,7 @@ def command(ctx, include, exclude, cluster, command, extra_args): | ||||
|                 print("Usage: exec <service> <cmd>") | ||||
|                 sys.exit(1) | ||||
|             service_name = extra_args_list[0] | ||||
|             command_to_exec = extra_args_list[1:] | ||||
|             command_to_exec = ["sh", "-c"] + extra_args_list[1:] | ||||
|             container_exec_env = _make_runtime_env(ctx.obj) | ||||
|             if verbose: | ||||
|                 print(f"Running compose exec {service_name} {command_to_exec}") | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user