Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
23f1d46
Reworked on logic for RUN_BUILD and RUN_BUILD_CACHELESS to use a sing…
aveeyan Jan 28, 2024
cdba7a9
Renamed variables for print_test_array(arr) from t_varname -> varname
aveeyan Jan 28, 2024
a59a9c0
Merge branch 'main' into aviyan-dev
aveeyan Jan 30, 2024
ad35bb7
Replaced rm -rf with force move to
aveeyan Jan 31, 2024
f15c10a
Merge branch 'main' into aviyan-dev (2024-02-03)
aveeyan Feb 3, 2024
d61cc71
Renamed trash directory from _trash-{date} to _temp-trash-{date}
aveeyan Feb 3, 2024
80c6e91
Modified tests such that it returns a bool-type value (True=0, False=…
aveeyan Feb 8, 2024
d6aa35c
(EXPERIMENTAL) Reverted back to using t_ prefix for variables of prin…
aveeyan Feb 8, 2024
1d92e65
Added "move to trash dir if PWD in TMP" at the end of test
aveeyan Feb 10, 2024
8205668
Refined Global setup; Added conditional-trash at end; Commented copy-…
aveeyan Feb 10, 2024
304db8d
Added newer test standards (trashdir, refined global setup); Commente…
aveeyan Feb 10, 2024
0e5a9f2
Added examples for conditional-echo
aveeyan Feb 11, 2024
6e4237b
Added conditional-echo and reworked on Global Setup
aveeyan Feb 11, 2024
e86ece4
Merge branch 'main' into aviyan-dev (2024-02-11)
aveeyan Feb 11, 2024
554d4aa
Added conditional-echo for cell 8
aveeyan Feb 14, 2024
504f35b
Added conditional echo for asctime, commaize, numeric suffixes; Remov…
aveeyan Feb 14, 2024
105a47a
Reworked on issue: Test halted at Cell 17
aveeyan Feb 16, 2024
bee4811
Work in Progress: Added conditional echo upto cell 34
aveeyan Feb 16, 2024
32ba720
Merge remote-tracking branch 'origin/main' into aviyan-dev (2024-04-03)
aveeyan Apr 3, 2024
f1a9687
Removed old/experimental builds for automate_ipynb.py
aveeyan Apr 3, 2024
9cdbbb2
Renamed automate_ipynb.py => automate_notebook.py; Toggled FORCE_RUN_…
aveeyan Apr 3, 2024
3a9a130
Rerun the test after installing csh and lynx; Commented cells using s…
aveeyan Apr 3, 2024
3e46e52
[WIP] Use of rename-with-file-date to create temporary testing direct…
aveeyan Apr 14, 2024
0fc8a73
Rework with temp_dir to use rename-with-file-date [CELL_5]; Added tes…
aveeyan Apr 16, 2024
43d8229
Rework with temp_dir to use rename-with-file-date; Added testuserpath…
aveeyan Apr 17, 2024
d0aea27
Added testuser alias in Global Setup (trace-setup-sorting-wrappers); …
aveeyan Apr 17, 2024
6ed3548
Modified the setup of temp_dir and removed instance of trash_dir; Com…
aveeyan Apr 17, 2024
d6c55d7
Uncommented the cell for testing hist alias; Updated the regex for pa…
aveeyan Apr 23, 2024
9db8e7b
Uncommented tests for count_bigrams.perl (Cell 38-40); Added test for…
aveeyan Apr 23, 2024
2fe7f17
Modified show-python-path command to check if the output consists of …
aveeyan Apr 26, 2024
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
44 changes: 29 additions & 15 deletions local-workflows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ set_option(){
shift
else
echo "Error: Missing argument for --file"
exit 1
usage
fi
;;
--json|-j)
Expand All @@ -124,7 +124,7 @@ set_option(){
shift
else
echo "Error: Missing argument for --json"
exit 1
usage
fi
;;
--help|-h)
Expand Down Expand Up @@ -182,20 +182,34 @@ if [ "${AUTO_REQS:-0}" = "1" ]; then
pipreqs --print "$LOCAL_REPO_DIR" > "$REQUIREMENTS"
fi

# Build the Docker image
if [ "${RUN_BUILD}" = "1" ]; then
echo "Building Docker image: $IMAGE_NAME"
# note: maldito docker doesn't support --env for build, just run
# Also, --build-arg misleading: see
# https://stackoverflow.com/questions/42297387/docker-build-with-build-arg-with-multiple-arguments
# shellcheck disable=SC2086
docker build --build-arg "GIT_BRANCH=$GIT_BRANCH" --platform linux/x86_64 $BUILD_OPTS --tag "$IMAGE_NAME" .
fi

# Build the Docker image cacheless (using --no-cache option)
if [ "${RUN_BUILD_CACHELESS}" = "1" ]; then
echo "Building Docker image (no-cache): $IMAGE_NAME"
docker build --build-arg "GIT_BRANCH=$GIT_BRANCH" --platform linux/x86_64 $BUILD_OPTS --no-cache -t "$IMAGE_NAME" .
## OLD: Use of seperate options for RUN_BUILD and RUN_BUILD_CACHELESS
# # Build the Docker image
# if [ "${RUN_BUILD}" = "1" ]; then
# echo "Building Docker image: $IMAGE_NAME"
# # note: maldito docker doesn't support --env for build, just run
# # Also, --build-arg misleading: see
# # https://stackoverflow.com/questions/42297387/docker-build-with-build-arg-with-multiple-arguments
# # shellcheck disable=SC2086
# docker build --build-arg "GIT_BRANCH=$GIT_BRANCH" --platform linux/x86_64 $BUILD_OPTS --tag "$IMAGE_NAME" .
# fi

# # Build the Docker image cacheless (using --no-cache option)
# if [ "${RUN_BUILD_CACHELESS}" = "1" ]; then
# echo "Building Docker image (no-cache): $IMAGE_NAME"
# docker build --build-arg "GIT_BRANCH=$GIT_BRANCH" --platform linux/x86_64 $BUILD_OPTS --no-cache -t "$IMAGE_NAME" .
# fi

if [ "${RUN_BUILD}" = "1" ] || [ "${RUN_BUILD_CACHELESS}" = "1" ]; then
echo "Building Docker Image: $IMAGE_NAME"
cache_option="--tag"

if [ "${RUN_BUILD_CACHELESS}" = "1" ]; then
echo " (cacheless option enabled)"
cache_option="--no-cache -t"
fi

docker build --build-arg "GIT_BRANCH=$GIT_BRANCH" --platform linux/x86_64 $BUILD_OPTS ${cache_option} "$IMAGE_NAME" .
fi


Expand Down
Loading