1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
apiVersion: socialweb.computer/v1alpha1
kind: EphemeralInfra
metadata:
name: mixedprod
spec:
description: mixed prod run on one user-configured bidder, VM, deno sandbox and atirc agent VM for one hour
ttlSeconds: 3600
endWhen: Complete
contracts:
- name: vm1
state: Requested
vmName: einfra-mixedprod-vm1
bidderDids:
- REPLACE-BIDDER-DID
tunnels:
- tag: ssh
port: 22
transport: webrtc
sshAuthorizedKeys:
- ssh-ed25519 AAAAREPLACE-WITH-YOUR-PUBLIC-KEY you@laptop
userData: |
#cloud-config
runcmd:
- [sh, -c, "echo mixedprod-vm-ok > /root/mixedprod"]
- name: sbx1
state: Requested
computeKind: deno
bidderDids:
- REPLACE-BIDDER-DID
userData: |
const n = [1, 2, 3, 4].reduce((a, b) => a + b, 0);
console.log(`mixedprod-deno-ok sum=${n} on ${Deno.build.os}/${Deno.build.arch}`);
- name: agent1
state: Requested
vmName: einfra-mixedprod-agent1
bidderDids:
- REPLACE-BIDDER-DID
tunnels:
- tag: ssh
port: 22
transport: webrtc
agent:
envFile: /etc/atirc/atirc.env
secrets:
- contract: agent1
secretsRef:
mount: requester
path: contracts/einfra-mixedprod-agent1/secrets