- Place the file to directory
/etc/systemd/system/
- Customise line 21
--network streamr \
to match your Docker network or remove it to use the default network (not recommended) - Customise line 25
--volume /host/broker/config/dir:/root/.streamr:rw \
replace/host/broker/config/dir
with the directory of youbroker-config.json
file. - Current configuration exposes WebSocket plugin port 7170 to public internet. You may open other ports for plugins if you like. For example to publish MQTT port add:
--publish 1883:1883/tcp \
- Run
sudo systemctl enable /etc/systemd/system/streamr-broker-node.service
- Run
sudo systemctl start streamr-broker-node
- Check logs with
sudo journalctl -xefu streamr-broker-node
or if you havepino-pretty
installed usesudo journalctl -xefu streamr-broker-node | pino-pretty -t
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e -u -o pipefail | |
function usage() { | |
local name | |
name=$(basename "$0") | |
echo "$name: tail Docker container logs" 1>&2 | |
echo "Usage: $name [-h]" 1>&2 | |
echo " -h Show help" 1>&2 | |
echo "Example: $name" 1>&2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELENIUM_JAR_PATH=/usr/share/java/selenium-server-standalone.jar | |
CONDA=/usr/share/miniconda | |
GITHUB_WORKSPACE=/home/runner/work/io.github.***/io.github.*** | |
JAVA_HOME_11_X64=/usr/lib/jvm/adoptopenjdk-11-hotspot-amd64 | |
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_3fe28a69-5405-4735-a92b-a3dd7ce21bce | |
GITHUB_ACTION=env | |
JAVA_HOME=/usr/lib/jvm/adoptopenjdk-11-hotspot-amd64 | |
GITHUB_RUN_NUMBER=52 | |
GRADLE_HOME=/usr/share/gradle-7.2 | |
XDG_CONFIG_HOME=/home/runner/.config |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Images | Root Filesystems | Virtual Filesystems | Volumes | Temporary Filesystems | ||
---|---|---|---|---|---|---|
Host-Editable | Yes | No | Yes | Varied | No | |
Mutable | No | Yes | Yes | Yes | Yes | |
Persistent | Yes | No | Yes | Yes | No | |
Performance | High | High | Low-Medium | High | High | |
Ease of Use | Varied | Trivial | Trivial | Varied | Complex |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=== RUN TestAddition | |
=== RUN TestAddition/add | |
--- PASS: TestAddition (0.00s) | |
math_test.go:6: setup test case | |
--- PASS: TestAddition/add (0.00s) | |
math_test.go:13: setup sub test | |
math_test.go:15: teardown sub test | |
math_test.go:8: teardown test case | |
PASS | |
ok github.com/kare/go-unit-test-setup-teardown 0.012s |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package math | |
import "testing" | |
func setupTestCase(t *testing.T) func(t *testing.T) { | |
t.Log("setup test case") | |
return func(t *testing.T) { | |
t.Log("teardown test case") | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=== RUN TestAddition | |
=== RUN TestAddition/add | |
=== RUN TestAddition/minus | |
=== RUN TestAddition/zero | |
--- PASS: TestAddition (0.00s) | |
math_test.go:6: setup test case | |
--- PASS: TestAddition/add (0.00s) | |
math_test.go:13: setup sub test | |
math_test.go:15: teardown sub test | |
--- PASS: TestAddition/minus (0.00s) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package math | |
import "testing" | |
func TestAddition(t *testing.T) { | |
cases := []struct { | |
name string | |
a int | |
b int | |
expected int |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package math | |
func Sum(a, b int) int { | |
return a + b | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kkn% ps -ef | |
glenda 1 0:00 0:00 268K Await bootrc | |
glenda 3 0:00 0:00 0K Wakeme mouse | |
glenda 5 0:00 0:00 0K Wakeme alarm | |
glenda 7 0:00 0:00 188K Pread paqfs | |
glenda 9 0:00 0:00 128K Pread mntgen | |
glenda 14 0:00 0:00 136K Pread mntgen | |
glenda 18 0:00 0:00 116K Pread mntgen | |
glenda 30 0:00 0:00 0K Wakeme aoesweep | |
glenda 36 0:00 0:00 0K Wakeme rxmitproc |
NewerOlder