Loading tutorial/3-1-configure-vscode.md +15 −0 Original line number Diff line number Diff line Loading @@ -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` tutorial/3-2-develop-cth.md +19 −0 Original line number Diff line number Diff line Loading @@ -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 Loading
tutorial/3-1-configure-vscode.md +15 −0 Original line number Diff line number Diff line Loading @@ -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`
tutorial/3-2-develop-cth.md +19 −0 Original line number Diff line number Diff line Loading @@ -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