Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion deployment/aliyun/deploy-rust-lob-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ for asset in "${assets[@]}"; do
done

BUNDLE_PATH="$TMP_DIR/deployment.tar"
tar -C "$SCRIPT_DIR" -cf "$BUNDLE_PATH" "${assets[@]}"
COPYFILE_DISABLE=1 tar -C "$SCRIPT_DIR" -cf "$BUNDLE_PATH" "${assets[@]}"
if command -v sha256sum >/dev/null 2>&1; then
BUNDLE_SHA256=$(sha256sum "$BUNDLE_PATH" | awk '{print $1}')
else
Expand Down Expand Up @@ -189,6 +189,7 @@ if ! id hftcollector >/dev/null 2>&1; then
--shell /usr/sbin/nologin hftcollector
fi
install -d -m 0755 /opt/monday/bin
install -d -m 0755 /opt/monday/releases
release_root=/opt/monday/releases/binance-lob-archiver
release_dir="$release_root/$artifact_sha256"
release_binary="$release_dir/binance-lob-archiver"
Expand Down
3 changes: 3 additions & 0 deletions deployment/aliyun/test-rust-lob-control-plane.sh
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,9 @@ grep -Fq 'binance-lob-archiver@usdm.service' "$CUTOVER"
grep -Fq 'legacy collector unit must be disabled before cutover' "$CUTOVER"
grep -Fq 'release_staging=$(mktemp -d "$release_root/.${artifact_sha256}.new.XXXXXX")' \
"$INSTALL_RELEASE"
grep -Fq 'COPYFILE_DISABLE=1 tar -C "$SCRIPT_DIR" -cf "$BUNDLE_PATH" "${assets[@]}"' \
"$INSTALL_RELEASE"
grep -Fq 'install -d -m 0755 /opt/monday/releases' "$INSTALL_RELEASE"
grep -Fq 'chmod 0755 "$release_staging"' "$INSTALL_RELEASE"
grep -Fq 'release directory must be traversable with mode 0755' "$INSTALL_RELEASE"
grep -Fq 'runuser -u hftcollector -- "$release_binary" --self-test' "$INSTALL_RELEASE"
Expand Down
Loading