telackey
e06de5f4b7
Include payment in removal record
2024-08-20 18:19:22 -05:00
telackey
6e64b60295
Set payment address
2024-08-20 18:02:09 -05:00
telackey
3205478878
Undeploy
2024-08-20 16:58:34 -05:00
telackey
916724f1e2
Undeploy
2024-08-20 16:57:42 -05:00
telackey
56b010f512
Not a list
2024-08-20 14:58:06 -05:00
telackey
023a640252
lint
2024-08-20 11:41:34 -05:00
telackey
09c9214e4c
log
2024-08-19 19:39:43 -05:00
telackey
2f1cde16b7
Update in re cerc-io/laconic-registry-cli#78
2024-08-19 19:35:44 -05:00
telackey
b449d88b6c
Include payment info in deployment record.
2024-08-16 22:33:23 -05:00
telackey
07030044ec
get_tx()
2024-08-16 21:59:52 -05:00
telackey
0a9d68f4e8
WIP: Require payment for app deployment requests.
2024-08-16 21:51:15 -05:00
dboreham
e56da7dcc1
Add support for k8s pod to node affinity and taint toleration ( #917 )
...
Reviewed-on: cerc-io/stack-orchestrator#917
Reviewed-by: Thomas E Lackey <telackey@noreply.git.vdb.to >
Co-authored-by: David Boreham <david@bozemanpass.com >
Co-committed-by: David Boreham <david@bozemanpass.com >
2024-08-15 20:32:58 +00:00
telackey
60d34217f8
More logging for webapp deployment ( #923 )
...
```
cerc-webapp-deployer: ############ DEPLOY #############
cerc-webapp-deployer: 2024-08-15 02:13:08.321991 - - 0:00:00.000031 (step): Discovering deployment requests...
cerc-webapp-deployer: laconic -c /etc/config/laconic.yml registry record list --all --type ApplicationDeploymentRequest
cerc-webapp-deployer: 2024-08-15 02:13:08.815428 - - 0:00:00.493420 (step): Loading known requests from /srv/deployments/autodeploy.state...
cerc-webapp-deployer: 2024-08-15 02:13:08.815626 - - 0:00:00.000158 (step): BEGIN: Examining request bafyreigiltcdscwt7rqldnilo4ohrhgoulrlfceixde5ycewsym64sefgi
cerc-webapp-deployer: 2024-08-15 02:13:08.815645 - - 0:00:00.000008 (step): Skipping request bafyreigiltcdscwt7rqldnilo4ohrhgoulrlfceixde5ycewsym64sefgi, we've already seen it.
cerc-webapp-deployer: 2024-08-15 02:13:08.815653 - - 0:00:00.000005 (step): DONE Examining request bafyreigiltcdscwt7rqldnilo4ohrhgoulrlfceixde5ycewsym64sefgi with result SKIP.
cerc-webapp-deployer: 2024-08-15 02:13:08.815664 - - 0:00:00.000005 (step): BEGIN: Examining request bafyreicoxippgdwab6cz72py4rgv63rvvbsea73y62hashlhqpcsxyfkue
cerc-webapp-deployer: 2024-08-15 02:13:08.815674 - - 0:00:00.000006 (step): Skipping request bafyreicoxippgdwab6cz72py4rgv63rvvbsea73y62hashlhqpcsxyfkue, we've already seen it.
cerc-webapp-deployer: 2024-08-15 02:13:08.815684 - - 0:00:00.000004 (step): DONE Examining request bafyreicoxippgdwab6cz72py4rgv63rvvbsea73y62hashlhqpcsxyfkue with result SKIP.
cerc-webapp-deployer: 2024-08-15 02:13:08.815692 - - 0:00:00.000005 (step): BEGIN: Examining request bafyreih3gt44pvahnbg7ag26mlk3iie4s5m5znhygajja5dcovheti72ne
cerc-webapp-deployer: 2024-08-15 02:13:08.815705 - - 0:00:00.000007 (step): Skipping request bafyreih3gt44pvahnbg7ag26mlk3iie4s5m5znhygajja5dcovheti72ne, we've already seen it.
cerc-webapp-deployer: 2024-08-15 02:13:08.815714 - - 0:00:00.000005 (step): DONE Examining request bafyreih3gt44pvahnbg7ag26mlk3iie4s5m5znhygajja5dcovheti72ne with result SKIP.
cerc-webapp-deployer: 2024-08-15 02:13:08.815724 - - 0:00:00.000004 (step): BEGIN: Examining request bafyreigjnbio47rug6x5tufzc6cwfcqpl3ck3xldzotrlz5bt663dh2pua
cerc-webapp-deployer: 2024-08-15 02:13:08.815733 - - 0:00:00.000005 (step): Skipping request bafyreigjnbio47rug6x5tufzc6cwfcqpl3ck3xldzotrlz5bt663dh2pua, we've already seen it.
cerc-webapp-deployer: 2024-08-15 02:13:08.815743 - - 0:00:00.000005 (step): DONE Examining request bafyreigjnbio47rug6x5tufzc6cwfcqpl3ck3xldzotrlz5bt663dh2pua with result SKIP.
cerc-webapp-deployer: 2024-08-15 02:13:08.815751 - - 0:00:00.000004 (step): BEGIN: Examining request bafyreihsfno4s6lkxcp5a7g7pjj7kklrp3xaqo57mr2pz76nk3h4jukayy
cerc-webapp-deployer: 2024-08-15 02:13:08.815761 - - 0:00:00.000006 (step): Skipping request bafyreihsfno4s6lkxcp5a7g7pjj7kklrp3xaqo57mr2pz76nk3h4jukayy, we've already seen it.
cerc-webapp-deployer: 2024-08-15 02:13:08.815770 - - 0:00:00.000005 (step): DONE Examining request bafyreihsfno4s6lkxcp5a7g7pjj7kklrp3xaqo57mr2pz76nk3h4jukayy with result SKIP.
cerc-webapp-deployer: 2024-08-15 02:13:08.815779 - - 0:00:00.000005 (step): BEGIN: Examining request bafyreicyfyj4ncmtuy5pain2rvc67v645cg2bbsiakizvhdiwvkx7asvdy
cerc-webapp-deployer: 2024-08-15 02:13:08.815791 - - 0:00:00.000007 (step): Skipping request bafyreicyfyj4ncmtuy5pain2rvc67v645cg2bbsiakizvhdiwvkx7asvdy, we've already seen it.
cerc-webapp-deployer: 2024-08-15 02:13:08.815800 - - 0:00:00.000004 (step): DONE Examining request bafyreicyfyj4ncmtuy5pain2rvc67v645cg2bbsiakizvhdiwvkx7asvdy with result SKIP.
cerc-webapp-deployer: 2024-08-15 02:13:08.815808 - - 0:00:00.000004 (step): Discovering existing app deployments...
cerc-webapp-deployer: laconic -c /etc/config/laconic.yml registry record list --all --type ApplicationDeploymentRecord
cerc-webapp-deployer: 2024-08-15 02:13:09.330655 - - 0:00:00.514858 (step): Discovering deployment removal and cancellation requests...
cerc-webapp-deployer: laconic -c /etc/config/laconic.yml registry record list --all --type ApplicationDeploymentRemovalRequest
cerc-webapp-deployer: 2024-08-15 02:13:09.825145 - - 0:00:00.494460 (step): Found 0 unsatisfied request(s) to process.
cerc-webapp-deployer: ############ DEPLOY SUCCESS #############
```
Reviewed-on: cerc-io/stack-orchestrator#923
Co-authored-by: Thomas E Lackey <telackey@bozemanpass.com >
Co-committed-by: Thomas E Lackey <telackey@bozemanpass.com >
v1.1.0-60d3421-202408150257
2024-08-15 02:57:47 +00:00
telackey
952389abb0
Add option to recreate deployments rather than update them. ( #920 )
...
cherry-pick from cerc-io/stack-orchestrator#912
Reviewed-on: cerc-io/stack-orchestrator#920
Reviewed-by: David Boreham <dboreham@noreply.git.vdb.to >
2024-08-14 20:14:40 +00:00
telackey
5c275aa622
Defensively handle errors examining app requests. ( #922 )
...
Related to cerc-io/webapp-deployment-status-api#10
There are two issues in that. One is that the output probably changed recently, whether in the client or server, where no matching record is found by ID (Note this is specific to `laconic record get --id <v>` and does not seem to apply to the similar command to retrieve a record by name, `laconic name resolve <n>`).
Rather than returning `[]` it is now returning `[ null ]`. This cause us to think there *was* an application record found, and we attempt to treat the `null` entry like an Application object. That's fixed by filtering out null responses, which is a good precaution for the deployer, though I think it makes sense to ask whether this new behavior by the client/server is correct. Seems suspicious.
The other issue is that all the defensive checks we had in place to deal with broken/bad AppDeploymentRequests were around the _build_. This error was coming much earlier, merely when parsing and examining the request to see if it needed to be handled at all.
I have now added similar defensive error handling around that portion of the code.
Reviewed-on: cerc-io/stack-orchestrator#922
Reviewed-by: zramsay <zramsay@noreply.git.vdb.to >
Co-authored-by: Thomas E Lackey <telackey@bozemanpass.com >
Co-committed-by: Thomas E Lackey <telackey@bozemanpass.com >
v1.1.0-5c275aa-202408141804
2024-08-14 18:04:31 +00:00
telackey
8576137557
Convert port to string. ( #919 )
...
The str type check doesn't work if the port is a ruamel.yaml.scalarstring.SingleQuotedScalarString or ruamel.yaml.scalarstring.DoubleQuotedScalarString
Reviewed-on: cerc-io/stack-orchestrator#919
Co-authored-by: Thomas E Lackey <telackey@bozemanpass.com >
Co-committed-by: Thomas E Lackey <telackey@bozemanpass.com >
2024-08-14 00:25:35 +00:00
dboreham
65c1cdf6b1
Fix crash if port has int type in yaml ( #918 )
...
Reviewed-on: cerc-io/stack-orchestrator#918
Reviewed-by: Thomas E Lackey <telackey@noreply.git.vdb.to >
Co-authored-by: David Boreham <david@bozemanpass.com >
Co-committed-by: David Boreham <david@bozemanpass.com >
2024-08-13 20:47:09 +00:00
dboreham
265699bc38
Allow to disable kind cluster management for testing ( #915 )
...
Reviewed-on: cerc-io/stack-orchestrator#915
Co-authored-by: David Boreham <david@bozemanpass.com >
Co-committed-by: David Boreham <david@bozemanpass.com >
v1.1.0-265699b-202408131748
2024-08-13 17:48:14 +00:00
dboreham
4a7670a5d6
Open the json-rpc port ( #916 )
...
Reviewed-on: cerc-io/stack-orchestrator#916
Co-authored-by: David Boreham <david@bozemanpass.com >
Co-committed-by: David Boreham <david@bozemanpass.com >
2024-08-13 17:47:56 +00:00
telackey
6087e1cd31
Copy config under a volume for Docker (similar to a ConfigMap for K8S). ( #914 )
...
This emulates the K8S ConfigMap behavior on Docker by using a regular volume.
If a directory exists under `config/` which matches a named volume, the contents will be copied to the volume on `create` (provided the destination volume is empty). That is, rather than a ConfigMap, it is essentially a "config volume".
For example, with a compose file like:
```
version: '3.7'
services:
caddy:
image: cerc/caddy-ethcache:local
restart: always
volumes:
- caddyconfig:/etc/caddy:ro
volumes:
caddyconfig:
```
And a directory:
```
❯ ls stack-orchestrator/config/caddyconfig/
Caddyfile
```
After `laconic-so deploy create --spec-file caddy.yml --deployment-dir /srv/caddy` there will be:
```
❯ ls /srv/caddy/data/caddyconfig
Caddyfile
```
Mounted at `/etc/caddy`
Reviewed-on: cerc-io/stack-orchestrator#914
Reviewed-by: David Boreham <dboreham@noreply.git.vdb.to >
Co-authored-by: Thomas E Lackey <telackey@bozemanpass.com >
Co-committed-by: Thomas E Lackey <telackey@bozemanpass.com >
v1.1.0-6087e1c-202408100232
2024-08-10 02:32:21 +00:00
telackey
1def279d26
Support multiple NodePorts, static NodePort mapping, and add 'replicas' spec option ( #913 )
...
NodePort example:
```
network:
ports:
caddy:
- 1234
- 32020:2020
```
Replicas example:
```
replicas: 2
```
This also adds an optimization for k8s where if a directory matching the name of a configmap exists in beneath config/ in the stack, its contents will be copied into the corresponding configmap.
For example:
```
# Config files in the stack
❯ ls stack-orchestrator/config/caddyconfig
Caddyfile Caddyfile.one-req-per-upstream-example
# ConfigMap in the spec
❯ cat foo.yml | grep config
...
configmaps:
caddyconfig: ./configmaps/caddyconfig
# Create the deployment
❯ laconic-so --stack ~/cerc/caddy-ethcache/stack-orchestrator/stacks/caddy-ethcache deploy create --spec-file foo.yml
# The files from beneath config/<config_map_name> have been copied to the ConfigMap directory from the spec.
❯ ls deployment-001/configmaps/caddyconfig
Caddyfile Caddyfile.one-req-per-upstream-example
```
Reviewed-on: cerc-io/stack-orchestrator#913
Reviewed-by: David Boreham <dboreham@noreply.git.vdb.to >
Co-authored-by: Thomas E Lackey <telackey@bozemanpass.com >
Co-committed-by: Thomas E Lackey <telackey@bozemanpass.com >
v1.1.0-1def279-202408090232
2024-08-09 02:32:06 +00:00
dboreham
64691bd206
Merge pull request 'Allow gentx-files to be omitted' ( #911 ) from dboreham/allow-zero-gentx into main
...
Reviewed-on: cerc-io/stack-orchestrator#911
2024-08-07 20:13:40 +00:00
dboreham
aef5986135
Allow gentx-files to be omitted
2024-08-07 14:11:06 -06:00
dboreham
6f8f0340d3
Merge pull request 'Add stage 1 support' ( #910 ) from dboreham/stage1-support into main
...
Reviewed-on: cerc-io/stack-orchestrator#910
2024-08-07 17:44:28 +00:00
dboreham
7590d6e237
Add stage 1 support
2024-08-07 11:28:10 -06:00
dboreham
573f99dbbe
Listen on 0.0.0.0 ( #909 )
...
Reviewed-on: cerc-io/stack-orchestrator#909
Co-authored-by: David Boreham <david@bozemanpass.com >
Co-committed-by: David Boreham <david@bozemanpass.com >
v1.1.0-573f99d-202408021406
2024-08-02 14:06:06 +00:00
dboreham
8052c1c25e
Merge pull request 'Laconicd needs to be told its currency' ( #908 ) from dboreham/mainnet-laconic-specify-currency into main
...
Reviewed-on: cerc-io/stack-orchestrator#908
2024-08-02 03:10:34 +00:00
dboreham
a674d13493
Laconicd needs to be told its currency
2024-08-01 21:09:30 -06:00
roysc
0d4f4509c8
Remove Eth fixturenet workflows ( #906 )
...
Deletes the now-failing CI workflows for the old `fixturenet-eth` and `fixturenet-plugeth` stacks.
Part of cerc-io/stack-orchestrator#905 .
Reviewed-on: cerc-io/stack-orchestrator#906
Reviewed-by: David Boreham <dboreham@noreply.git.vdb.to >
v1.1.0-0d4f450-202408010228
2024-08-01 02:28:05 +00:00
dboreham
5af27b1b3a
Merge pull request 'Fix for sh as shell not bash' ( #907 ) from dboreham/fix-script-for-ubuntu into main
...
Reviewed-on: cerc-io/stack-orchestrator#907
v1.1.0-5af27b1-202407312039
2024-07-31 20:39:37 +00:00
dboreham
6c91b87348
Fix for sh as shell not bash
2024-07-31 14:30:53 -06:00
dboreham
7d18334953
Mainnet-laconic stack fixes for laconicd2 ( #904 )
...
Reviewed-on: cerc-io/stack-orchestrator#904
2024-07-31 13:51:28 +00:00
prathamesh
79c1c5ed99
Update fixturenet-laconicd stack to use alnt denom ( #902 )
...
Part of [laconicd testnet validator enrollment](https://www.notion.so/laconicd-testnet-validator-enrollment-6fc1d3cafcc64fef8c5ed3affa27c675 )
Reviewed-on: cerc-io/stack-orchestrator#902
Reviewed-by: ashwin <ashwin@noreply.git.vdb.to >
Reviewed-by: David Boreham <dboreham@noreply.git.vdb.to >
Co-authored-by: Prathamesh Musale <prathamesh.musale0@gmail.com >
Co-committed-by: Prathamesh Musale <prathamesh.musale0@gmail.com >
2024-07-31 13:27:54 +00:00
zramsay and zramsay
dfedd9e9ff
rename laconic-sdk to registry-sdk ( #897 )
...
Co-authored-by: zramsay <zach@bluecollarcoding.ca >
Reviewed-on: cerc-io/stack-orchestrator#897
Reviewed-by: ashwin <ashwin@noreply.git.vdb.to >
Co-authored-by: zramsay <zramsay@noreply.git.vdb.to >
Co-committed-by: zramsay <zramsay@noreply.git.vdb.to >
2024-07-31 08:01:02 +00:00
telackey
f64683f03b
Use a more flexible mechanism to inject config into next.config.js for runtime env. ( #901 )
...
Instead of attempting to rewriting the nextConfig file directly, inject a helper function to add the config we need.
Reviewed-on: cerc-io/stack-orchestrator#901
Reviewed-by: David Boreham <dboreham@noreply.git.vdb.to >
Co-authored-by: Thomas E Lackey <telackey@bozemanpass.com >
Co-committed-by: Thomas E Lackey <telackey@bozemanpass.com >
2024-07-31 03:22:23 +00:00
telackey
913c3a8557
Back to v2 now that we have a working webapp deployer build again. ( #896 )
...
Reviewed-on: cerc-io/stack-orchestrator#896
Reviewed-by: David Boreham <dboreham@noreply.git.vdb.to >
Co-authored-by: Thomas E Lackey <telackey@bozemanpass.com >
Co-committed-by: Thomas E Lackey <telackey@bozemanpass.com >
2024-07-27 18:59:42 +00:00
telackey
2f5b0cdd13
Revert recent laconicd deployment changes to restore production webapp deployer function. ( #895 )
...
Reviewed-on: cerc-io/stack-orchestrator#895
v1.1.0-2f5b0cd-202407271705
2024-07-27 17:04:03 +00:00
telackey
432bd4113d
881: Support next.config.mjs ( #890 )
...
Reviewed-on: cerc-io/stack-orchestrator#890
v1.1.0-432bd41-202407251648
2024-07-25 16:47:17 +00:00
prathamesh
b26698b756
Update fixturenet-laconicd stack for renaming changes ( #891 )
...
Part of [Rename laconic2d to laconicd](https://www.notion.so/Rename-laconic2d-to-laconicd-9028d0c020d24d1288e92ebcb773d7a7 )
Handles cerc-io/stack-orchestrator#882 , cerc-io/stack-orchestrator#889
Reviewed-on: cerc-io/stack-orchestrator#891
Co-authored-by: Prathamesh Musale <prathamesh.musale0@gmail.com >
Co-committed-by: Prathamesh Musale <prathamesh.musale0@gmail.com >
2024-07-25 08:50:15 +00:00
telackey
01deac78c4
880: Support new compile/generate syntax for next >=14.2.0 ( #886 )
...
Fix for cerc-io/stack-orchestrator#880 to support the next compile/generate syntax.
Reviewed-on: cerc-io/stack-orchestrator#886
Co-authored-by: Thomas E Lackey <telackey@bozemanpass.com >
Co-committed-by: Thomas E Lackey <telackey@bozemanpass.com >
v1.1.0-01deac7-202407242020
2024-07-24 20:20:16 +00:00
zramsay
40ccd47857
Merge pull request 'fixes for deployer & SP documentation' ( #887 ) from zach/cns-to-registry into main
...
Reviewed-on: cerc-io/stack-orchestrator#887
v1.1.0-40ccd47-202407240029
2024-07-24 00:29:14 +00:00
zramsay
80cff73344
crn --> lrn
2024-07-23 20:20:01 -04:00
zramsay
21b1270d27
fix lint
2024-07-23 20:16:16 -04:00
zramsay
008389dcd8
cns --> registry and other fixes
2024-07-23 20:10:06 -04:00
dboreham
c81fb9581a
Fix stack path check ( #877 )
...
Reviewed-on: cerc-io/stack-orchestrator#877
Co-authored-by: David Boreham <david@bozemanpass.com >
Co-committed-by: David Boreham <david@bozemanpass.com >
2024-07-19 17:16:40 +00:00
dboreham
83397bbae4
Enable cors in laconicd http services ( #875 )
...
Reviewed-on: cerc-io/stack-orchestrator#875
Co-authored-by: David Boreham <david@bozemanpass.com >
Co-committed-by: David Boreham <david@bozemanpass.com >
2024-07-15 05:23:18 +00:00
dboreham
17c21464ab
Merge pull request 'Work around explorer host name sensitivity' ( #874 ) from dboreham/fix-explorer-testnet-hostname into main
...
Reviewed-on: cerc-io/stack-orchestrator#874
v1.1.0-17c2146-202407150301
2024-07-15 02:56:33 +00:00
dboreham
7fb9ccdfd8
Work around explorer host name sensitivity
2024-07-14 20:51:11 -06:00
dboreham
2bad59dfcd
Add missing file to explorer container ( #873 )
...
Reviewed-on: cerc-io/stack-orchestrator#873
Co-authored-by: David Boreham <david@bozemanpass.com >
Co-committed-by: David Boreham <david@bozemanpass.com >
v1.1.0-2bad59d-202407141745
2024-07-14 17:40:35 +00:00
dboreham
13d04e9256
Integrate ping-pub explorer ( #872 )
...
Reviewed-on: cerc-io/stack-orchestrator#872
v1.1.0-13d04e9-202407131425
2024-07-13 14:24:23 +00:00