2import { execSync } from 'child_process' 8export const ossThrowawayCodeservName = 'test-codeserv-peat' 9export const ossThrowawayHostname = 'test-codeserv-oss.hetzn1.demokluster.com' // derivedhn 11export const eptThrowawayOss = async ({klusterCfg, ocwBaseCfg, wcDomain, testCodeservHostname = undefined, ep}) => { 12 const sshKeyPath = ocwBaseCfg.sshKeyPath.replace('~', envHome) 13 if (!fs.existsSync(sshKeyPath)) { 14 console.log(`Generating SSH key: ${sshKeyPath}`) 15 execSync(`ssh-keygen -t ed25519 -f "${sshKeyPath}" -N "" -C "${klusterCfg.cluster_name}-gitssh"`, {stdio: 'pipe'}) 22 repoName: ossRepoName, 24 getLocalRepoPath: getOrBuildOssGitWorkingDir, 25 testCodeservName: ossThrowawayCodeservName, 27 testGitsshName: 'test-gitssh-peat', 28 gitsshNodePortNo: 30024,