Verified incoming transfers against Monero Wallet PRC
This commit is contained in:
Executable
+20
@@ -0,0 +1,20 @@
|
||||
$ErrorActionPreference = 'Stop'
|
||||
$containerId = & docker create --network none --entrypoint node wikideck-monero-mtls-test `
|
||||
--experimental-strip-types scripts/monero-mtls-stagenet-rehearsal.mjs /opt/monero/monero-wallet-rpc
|
||||
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
|
||||
|
||||
$exitCode = 1
|
||||
try {
|
||||
& docker cp 'Z:\Repositories\wikideck\server' "${containerId}:/app/"
|
||||
if ($LASTEXITCODE -ne 0) { throw 'Copying current server source into the isolated rehearsal container failed.' }
|
||||
& docker cp 'Z:\Repositories\wikideck\shared' "${containerId}:/app/"
|
||||
if ($LASTEXITCODE -ne 0) { throw 'Copying current shared source into the isolated rehearsal container failed.' }
|
||||
& docker cp 'Z:\Repositories\wikideck\scripts\monero-mtls-stagenet-rehearsal.mjs' `
|
||||
"${containerId}:/app/scripts/monero-mtls-stagenet-rehearsal.mjs"
|
||||
if ($LASTEXITCODE -ne 0) { throw 'Copying the current rehearsal script failed.' }
|
||||
& docker start --attach $containerId
|
||||
$exitCode = $LASTEXITCODE
|
||||
} finally {
|
||||
& docker rm --force $containerId | Out-Null
|
||||
}
|
||||
exit $exitCode
|
||||
Reference in New Issue
Block a user