-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2029 from fractal-analytics-platform/2018-cleanup…
…-task-activity-templates Cleanup task-activity templates
- Loading branch information
Showing
11 changed files
with
172 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 0 additions & 7 deletions
7
...erver/tasks/v2/templates/_4_pip_freeze.sh → ...server/tasks/v2/templates/3_pip_freeze.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
fractal_server/tasks/v2/templates/5_pip_install_from_freeze.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
set -e | ||
|
||
write_log(){ | ||
TIMESTAMP=$(date -u +"%Y-%m-%dT%H:%M:%SZ") | ||
echo "[collect-task, $TIMESTAMP] $1" | ||
} | ||
|
||
# Variables to be filled within fractal-server | ||
PACKAGE_ENV_DIR=__PACKAGE_ENV_DIR__ | ||
PIP_FREEZE_FILE=__PIP_FREEZE_FILE__ | ||
FRACTAL_MAX_PIP_VERSION=__FRACTAL_MAX_PIP_VERSION__ | ||
|
||
TIME_START=$(date +%s) | ||
|
||
VENVPYTHON=${PACKAGE_ENV_DIR}/bin/python | ||
|
||
# Upgrade `pip` and install `setuptools` | ||
write_log "START upgrade pip and install setuptools" | ||
"$VENVPYTHON" -m pip install --no-cache-dir "pip<=${FRACTAL_MAX_PIP_VERSION}" --upgrade | ||
"$VENVPYTHON" -m pip install --no-cache-dir setuptools | ||
write_log "END upgrade pip and install setuptools" | ||
echo | ||
|
||
# Install from pip-freeze file | ||
write_log "START installing requirements from ${PIP_FREEZE_FILE}" | ||
"$VENVPYTHON" -m pip install -r "${PIP_FREEZE_FILE}" | ||
write_log "END installing requirements from ${PIP_FREEZE_FILE}" | ||
echo | ||
|
||
# End | ||
TIME_END=$(date +%s) | ||
write_log "All good up to here." | ||
write_log "Elapsed: $((TIME_END - TIME_START)) seconds" | ||
write_log "Exit." | ||
echo |
27 changes: 0 additions & 27 deletions
27
fractal_server/tasks/v2/templates/_2_preliminary_pip_operations.sh
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.