Commit c81712b6 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Tutorial:

- added sections describing installation of Python Extension in VSCode
- added section describing how to export and test connectivity to services through gRPC
parent e215140a
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -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`
+19 −0
Original line number Diff line number Diff line
@@ -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