Skip to content

Commit 23e937a

Browse files
committed
Update docker url paths for all on-prem agents
1 parent 8630d89 commit 23e937a

16 files changed

Lines changed: 42 additions & 18 deletions

src/lib/engage/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ export enum BasePaths {
391391
Platform = '/platform/api/v1',
392392
V7Agents = '/artifactory/ampc-public-generic-release/v7-agents',
393393
AWSAgents = '/artifactory/ampc-public-generic-release/aws-agents',
394-
DockerAgentPublicRepo = '/agent',
394+
DockerAgentPublicRepo = '/ampc-docker-prod/1.2',
395395
}
396396

397397
export interface ValidatedDocs {
@@ -897,7 +897,7 @@ export const GatewayTypeToDataPlane = {
897897
[GatewayTypes.WSO2]: DataPlaneNames.WSO2,
898898
};
899899

900-
export const PublicDockerRepoBaseUrl = 'repository.axway.com/ampc-public-docker-release';
900+
export const PublicDockerRepoBaseUrl = 'docker.repository.axway.com';
901901

902902
export class DOSAConfigInfo {
903903
clientId: string | null;

src/lib/engage/utils/agents/flows/akamaiAgent.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { ApiServerClient } from '../../../clients-external/apiserverclient.js';
33
import { DefinitionsManager } from '../../../results/DefinitionsManager.js';
44
import { AgentConfigTypes, AgentInstallConfig, AgentNames, AgentTypes, BasePaths, BundleType, GatewayTypes, GenericResource, InstallationFlowMethods, PublicDockerRepoBaseUrl, svcAccMsg, YesNo, YesNoChoices } from '../../../types.js';
55
import { askInput, askList, validateRegex, validateValueRange } from '../../basic-prompts.js';
6-
import { AgentHelmInfo, helmImageSecretInfo, helmInstallInfo, isWindows, writeTemplates } from '../../utils.js';
6+
import { AgentHelmInfo, helmImageSecretInfo, helmInstallInfo, isWindows, writeTemplates, dockerLoginInfo } from '../../utils.js';
77
import { AkamaiAgentValues } from '../index.js';
88
import * as helpers from '../index.js';
99
import { kubectl } from '../kubectl.js';
@@ -178,6 +178,7 @@ const dockerSuccessMsg = (installConfig: AgentInstallConfig) => {
178178
const dockerInfo = `To utilize the agent, pull the latest Docker image and run it using the appropriate supplied environment file, (${helpers.configFiles.AGENT_ENV_VARS}):`;
179179
installConfig.log(chalk.whiteBright(dockerInfo) + '\n');
180180
const caImageVersion = `${caImage}:${installConfig.caVersion}`;
181+
dockerLoginInfo();
181182
installConfig.log(chalk.white('Pull the latest image of the Agent:'));
182183
installConfig.log(chalk.cyan(`docker pull ${caImageVersion}`));
183184
installConfig.log(chalk.white(isWindows ? startAgentWinMsg : startAgentLinuxMsg));

src/lib/engage/utils/agents/flows/apigeexAgents.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import chalk from 'chalk';
22
import { AgentConfigTypes, AgentInstallConfig, AgentNames, AgentTypes, ApigeeMetricsFilterConfig, BasePaths, BundleType, GatewayTypes, InstallationFlowMethods, PublicDockerRepoBaseUrl, svcAccMsg, YesNo, YesNoChoices } from '../../../types.js';
33
import { askInput, askList, validateRegex } from '../../basic-prompts.js';
4-
import { isWindows, writeTemplates } from '../../utils.js';
4+
import { dockerLoginInfo, isWindows, writeTemplates } from '../../utils.js';
55
import { ApigeeXAgentValues } from '../index.js';
66
import * as helpers from '../index.js';
77

@@ -177,6 +177,7 @@ const dockerSuccessMsg = (installConfig: AgentInstallConfig) => {
177177
dockerInfo = `To utilize the traceability agent, pull the latest Docker image and run it using the supplied environment file, (${helpers.configFiles.TA_ENV_VARS}):`;
178178
}
179179
installConfig.log(chalk.whiteBright(dockerInfo) + '\n');
180+
dockerLoginInfo();
180181

181182
if (installConfig.switches.isDaEnabled) {
182183
const daImageVersion = `${daImage}:${installConfig.daVersion}`;

src/lib/engage/utils/agents/flows/awsAgents.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import chalk from 'chalk';
22
import logger from '../../../../logger.js';
33
import { AgentConfigTypes, AgentInstallConfig, AgentNames, AgentTypes, AWSRegions, BasePaths, BundleType, GatewayTypes, InstallationFlowMethods, PublicDockerRepoBaseUrl, TrueFalse, YesNo, YesNoChoices } from '../../../types.js';
44
import { askInput, askList, validateInputLength, validateRegex } from '../../basic-prompts.js';
5-
import { isWindows, writeTemplates, writeToFile } from '../../utils.js';
5+
import { dockerLoginMsg, isWindows, writeTemplates, writeToFile } from '../../utils.js';
66
import { AWSAgentValues } from '../index.js';
77
import * as helpers from '../index.js';
88

@@ -432,7 +432,7 @@ ${chalk.cyan(` aws iam create-access-key --user-name AxwayAmplifyAgentsUser-
432432
AWS_AUTH_ACCESSKEY=${chalk.yellow('Your_AccessKeyId')}
433433
AWS_AUTH_SECRETKEY=${chalk.yellow('Your_SecretAccessKey')}`;
434434
runCommands = `${chalk.whiteBright(info)}
435-
435+
${dockerLoginMsg()}
436436
Pull the latest image of the Discovery Agent:
437437
${chalk.cyan(`docker pull ${daImage}:${installConfig.daVersion}`)}
438438

src/lib/engage/utils/agents/flows/azureAgents.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import chalk from 'chalk';
22
import { AgentConfigTypes, AgentInstallConfig, AgentNames, AgentTypes, BasePaths, BundleType, GatewayTypes, InstallationFlowMethods, PublicDockerRepoBaseUrl, svcAccMsg } from '../../../types.js';
33
import { askInput, askList, validateRegex } from '../../basic-prompts.js';
4-
import { isWindows, writeTemplates } from '../../utils.js';
4+
import { dockerLoginInfo, isWindows, writeTemplates } from '../../utils.js';
55
import { AzureAgentValues } from '../index.js';
66
import * as helpers from '../index.js';
77

@@ -196,7 +196,7 @@ const dockerSuccessMsg = (installConfig: AgentInstallConfig) => {
196196
dockerInfo = `To utilize the traceability agent, pull the latest Docker image and run it using the supplied environment file, (${helpers.configFiles.TA_ENV_VARS}):`;
197197
}
198198
installConfig.log(chalk.whiteBright(dockerInfo) + '\n');
199-
199+
dockerLoginInfo();
200200
if (installConfig.switches.isDaEnabled) {
201201
const daImageVersion = `${daImage}:${installConfig.daVersion}`;
202202
installConfig.log(chalk.white('Pull the latest image of the Discovery Agent:'));

src/lib/engage/utils/agents/flows/backstageAgents.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { askInput, askList } from '../../basic-prompts.js';
33
import { AuthMode, BackstageAgentValues, backstageDAEnvVarTemplate, UrlScheme } from '../templates/backstageTemplates.js';
44
import * as helpers from '../index.js';
55
import chalk from 'chalk';
6-
import { isWindows, writeTemplates } from '../../utils.js';
6+
import { dockerLoginInfo, isWindows, writeTemplates } from '../../utils.js';
77

88
const daImage = `${PublicDockerRepoBaseUrl}${BasePaths.DockerAgentPublicRepo}/${AgentNames.BACKSTAGE_DA}`;
99

@@ -125,6 +125,7 @@ const dockerSuccessMsg = (installConfig: AgentInstallConfig) => {
125125

126126
const dockerInfo = `To utilize the agents, pull the latest Docker images and run them using the appropriate supplied environment files, (${helpers.configFiles.DA_ENV_VARS}:`;
127127
installConfig.log(chalk.whiteBright(dockerInfo) + '\n');
128+
dockerLoginInfo();
128129

129130
const daImageVersion = `${daImage}:${installConfig.daVersion}`;
130131
installConfig.log(chalk.white('Pull the latest image of the Discovery Agent:'));

src/lib/engage/utils/agents/flows/edgeAgents.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import chalk from 'chalk';
22
import { AgentConfigTypes, AgentInstallConfig, AgentNames, AgentTypes, BasePaths, BundleType, GatewayTypes, InstallationFlowMethods, localhost, LoggingSource, PublicDockerRepoBaseUrl, svcAccMsg, YesNo, YesNoChoices } from '../../../types.js';
33
import { askInput, askList, askUsernameAndPassword } from '../../basic-prompts.js';
4-
import { writeTemplates, isWindows, AgentHelmInfo, helmImageSecretInfo, helmInstallInfo } from '../../utils.js';
4+
import { writeTemplates, isWindows, AgentHelmInfo, helmImageSecretInfo, helmInstallInfo, dockerLoginInfo } from '../../utils.js';
55
import { V7AgentValues } from '../index.js';
66
import * as helpers from '../index.js';
77
import { kubectl } from '../kubectl.js';
@@ -352,6 +352,7 @@ const dockerSuccessMsg = (installConfig: AgentInstallConfig, eventLogPath: strin
352352
dockerInfo = `To utilize the traceability agent, pull the latest Docker image and run it using the supplied environment file, (${helpers.configFiles.TA_ENV_VARS}):`;
353353
}
354354
installConfig.log(chalk.whiteBright(dockerInfo) + '\n');
355+
dockerLoginInfo();
355356

356357
if (installConfig.switches.isDaEnabled) {
357358
const daImageVersion = `${daImage}:${installConfig.daVersion}`;

src/lib/engage/utils/agents/flows/gitLabAgents.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import chalk from 'chalk';
22
import { AgentConfigTypes, AgentInstallConfig, AgentNames, BasePaths, BundleType, GatewayTypes, InstallationFlowMethods, PublicDockerRepoBaseUrl, YesNo, YesNoChoices } from '../../../types.js';
33
import { askInput, askList, validateRegex } from '../../basic-prompts.js';
4-
import { isWindows, writeTemplates } from '../../utils.js';
4+
import { dockerLoginInfo, isWindows, writeTemplates } from '../../utils.js';
55
import { GitLabAgentValues } from '../index.js';
66
import * as helpers from '../index.js';
77

@@ -145,6 +145,7 @@ const dockerSuccessMsg = (installConfig: AgentInstallConfig) => {
145145
dockerInfo = `To utilize the discovery agent, pull the latest Docker image and run it using the supplied environment file, (${helpers.configFiles.DA_ENV_VARS}):`;
146146
}
147147
installConfig.log(chalk.whiteBright(dockerInfo) + '\n');
148+
dockerLoginInfo();
148149

149150
if (installConfig.switches.isDaEnabled) {
150151
const daImageVersion = `${daImage}:${installConfig.daVersion}`;

src/lib/engage/utils/agents/flows/ibmAPIConnetAgents.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import chalk from 'chalk';
22
import { AgentConfigTypes, AgentInstallConfig, AgentNames, AgentTypes, BasePaths, BundleType, GatewayTypes, InstallationFlowMethods, PublicDockerRepoBaseUrl, svcAccMsg } from '../../../types.js';
33
import { askInput, askList } from '../../basic-prompts.js';
4-
import { isWindows, writeTemplates } from '../../utils.js';
4+
import { dockerLoginInfo, isWindows, writeTemplates } from '../../utils.js';
55
import { IBMAPIConnectAgentValues } from '../index.js';
66
import * as helpers from '../index.js';
77

@@ -154,6 +154,7 @@ const dockerSuccessMsg = (installConfig: AgentInstallConfig) => {
154154
dockerInfo = `To utilize the traceability agent, pull the latest Docker image and run it using the supplied environment file, (${helpers.configFiles.TA_ENV_VARS}):`;
155155
}
156156
installConfig.log(chalk.whiteBright(dockerInfo) + '\n');
157+
dockerLoginInfo();
157158

158159
if (installConfig.switches.isDaEnabled) {
159160
const daImageVersion = `${daImage}:${installConfig.daVersion}`;

src/lib/engage/utils/agents/flows/kafkaAgents.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import chalk from 'chalk';
22
import { AgentConfigTypes, AgentInstallConfig, AgentNames, AgentTypes, BasePaths, BundleType, GatewayTypes, InstallationFlowMethods, PublicDockerRepoBaseUrl, svcAccMsg, YesNo, YesNoChoices } from '../../../types.js';
33
import { askInput, askList, validateRegex } from '../../basic-prompts.js';
4-
import { isWindows, writeTemplates } from '../../utils.js';
4+
import { dockerLoginInfo, isWindows, writeTemplates } from '../../utils.js';
55
import { KafkaAgentValues } from '../index.js';
66
import * as helpers from '../index.js';
77

@@ -282,6 +282,7 @@ const dockerSuccessMsg = (installConfig: AgentInstallConfig) => {
282282
dockerInfo = `To utilize the traceability agent, pull the latest Docker image and run it using the supplied environment file, (${helpers.configFiles.TA_ENV_VARS}):`;
283283
}
284284
installConfig.log(chalk.whiteBright(dockerInfo) + '\n');
285+
dockerLoginInfo();
285286

286287
if (installConfig.switches.isDaEnabled) {
287288
const daImageVersion = `${daImage}:${installConfig.daVersion}`;

0 commit comments

Comments
 (0)