diff --git a/README.md b/README.md index 5386cc4..8f5090c 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ running [Faasm](https://github.com/faasm/faasm) cluster. To install `faasmctl` you need a working `pip` (virtual-)environment. Then: ```bash -pip install faasmctl==0.46.1 +pip install faasmctl==0.46.2 ``` ## Usage diff --git a/faasmctl/util/compose.py b/faasmctl/util/compose.py index 932a58b..2380537 100644 --- a/faasmctl/util/compose.py +++ b/faasmctl/util/compose.py @@ -155,7 +155,11 @@ def deploy_compose_cluster(faasm_checkout, workers, mount_source, ini_file): # In a compose cluster with SGX in HW mode, we need to manually set-up # the AESMD volume and socket for remote attestation (in a k8s deployment # on AKS, this is done automatically for us) - must_start_sgx_aesmd = "FAASM_WASM_VM" in env and env["FAASM_WASM_VM"] == "sgx" + is_sgx_deployment = "FAASM_WASM_VM" in env and env["FAASM_WASM_VM"] == "sgx" + is_hw_mode = ( + "FAASM_WORKER_IMAGE" in env and "worker-sgx-sim" not in "FAASM_WORKER_IMAGE" + ) + must_start_sgx_aesmd = is_sgx_deployment and is_hw_mode if must_start_sgx_aesmd: docker_cmd = [ diff --git a/faasmctl/util/version.py b/faasmctl/util/version.py index c3edc97..a9de8a8 100644 --- a/faasmctl/util/version.py +++ b/faasmctl/util/version.py @@ -1,4 +1,4 @@ -FAASMCTL_VERSION = "0.46.1" +FAASMCTL_VERSION = "0.46.2" def get_version(): diff --git a/pyproject.toml b/pyproject.toml index b30703c..a393365 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "faasmctl" -version = "0.46.1" +version = "0.46.2" authors = [ { name="Faasm Team", email="foo@bar.com" }, ]