forked from faasm/faabric
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/main'
# Conflicts: # .env # VERSION # bin/workon.sh # cmake/ExternalProjects.cmake # docker/faabric-base.dockerfile # docker/faabric.dockerfile # include/faabric/endpoint/FaabricEndpoint.h # include/faabric/endpoint/FaabricEndpointHandler.h # src/endpoint/FaabricEndpoint.cpp # src/endpoint/FaabricEndpointHandler.cpp # src/scheduler/Scheduler.cpp # src/transport/MessageEndpoint.cpp # tasks/docker.py # tests/test/endpoint/test_handler.cpp
- Loading branch information
Showing
25 changed files
with
357 additions
and
203 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -109,6 +109,7 @@ dkms.conf | |
__pycache__/ | ||
*.pyc | ||
venv/ | ||
venv-bm/ | ||
*.egg-info/ | ||
|
||
conan-profile-user.txt |
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,33 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
THIS_DIR=$(dirname $(readlink -f $0)) | ||
PROJ_ROOT=${THIS_DIR}/.. | ||
|
||
# Set different virtual environment paths so that these don't clash when | ||
# mounting the code in a development container | ||
VENV_PATH="undetected" | ||
if [[ -z "$FAABRIC_DOCKER" ]]; then | ||
VENV_PATH="${PROJ_ROOT}/venv-bm" | ||
else | ||
VENV_PATH="/code/faabric/venv" | ||
fi | ||
|
||
PIP=${VENV_PATH}/bin/pip3 | ||
|
||
function pip_cmd { | ||
source ${VENV_PATH}/bin/activate && ${PIP} "$@" | ||
} | ||
|
||
pushd ${PROJ_ROOT} >> /dev/null | ||
|
||
if [ ! -d ${VENV_PATH} ]; then | ||
python3 -m venv ${VENV_PATH} | ||
fi | ||
|
||
pip_cmd install -U pip | ||
pip_cmd install -U setuptools wheel | ||
pip_cmd install -r requirements.txt | ||
|
||
popd >> /dev/null |
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,6 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
# Wrapper script for running invoke in virtual env | ||
|
||
source bin/workon.sh && inv $@ |
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
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
Oops, something went wrong.