Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 618a7eb0cf | |||
| 512f5ce14d |
+11
-16
@@ -169,24 +169,19 @@ cmd_arr+=("${Cmd}")
|
||||
SourceLoc=../${project}
|
||||
if [ "${project}" == "cvtt-rust" ]; then
|
||||
|
||||
Cmd="cd ${dist_root}/${project}/"
|
||||
cmd_arr+=("${Cmd}")
|
||||
# cmd_arr+=("cargo build")
|
||||
cmd_arr+=("cargo build --release")
|
||||
cmd_arr+=("mkdir -p ./dist/release")
|
||||
pushd ${dist_root}/${project}/
|
||||
rust_bins=$(rust_binaries)
|
||||
rust_libs=$(rust_libraries)
|
||||
popd
|
||||
for bin in ${rust_bins[@]}; do
|
||||
cmd_arr+=("cp target/release/${bin} ./dist/release")
|
||||
done
|
||||
for lb in ${rust_libs[@]}; do
|
||||
cmd_arr+=("cp target/release/${lb} ./dist/release")
|
||||
done
|
||||
cmd_arr+=("cd ${prj_dir}")
|
||||
|
||||
cmd_arr+=("mkdir -p ${prj_dir}/dist/release")
|
||||
cmd_arr+=("cp release_version.txt ./dist/release")
|
||||
|
||||
SourceLoc=../${project}/dist/release
|
||||
jq_cmd="jq '.packages[] | select(.targets[].kind[] == \"bin\") | .name'"
|
||||
apps=$(cargo metadata --no-deps --format-version 1 --manifest-path=${prj_dir}/Cargo.toml | eval $jq_cmd | uniq)
|
||||
for app in ${apps[@]}; do
|
||||
app=${app//\"/} # remove quotes
|
||||
cmd_arr+=("cargo install --root ${prj_dir}/dist/release --path ${prj_dir}/apps/${app}")
|
||||
done
|
||||
|
||||
SourceLoc=${prj_dir}/dist/release
|
||||
fi
|
||||
|
||||
dist_path="${dist_root}/${project}/${release_version}"
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
1.7.9,build for cvtt-rust
|
||||
1.8.2,md eqty checklist to use new structure
|
||||
|
||||
@@ -7,7 +7,6 @@ usage() {
|
||||
}
|
||||
|
||||
RootDir="${HOME}/prod"
|
||||
# RootDir=/home/oleg/develop/cvtt2 ###### D E B U G
|
||||
|
||||
export PYTHONPATH=${RootDir}
|
||||
|
||||
@@ -15,28 +14,33 @@ StatusChannel="MD-Status"
|
||||
Sender=${RootDir}/ops/utils/send_mmost.sh
|
||||
|
||||
# ----- For DEBUGGING
|
||||
# Sender=cat
|
||||
# StatusChannel=
|
||||
# RootDir=/home/oleg/develop/cvtt2 ###### D E B U G
|
||||
# Sender=cat #### D E B U G
|
||||
# StatusChannel= #### D E B U G
|
||||
|
||||
run_checklist() {
|
||||
|
||||
|
||||
yr=$(date -d 'yesterday' '+%Y')
|
||||
|
||||
CheckSymbols="A/AAPL N/NVDA M/META"
|
||||
declare -A Commands
|
||||
Commands["homestore"]="ssh cvtt@homestore.cvtt.vpn ls -l /works/cvtt/md_archive/equity/alpaca_md/A/AAPL/${yr} | tail -3"
|
||||
Commands["homestore"]+="; echo"
|
||||
Commands["homestore"]+="; ssh cvtt@homestore.cvtt.vpn ls -l /works/cvtt/md_archive/equity/alpaca_md/N/NVDA/${yr} | tail -3"
|
||||
Commands["homestore"]=""
|
||||
for sym in ${CheckSymbols}; do
|
||||
Commands["homestore"]+="ssh cvtt@homestore.cvtt.vpn ls -l /works/cvtt/md_archive/equity/alpaca_md/${yr}/${sym} | tail -3; "
|
||||
done
|
||||
Commands["homestore"]+="echo"
|
||||
|
||||
Commands["cloud21"]="ssh cvtt@cloud21.cvtt.vpn ls -l /opt/store/cvtt/md_archive/equity/alpaca_md/A/AAPL/${yr} | tail -3"
|
||||
Commands["cloud21"]+="; echo"
|
||||
Commands["cloud21"]+="; ssh cvtt@cloud21.cvtt.vpn ls -l /opt/store/cvtt/md_archive/equity/alpaca_md/N/NVDA/${yr} | tail -3"
|
||||
Commands["cloud21"]=""
|
||||
for sym in ${CheckSymbols}; do
|
||||
Commands["cloud21"]+="ssh cvtt@cloud21.cvtt.vpn ls -l /opt/store/cvtt/md_archive/equity/alpaca_md/${yr}/${sym} | tail -3; "
|
||||
done
|
||||
Commands["cloud21"]+="echo"
|
||||
|
||||
Commands["gpushnik"]="ssh oleg@gpushnik.cvtt.vpn 'ls -l /opt/jupyter_gpu/data/eqty_md | tail -10'"
|
||||
|
||||
for name in $(printf "%s\n" "${!Commands[@]}" | sort); do
|
||||
Cmd=${Commands[${name}]}
|
||||
echo "------- ${name}"
|
||||
Cmd=${Commands[${name}]}
|
||||
echo ${Cmd}
|
||||
eval ${Cmd}
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user