diff --git a/tutorial/3-1-configure-vscode.md b/tutorial/3-1-configure-vscode.md index a2586142f1ca18897c25168c610fcecb0ea3ebcd..10493ce225d67043bcfcf9914905f19d270f060f 100644 --- a/tutorial/3-1-configure-vscode.md +++ b/tutorial/3-1-configure-vscode.md @@ -75,3 +75,18 @@ Host TFS-VM ``` - Save the file - From now, VSCode will use the identity file to connect to the TFS-VM instead of the user's password. + + +## 3.1.5. Install VSCode Python Extension (in VSCode server) +This step installs Python extensions in VSCode server running in the VM. + +- In VSCode (connected to the VM), click left button "Extensions" +- Search "Python" extension in the extension Marketplace. +- Install official "Python" extension released by Microsoft. + - By default, since you're connected to the VM, it will be installed in the VSCode server running in the VM. + +- In VSCode (connected to the VM), click left button "Explorer" +- Click "Ctrl+Alt+P" and type "Python: Select Interpreter". Select option "Python: 3.9.13 64-bit ('tfs')" + +in terminal: set python path to be used by VSCode: +`echo "PYTHONPATH=./src" > ~/tfs-ctrl/.env` diff --git a/tutorial/3-2-develop-cth.md b/tutorial/3-2-develop-cth.md index 983e862d7c5e0ba06583739f797062ff9b9b32fc..eda70c9e8c411c8cc6a0ed0832f573ca787962ca 100644 --- a/tutorial/3-2-develop-cth.md +++ b/tutorial/3-2-develop-cth.md @@ -16,3 +16,22 @@ docker build -t "context:lgr-test" -f ./context/Dockerfile . Run by hand: docker run --rm --name lgr-test -it --env "DB_BACKEND=inmemory" --entrypoint /bin/bash context:lgr-test + + +## Expose gRPC ports through Ingress Controller +source `my_deploy.sh` +run script `./expose_ingress_grpc.sh` + +to test: +sudo apt-get install nmap +nmap -p 1010 127.0.0.1 # test if context is reachable +should retrieve something like: +$ nmap -p 1010 127.0.0.1 +Starting Nmap 7.80 ( https://nmap.org ) at 2022-07-29 15:06 UTC +Nmap scan report for localhost (127.0.0.1) +Host is up (0.00035s latency). + +PORT STATE SERVICE +1010/tcp open surf + +Nmap done: 1 IP address (1 host up) scanned in 0.07 seconds