mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 22:11:36 -05:00
fix(ecr): Shutdown ecr registry manager on observable shutdown event (#1063)
This commit is contained in:
1 parent
bd6e7795f8
commit
34d739edf8
2 files changed
+8
-1
No files matched your search
@@ -6,6 +6,7 @@ import io.github.hectorvent.floci.core.storage.StorageFactory;
|
||||
import io.github.hectorvent.floci.lifecycle.inithook.InitializationHook;
|
||||
import io.github.hectorvent.floci.lifecycle.inithook.InitializationHooksRunner;
|
||||
import io.github.hectorvent.floci.services.ec2.Ec2MetadataServer;
|
||||
import io.github.hectorvent.floci.services.ecr.registry.EcrRegistryManager;
|
||||
import io.github.hectorvent.floci.services.elasticache.container.ElastiCacheContainerManager;
|
||||
import io.github.hectorvent.floci.services.elasticache.container.ElastiCacheMemcachedContainerManager;
|
||||
import io.github.hectorvent.floci.services.elasticache.proxy.ElastiCacheProxyManager;
|
||||
@@ -54,6 +55,7 @@ public class EmulatorLifecycle {
|
||||
private final DynamoDbStreamsEventSourcePoller dynamodbStreamsPoller;
|
||||
private final PipesService pipesService;
|
||||
private final Ec2MetadataServer ec2MetadataServer;
|
||||
private final EcrRegistryManager ecrRegistryManager;
|
||||
private final InitLifecycleState initLifecycleState;
|
||||
|
||||
@Inject
|
||||
@@ -70,6 +72,7 @@ public class EmulatorLifecycle {
|
||||
DynamoDbStreamsEventSourcePoller dynamodbStreamsPoller,
|
||||
PipesService pipesService,
|
||||
Ec2MetadataServer ec2MetadataServer,
|
||||
EcrRegistryManager ecrRegistryManager,
|
||||
InitLifecycleState initLifecycleState) {
|
||||
this.storageFactory = storageFactory;
|
||||
this.serviceRegistry = serviceRegistry;
|
||||
@@ -85,6 +88,7 @@ public class EmulatorLifecycle {
|
||||
this.dynamodbStreamsPoller = dynamodbStreamsPoller;
|
||||
this.pipesService = pipesService;
|
||||
this.ec2MetadataServer = ec2MetadataServer;
|
||||
this.ecrRegistryManager = ecrRegistryManager;
|
||||
this.initLifecycleState = initLifecycleState;
|
||||
}
|
||||
|
||||
@@ -186,6 +190,7 @@ public class EmulatorLifecycle {
|
||||
elastiCacheContainerManager.stopAll();
|
||||
elastiCacheMemcachedContainerManager.stopAll();
|
||||
rdsContainerManager.stopAll();
|
||||
ecrRegistryManager.shutdown();
|
||||
storageFactory.shutdownAll();
|
||||
|
||||
LOG.info("=== AWS Local Emulator Stopped ===");
|
||||
|
||||
Reference in new issue
Block a user