scriptlets
parent
62cd1a6e8d
commit
5c4c765348
|
@ -0,0 +1,11 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -x
|
||||
|
||||
cartesi-machine-client 127.0.0.1:32600
|
||||
|
||||
exit
|
||||
|
||||
cartesi-machine-client <ip>:<port>
|
||||
cartesi-machine-client unix:<path>
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
#!/bin/bash
|
||||
|
||||
# [WARN ] Directory '/home/developer/src' does not exist.
|
||||
# [WARN ] Will not save downloaded tarballs to local storage.
|
||||
|
||||
# LOG
|
||||
mkdir -p ~/log
|
||||
exec > >(tee ~/log/spacecruft-ctsi-machine-emulator-sdk-build.log) 2>~/log/spacecruft-ctsi-machine-emulator-sdk-build.err
|
||||
|
||||
set -x
|
||||
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y build-essential automake libtool patchelf wget git libreadline-dev libboost-container-dev libboost-program-options-dev libboost-serialization-dev ca-certificates
|
||||
|
||||
cd ~/devel/machine-emulator-sdk
|
||||
git pull
|
||||
date
|
||||
time \
|
||||
make submodules && \
|
||||
make toolchain && \
|
||||
make emulator && \
|
||||
make rom && \
|
||||
make tests && \
|
||||
make fs && \
|
||||
make kernel && \
|
||||
echo done
|
||||
date
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -x
|
||||
|
||||
cd ~/devel/machine-manager
|
||||
|
||||
docker build . -t cartesi/machine-manager
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -x
|
||||
|
||||
cd ~/devel/machine-manager
|
||||
|
||||
docker run -p 50051:50051 -v $(pwd)/test-files:/root/host cartesi/machine-manager
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -x
|
||||
|
||||
DOCKERPS=`sudo docker ps | grep "cartesi/machine-manager" | cut -f 1 -d " "`
|
||||
|
||||
echo $DOCKERPS
|
||||
|
||||
sudo docker stop $DOCKERPS && sudo docker rm $DOCKERPS
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -x
|
||||
|
||||
/opt/cartesi/bin/cartesi-machine-server \
|
||||
--address 127.0.0.1:32600 \
|
||||
|
||||
|
||||
exit
|
||||
--socket-type tcp \
|
||||
Allowed options:
|
||||
-t [ --socket-type ] arg socket type to listen to, options are tcp and
|
||||
unix, mutually exclusive with address option
|
||||
-a [ --address ] arg unix path or ip:port to listen to, mutually
|
||||
exclusive with socket-type option
|
||||
-s [ --session-id ] arg session id of this instance, triggers reporting
|
||||
address to core-manager server
|
||||
-m [ --manager-address ] arg unix path or ip:port of the core-manager server,
|
||||
only used when providing a session-id
|
||||
|
||||
--session-id spacecruft-cartesi
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -x
|
||||
|
||||
cartesi-machine -i /bin/sh
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
#!/bin/bash
|
||||
|
||||
DOCKERPS=`sudo docker ps | grep "cartesi/noether" | cut -f 1 -d " "`
|
||||
echo "Attaching to $DOCKERPS"
|
||||
|
||||
echo "Hit CTRL-p then CTRL-q to exit"
|
||||
|
||||
sudo docker attach $DOCKERPS
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
sudo docker exec -it `sudo docker ps | grep "cartesi/noether" | cut -f 1 -d " "` "$@"
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
sudo cat /var/lib/docker/volumes/cartesi_wallet/_data/key
|
||||
echo
|
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
DOCKERPS=`sudo docker ps | grep "cartesi/noether" | cut -f 1 -d " "`
|
||||
DOCKERLOG=`docker inspect --format='{{.LogPath}}' $DOCKERPS`
|
||||
|
||||
echo $DOCKERPS
|
||||
echo $DOCKERLOG
|
||||
|
||||
sudo cat $DOCKERLOG
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
DOCKERPS=`sudo docker ps | grep "cartesi/noether" | cut -f 1 -d " "`
|
||||
DOCKERLOG=`docker inspect --format='{{.LogPath}}' $DOCKERPS`
|
||||
|
||||
echo $DOCKERPS
|
||||
echo $DOCKERLOG
|
||||
|
||||
sudo less -r $DOCKERLOG
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
DOCKERPS=`sudo docker ps | grep "cartesi/noether" | cut -f 1 -d " "`
|
||||
DOCKERLOG=`docker inspect --format='{{.LogPath}}' $DOCKERPS`
|
||||
|
||||
echo $DOCKERPS
|
||||
echo $DOCKERLOG
|
||||
|
||||
sudo tail -f $DOCKERLOG
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
sudo docker exec -it `sudo docker ps | grep "cartesi/noether" | cut -f 1 -d " "` /bin/sh
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
docker pull cartesi/noether; docker run -it --rm --name cartesi_noether -v cartesi_wallet:/root/.ethereum cartesi/noether --url https://eth.cartesi.io --wallet /root/.ethereum/key --create --verbose
|
||||
|
||||
|
Loading…
Reference in New Issue