ensure info/apps is published to when docker events happen

Signed-off-by: Alexis Tyler <xo@wvvw.me>
This commit is contained in:
Alexis Tyler
2019-09-01 09:56:50 +09:30
parent f93531dcbe
commit 882dbbf5cc
4 changed files with 101 additions and 21 deletions

View File

@@ -18,15 +18,15 @@ const $injector = new Injector();
$injector.registerImports([
'net',
'http',
'express',
'apollo-server',
'apollo-server-express',
'graphql',
'apollo-server',
'deepmerge',
'stoppable',
'graphql-tools',
'express',
'graphql-subscriptions',
'set-interval-async/dynamic'
'graphql-tools',
'graphql',
'set-interval-async/dynamic',
'stoppable'
]);
// Register modules that need require and not import
@@ -36,13 +36,14 @@ $injector.registerRequires([
// Register the imported modules with custom names.
$injector.registerImports({
dee: '@gridplus/docker-events',
get: 'lodash.get',
gql: 'graphql-tag',
graphqlDirective: 'graphql-directive',
mergeGraphqlSchemas: 'merge-graphql-schemas',
GraphQLJSON: 'graphql-type-json',
GraphQLLong: 'graphql-type-long',
GraphQLUUID: 'graphql-type-uuid',
gql: 'graphql-tag'
mergeGraphqlSchemas: 'merge-graphql-schemas'
});
$injector.registerValue('setIntervalAsync', $injector.resolve('set-interval-async/dynamic').setIntervalAsync);