@noosphere/agent-core 0.1.0-alpha.5 → 0.1.0-alpha.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -269,7 +269,7 @@ var ContainerManager = class {
|
|
|
269
269
|
const startTime = Date.now();
|
|
270
270
|
try {
|
|
271
271
|
const port = container.port ? parseInt(container.port) : 8081;
|
|
272
|
-
const containerHost = process.env.DOCKER_NETWORK ? `noosphere-${container.
|
|
272
|
+
const containerHost = process.env.DOCKER_NETWORK ? `noosphere-${container.name}` : "localhost";
|
|
273
273
|
const url = `http://${containerHost}:${port}/computation`;
|
|
274
274
|
let requestBody;
|
|
275
275
|
try {
|
|
@@ -473,7 +473,7 @@ var ContainerManager = class {
|
|
|
473
473
|
* Start a persistent container that stays running
|
|
474
474
|
*/
|
|
475
475
|
async startPersistentContainer(containerId, metadata) {
|
|
476
|
-
const containerName = `noosphere-${
|
|
476
|
+
const containerName = `noosphere-${metadata.name}`;
|
|
477
477
|
const imageTag = `${metadata.image}:${metadata.tag || "latest"}`;
|
|
478
478
|
try {
|
|
479
479
|
const existingContainer = this.docker.getContainer(containerName);
|