Skip to content

Commit

Permalink
C# node: Add Dockerfile for ARM-based Mac
Browse files Browse the repository at this point in the history
Created `Dockerfile.sharp.sources.from_local_dependencies.mac` for
ARM64. For macOS M1 the DF_SHARP should be set to this image and
NEOBENCH_LOGGER should be json-file as journald and syslog are not
supported by this platform.

Close #162
Close #159

Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
  • Loading branch information
AliceInHunterland committed Apr 16, 2024
1 parent 2694b14 commit aa0429a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ DF_BENCH=.docker/build/Dockerfile.bench
DF_SHARP=.docker/build/Dockerfile.sharp
#DF_SHARP=.docker/build/Dockerfile.sharp.sources.from_binaries
#DF_SHARP=.docker/build/Dockerfile.sharp.sources.from_local_dependencies
#DF_SHARP=.docker/build/Dockerfile.sharp.sources.from_local_dependencies.mac
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,10 @@ This way is slightly different from the previous one. Here we bring all necessar
`neo-project` folder and replace `PackageReferences` by `ProjectReferences` to the local projects.

1. Set `DF_SHARP` variable of [neo-bench Makefile](https://github.com/nspcc-dev/neo-bench/blob/master/Makefile#L18)
to `.docker/build/Dockerfile.sharp.sources.from_local_dependencies`.
to `.docker/build/Dockerfile.sharp.sources.from_local_dependencies`. For ARM-based Mac architecture set `DF_SHARP`
variable of [neo-bench Makefile](https://github.com/nspcc-dev/neo-bench/blob/master/Makefile#L24) to
`.docker/build/Dockerfile.sharp.sources.from_local_dependencies.mac` and set `NEOBENCH_LOGGER` variable of
[docker .env](https://github.com/nspcc-dev/neo-bench/blob/master/.docker/ir/.env) to `json-file` logger driver.

2. Set `CLIBRANCH`, `MODULESBRANCH`, `NEOVMBRANCH` and `NEOBRANCH` variables of
[C# node-sources Dockerfile](https://github.com/nspcc-dev/neo-bench/blob/master/.docker/build/Dockerfile.sharp.sources.from_local_dependencies#L23)
Expand Down Expand Up @@ -410,7 +413,7 @@ To add one more node configuration, provide all necessary information to the `no

Name|Description| Default |Example
---|---|---------|---
NEOBENCH_LOGGER|Container logging facility| `none` |`none`, `journald`, `syslog`
NEOBENCH_LOGGER|Container logging facility| `none` |`none`, `journald`, `syslog`,`json-file`
NEOBENCH_TC|Parameters passed to the `tc qdisc` (netem discipline) on container startup| |`delay 100ms`
NEOBENCH_TYPE|Type of the load| `NEO` |`NEO`, `GAS`
NEOBENCH_FROM_COUNT|Number of tx senders| `1` | `1`
Expand Down
2 changes: 1 addition & 1 deletion runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ while test $# -gt 0; do

case $_opt in
-h | --help) show_help ;;
-l | --log) export NEOBENCH_LOGGER=journald ;;
-l | --log) export NEOBENCH_LOGGER=json-file ;;
--vote) export NEOBENCH_VOTE=1 ;;

-v | --validators)
Expand Down

0 comments on commit aa0429a

Please sign in to comment.