Skip to content

Commit 97ab48e

Browse files
authored
chore: update conan mount points for conan2 (#99)
* chore: update conan mount points for conan2 * fix: proto file generation based on conan2
1 parent d5362e5 commit 97ab48e

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ running [Faasm](https://github.com/faasm/faasm) cluster.
88
To install `faasmctl` you need a working `pip` (virtual-)environment. Then:
99

1010
```bash
11-
pip install faasmctl==0.50.0
11+
pip install faasmctl==0.51.0
1212
```
1313

1414
## Usage

faasmctl/bin/gen_proto_files.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,15 @@ def gen_proto_files(clean=False):
6363

6464
# Find the right protoc binary
6565
docker_exec_prefix = "docker exec {}".format(tmp_ctr_name)
66-
find_protoc_cmd = "{} bash -c 'find ~/.conan -name protoc'".format(
66+
find_protoc_cmd = "{} bash -c 'find ~/.conan2 -name protoc'".format(
6767
docker_exec_prefix
6868
)
6969
protoc_bin = (
7070
run(find_protoc_cmd, shell=True, capture_output=True)
7171
.stdout.decode("utf-8")
7272
.split("\n")
7373
)
74-
p_bin = [p_bin for p_bin in protoc_bin if "build_subfolder" in p_bin]
74+
p_bin = [p_bin for p_bin in protoc_bin if "bin" in p_bin]
7575
p_bin = p_bin[0].strip()
7676

7777
# Generate python protobuf files

faasmctl/util/compose.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,21 +39,21 @@ def get_compose_env_vars(faasm_checkout, mount_source, ini_file=None):
3939

4040
if mount_source:
4141
env["FAASM_BUILD_DIR"] = join(faasm_checkout, "dev/faasm/build")
42-
env["CONAN_CACHE_MOUNT_SOURCE"] = join(faasm_checkout, "dev/faasm/conan")
42+
env["CONAN_CACHE_MOUNT_SOURCE"] = join(faasm_checkout, "dev/faasm/conan2")
4343
env["FAASM_BUILD_MOUNT"] = "/build/faasm"
4444
env["FAASM_CODE_MOUNT"] = "/usr/local/code/faasm"
45-
env["FAASM_CONAN_MOUNT"] = "/root/.conan"
45+
env["FAASM_CONAN_MOUNT"] = "/root/.conan2"
4646
env["FAASM_LOCAL_MOUNT"] = "/usr/local/faasm"
4747
env["PLANNER_BUILD_MOUNT"] = env["FAASM_BUILD_MOUNT"]
4848
else:
4949
# FIXME: by using `./dev` in non-mounted clusters we make it impossible
5050
# to cleanly remove them (as ./dev is root-owned), so we can't rm -rf
5151
# the directory
5252
env["FAASM_BUILD_DIR"] = join(faasm_checkout, "dev/faasm/build")
53-
env["CONAN_CACHE_MOUNT_SOURCE"] = join(faasm_checkout, "dev/faasm/conan")
53+
env["CONAN_CACHE_MOUNT_SOURCE"] = join(faasm_checkout, "dev/faasm/conan2")
5454
env["FAASM_BUILD_MOUNT"] = "/host_dev/build"
5555
env["FAASM_CODE_MOUNT"] = "/host_dev/code"
56-
env["FAASM_CONAN_MOUNT"] = "/host_dev/conan"
56+
env["FAASM_CONAN_MOUNT"] = "/host_dev/conan2"
5757
env["FAASM_LOCAL_MOUNT"] = "/host_dev/faasm-local"
5858
env["PLANNER_BUILD_MOUNT"] = "/build/faabric/static"
5959

faasmctl/util/faasm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from os import environ
22

3-
FAASM_VERSION = "0.29.0"
3+
FAASM_VERSION = "0.32.0"
44

55

66
def get_version():

faasmctl/util/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FAASMCTL_VERSION = "0.50.0"
1+
FAASMCTL_VERSION = "0.51.0"
22

33

44
def get_version():

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "faasmctl"
7-
version = "0.50.0"
7+
version = "0.51.0"
88
authors = [
99
{ name="Faasm Team", email="[email protected]" },
1010
]

0 commit comments

Comments
 (0)