FIX: microservices urls

This commit is contained in:
Gabriel Rosa
2024-08-16 22:19:11 +00:00
parent 5038c7845f
commit fd47a746af
5 changed files with 5 additions and 4 deletions
+1
View File
@@ -17,6 +17,7 @@ COPY . .
# unit test specific build
FROM ci_image AS test
ENV DUC_URL=0.0.0.0:50051
ENTRYPOINT ["npm", "run", "test"]
+1 -1
View File
@@ -8,7 +8,7 @@ import { Catalog } from '@dadosfera/protospack-v2';
const isLocalConnection =
process.env.PIFACTORY_URL.startsWith('pi-factory:') ||
process.env.PIFACTORY_URL?.includes('0.0.0.0');
process.env.PIFACTORY_URL.includes('0.0.0.0');
export class CatalogClientConfiguration {
public name = 'CatalogClientConfiguration';
+1 -1
View File
@@ -11,7 +11,7 @@ import {
const isLocalConnection =
process.env.DUC_URL.startsWith('duc:') ||
!!process.env.DUC_URL?.includes('0.0.0.0');
process.env.DUC_URL.includes('0.0.0.0');
export class DucClient {
public name = 'DucClient';
+1 -1
View File
@@ -8,7 +8,7 @@ import { credentials } from '@grpc/grpc-js';
const isLocalConnection =
process.env.PIFACTORY_URL.startsWith('pi-factory:') ||
process.env.PIFACTORY_URL?.includes('0.0.0.0');
process.env.PIFACTORY_URL.includes('0.0.0.0');
export class PipelinesClientConfiguration {
public name = 'PipelinesClientConfiguration';
+1 -1
View File
@@ -11,7 +11,7 @@ import { credentials } from '@grpc/grpc-js';
const isLocalConnection =
process.env.PIFACTORY_URL.startsWith('pi-factory:') ||
!!process.env.PIFACTORY_URL?.includes('0.0.0.0');
process.env.PIFACTORY_URL.includes('0.0.0.0');
export class PipelinesClientConfiguration {
public name = 'PipelinesClientConfiguration';