From 504a59262ed28423b4c33261522868145631a7ce Mon Sep 17 00:00:00 2001 From: David Perl Date: Mon, 11 Nov 2024 15:41:39 +0000 Subject: [PATCH] update readme with container info and test with default values --- README.md | 10 ++++++++-- tests/test_bindings.py | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 642f428..c3421db 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,12 @@ pybind11-stubgen rtc6_fastcs.bindings.rtc6_bindings -o src ruff format . ``` -# using devcontainer on RH7 +# developing in the container over ssh -manually build the container with `` +At diamond the default devcontainer settings result in some permission issues when run over ssh, but you can build the container and develop in it manually + +manually build the container with `podman build -t rtc6-fastcs-dev --target=developer .` +and run it with `podman run -it --net=host --security-opt=label=disable --mount=type=bind,source=/scratch/ziq44869/rtc6-fastcs/,destination=/workspaces rtc6-fastcs-dev` +then connect vscode to the laser lab workstation with `remote:ssh` and attach to the running container from the `remote:containers` view +the first time for a running container you will need to install the relevant extensions, run `pip install -e .[dev]`, and `rtc6-fastcs install-library` or the `install-library.sh` script from the repo +when everything is set up, `test_connect()` from `test_bindings.py` should pass diff --git a/tests/test_bindings.py b/tests/test_bindings.py index 9fd5742..37d33c3 100644 --- a/tests/test_bindings.py +++ b/tests/test_bindings.py @@ -52,4 +52,4 @@ def test_connection_exception(): def test_connect(): from rtc6_fastcs.bindings import rtc6_bindings as bindings - bindings.connect("123.123.123.123", "/foo/bar.dat", "/foo/bar.dat") + bindings.connect("172.23.17.192", "./rtc6_files/program_files", "./rtc6_files/correction_files/Cor_1to1.ct5")