Skip to content

Commit

Permalink
adjusted dockerfile and TestAgent for credo
Browse files Browse the repository at this point in the history
Signed-off-by: Sheldon Regular <sheldon.regular@gmail.com>
  • Loading branch information
nodlesh committed Jul 16, 2024
1 parent a3541f9 commit 3043d23
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/Credo-ts-container/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

"runArgs": [
"--network=aath_network",
"--name=acme_agent"
"--name=acme_agent_dev"
],

// Configure tool-specific properties.
Expand Down
4 changes: 3 additions & 1 deletion aries-backchannels/credo-ts/Dockerfile.credo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:20.04 as base
FROM ubuntu:22.04 as base

ENV DEBIAN_FRONTEND noninteractive

Expand Down Expand Up @@ -29,6 +29,8 @@ RUN apt-get update -y && apt-get install -y --allow-unauthenticated \
# Install yarn seperately due to `no-install-recommends` to skip nodejs install
RUN apt-get install -y --no-install-recommends yarn

RUN apt-get upgrade -y libstdc++6

FROM base as final

WORKDIR /src
Expand Down
8 changes: 4 additions & 4 deletions aries-backchannels/credo-ts/server/src/TestAgent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { $log } from '@tsed/common'
import { Agent, AgentEventTypes, AgentMessageProcessedEvent, AutoAcceptCredential, AutoAcceptProof, CredentialsModule, DidsModule, InitConfig, MediatorModule, ProofsModule, V2CredentialProtocol, V2ProofProtocol } from '@credo-ts/core'
import { agentDependencies } from '@credo-ts/node'
import { AskarModule } from '@credo-ts/askar'
import { AnonCredsModule, LegacyIndyCredentialFormatService, LegacyIndyProofFormatService, V1CredentialProtocol, V1ProofProtocol, AnonCredsCredentialFormatService } from '@credo-ts/anoncreds'
import { AnonCredsRsModule } from '@aries-framework/anoncreds-rs'
import { AnonCredsModule, LegacyIndyCredentialFormatService, LegacyIndyProofFormatService, V1CredentialProtocol, V1ProofProtocol, AnonCredsCredentialFormatService, AnonCredsProofFormatService } from '@credo-ts/anoncreds'
//import { AnonCredsRsModule } from '@aries-framework/anoncreds-rs'
import { IndyVdrAnonCredsRegistry, IndyVdrModule, IndyVdrSovDidResolver, IndyVdrPoolConfig, IndyVdrIndyDidRegistrar } from '@credo-ts/indy-vdr'
import { TsedLogger } from './TsedLogger'
import { TransportConfig } from './TestHarnessConfig'
Expand Down Expand Up @@ -98,15 +98,15 @@ export function getAskarAnonCredsIndyModules(indyNetworkConfig: IndyVdrPoolConfi
indyProofFormat: legacyIndyProofFormatService,
}),
new V2ProofProtocol({
proofFormats: [legacyIndyProofFormatService],
proofFormats: [legacyIndyProofFormatService, new AnonCredsProofFormatService],
}),
],
}),
anoncreds: new AnonCredsModule({
registries: [new IndyVdrAnonCredsRegistry()],
anoncreds,
}),
anoncredsRs: new AnonCredsRsModule({ anoncreds }),
//anoncredsRs: new AnonCredsRsModule({ anoncreds }),
indyVdr: new IndyVdrModule({
indyVdr,
networks: [indyNetworkConfig],
Expand Down
4 changes: 2 additions & 2 deletions aries-backchannels/credo-ts/server/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ async function startup() {
try {
$log.debug('Start server...')
const platform = await PlatformExpress.bootstrap(Server)

platform.settings.port = testHarnessConfig.backchannelPort
platform.settings.set('port', testHarnessConfig.backchannelPort)
//platform.settings.port = testHarnessConfig.backchannelPort

await testHarnessConfig.agentStartup()

Expand Down

0 comments on commit 3043d23

Please sign in to comment.