Matches ctl version to upstream
This commit is contained in:
28
clitools/README
Normal file
28
clitools/README
Normal file
@@ -0,0 +1,28 @@
|
||||
## For development workflow
|
||||
|
||||
Run this on device
|
||||
```bash
|
||||
while true; do nc -l -p 1234 -e sh; done
|
||||
```
|
||||
|
||||
Run this script on the dev machine
|
||||
```bash
|
||||
#!/bin/bash
|
||||
make build
|
||||
|
||||
SIZE=$(wc -c < ./bin/ctl-linux-aarch64-dev)
|
||||
|
||||
(
|
||||
echo 'base64 -d > /var/ctl <<'"'"'EOF'"'"''
|
||||
pv -s "$SIZE" < ./bin/ctl-linux-aarch64-dev | base64
|
||||
echo 'EOF'
|
||||
echo 'chmod +x /var/ctl'
|
||||
echo '/var/ctl create config > /var/abc.yaml'
|
||||
echo "/var/ctl internal run-step $1 -c /var/abc.yaml 2>&1"
|
||||
) | nc 10.0.0.10 1234
|
||||
```
|
||||
|
||||
And use it like this
|
||||
```bash
|
||||
./send.sh start_crio
|
||||
```
|
||||
Reference in New Issue
Block a user