File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,9 @@ cargo build --release --target x86_64-unknown-linux-musl
2626
2727for docker
2828
29+ To build for other platforms, modify the TARGET_ARCH variable in ./docker/make.sh.
30+
31+ For example, with Raspbarry Pi 4, use TARGET_ARCH=aarch64-unknown-linux-gnu
2932``` bash
3033./docker/make.sh
3134```
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3+ TARGET_ARCH=" aarch64-unknown-linux-gnu"
34SCRIPT=$( readlink -f " $0 " )
45DIR=$( dirname " $SCRIPT " )
56VERSION=$( awk -F ' "' ' /^version/ {print $2}' " $DIR /../Cargo.toml" )
67
78# build
89cd " $DIR /.."
9- cargo build --release --target x86_64-unknown-linux-musl
10- cp " $DIR /../target/x86_64-unknown-linux-musl /release/kosync" " $DIR /kosync"
10+ cargo build --release --target " $TARGET_ARCH "
11+ cp " $DIR /../target/$TARGET_ARCH /release/kosync" " $DIR /kosync"
1112
1213# build docker
1314cd " $DIR "
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ use serde_json::json;
1313
1414pub const DEFAULT_ADDR : & str = "0.0.0.0:3000" ;
1515pub const DEFAULT_TREE_NAME : & str = "kosync" ;
16- pub const DEFAULT_DB_PATH : & str = "data /kosync" ;
16+ pub const DEFAULT_DB_PATH : & str = "/volume1/Cusanity/docker_data /kosync" ;
1717pub const FIELD_LEN_LIMIT : usize = 4096 ;
1818
1919#[ derive( Debug , Deserialize , Serialize ) ]
You can’t perform that action at this time.
0 commit comments