Skip to content

Commit

Permalink
alias binaries in hybrid mode
Browse files Browse the repository at this point in the history
  • Loading branch information
d3v-null committed Aug 20, 2024
1 parent 333bff2 commit 27925d7
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions demo/00_software.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
# shellcheck disable=SC2139

export docker_base="docker run --rm -it"
export docker_img=${docker_img:="mwatelescope/mwa-demo:latest"}
Expand All @@ -12,13 +13,13 @@ else
export docker_base="$docker_base -v \${PWD}:\${PWD} -v \${outdir}:\${outdir} -w \${PWD}"
fi

export birli="$docker_base --entrypoint=birli '${docker_img}'"
export giant_squid="$docker_base --entrypoint=giant-squid -e MWA_ASVO_API_KEY=\$MWA_ASVO_API_KEY '${docker_img}'"
export hyperdrive="$docker_base --entrypoint=hyperdrive -e MWA_BEAM_FILE=\$MWA_BEAM_FILE '${docker_img}'"
export jq="$docker_base --entrypoint=jq '${docker_img}'"
export wsclean="$docker_base --entrypoint=wsclean '${docker_img}'"
export python="$docker_base --entrypoint=python '${docker_img}'"
export plot_calqa="$docker_base --entrypoint=plot_calqa.py '${docker_img}'"
export plot_prepqa="$docker_base --entrypoint=plot_prepvisqa.py '${docker_img}'"
export run_calqa="$docker_base --entrypoint=run_calqa.py '${docker_img}'"
export run_prepqa="$docker_base --entrypoint=run_prepvisqa.py '${docker_img}'"
alias birli="$docker_base --entrypoint=birli '${docker_img}'"
alias giant_squid="$docker_base --entrypoint=giant-squid -e MWA_ASVO_API_KEY=\$MWA_ASVO_API_KEY '${docker_img}'"
alias hyperdrive="$docker_base --entrypoint=hyperdrive -e MWA_BEAM_FILE=\$MWA_BEAM_FILE '${docker_img}'"
alias jq="$docker_base --entrypoint=jq '${docker_img}'"
alias wsclean="$docker_base --entrypoint=wsclean '${docker_img}'"
alias python="$docker_base --entrypoint=python '${docker_img}'"
alias plot_calqa="$docker_base --entrypoint=plot_calqa.py '${docker_img}'"
alias plot_prepqa="$docker_base --entrypoint=plot_prepvisqa.py '${docker_img}'"
alias run_calqa="$docker_base --entrypoint=run_calqa.py '${docker_img}'"
alias run_prepqa="$docker_base --entrypoint=run_prepvisqa.py '${docker_img}'"

0 comments on commit 27925d7

Please sign in to comment.