阿白 on Nostr: nostcat 的安装方法不正确 ,参考 https://github.com/blakejakopovic/nostcat ...
nostcat 的安装方法不正确 ,参考
https://github.com/blakejakopovic/nostcat :
Using Cargo to install (requires ~/.cargo/bin to be in PATH)
$ cargo install nostcat
Building from source (may be unstable)
$ git clone
https://github.com/blakejakopovic/nostcat$ cargo build --release
Running inside a Docker image
$ docker build -t nostcat .
# Run the the docker image as an executable
$ echo '["REQ", "RAND", {"kinds": [1], "limit": 2}]' | docker run --rm -i nostcat wss://relay.damus.io
Published at
2023-05-14 17:39:15Event JSON
{
"id": "c8b51053de0cc8eb5a30ced132b81a8e8e72cf6aac18e0f7f3786f7b816ff176",
"pubkey": "c62408c9cbfddcc8d0e37a34647cd7c50482a4b0c9b5131bfa5717a4fe994f2b",
"created_at": 1684078755,
"kind": 1,
"tags": [
[
"p",
"5c10ed0678805156d39ef1ef6d46110fe1e7e590ae04986ccf48ba1299cb53e2"
],
[
"p",
"8b928bf75edb4ddffe2800557ffe7e5e2b07c5d5102f97d1955f921585938201"
],
[
"p",
"c62408c9cbfddcc8d0e37a34647cd7c50482a4b0c9b5131bfa5717a4fe994f2b"
],
[
"e",
"c63a3fd8e87cb28e732d45827dc3e4dee60004808127226bf28b8836647b521b",
"",
"root"
],
[
"e",
"337d7e0173ace1fbacad0a1822910d1162a8988690a66542e89ce6a57932af96",
"",
"reply"
]
],
"content": "nostcat 的安装方法不正确 ,参考 https://github.com/blakejakopovic/nostcat :\n\nUsing Cargo to install (requires ~/.cargo/bin to be in PATH)\n$ cargo install nostcat\n\nBuilding from source (may be unstable)\n$ git clone https://github.com/blakejakopovic/nostcat\n$ cargo build --release\n\nRunning inside a Docker image\n$ docker build -t nostcat .\n# Run the the docker image as an executable\n$ echo '[\"REQ\", \"RAND\", {\"kinds\": [1], \"limit\": 2}]' | docker run --rm -i nostcat wss://relay.damus.io",
"sig": "374642755c8fa1e942db3fdc0cc04859487e752fab02c532a8dda4f01b16d353fc63a049151df7eab925735a1e5e01eea0d637ee178d514783dbe44f5c182129"
}