Tweak installed extensions
This commit is contained in:
		@@ -8,6 +8,9 @@ FROM python:3
 | 
				
			|||||||
# Copy default endpoint specific user settings overrides into container to specify Python path
 | 
					# Copy default endpoint specific user settings overrides into container to specify Python path
 | 
				
			||||||
COPY .devcontainer/settings.vscode.json /root/.vscode-remote/data/Machine/settings.json
 | 
					COPY .devcontainer/settings.vscode.json /root/.vscode-remote/data/Machine/settings.json
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Install pylint
 | 
				
			||||||
 | 
					RUN pip install pylint
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Install git, process tools
 | 
					# Install git, process tools
 | 
				
			||||||
RUN apt-get update && apt-get -y install git procps
 | 
					RUN apt-get update && apt-get -y install git procps
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -21,9 +24,6 @@ WORKDIR /workspace
 | 
				
			|||||||
COPY .devcontainer/requirements.txt.temp requirements.txt* /workspace/
 | 
					COPY .devcontainer/requirements.txt.temp requirements.txt* /workspace/
 | 
				
			||||||
RUN if [ -f "requirements.txt" ]; then pip install -r requirements.txt && rm requirements.txt*; fi
 | 
					RUN if [ -f "requirements.txt" ]; then pip install -r requirements.txt && rm requirements.txt*; fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Expose port 5000 as the default web port
 | 
					 | 
				
			||||||
EXPOSE 5000
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# Clean up
 | 
					# Clean up
 | 
				
			||||||
RUN apt-get autoremove -y \
 | 
					RUN apt-get autoremove -y \
 | 
				
			||||||
    && apt-get clean -y \
 | 
					    && apt-get clean -y \
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -4,7 +4,6 @@
 | 
				
			|||||||
	"appPort": 9000,
 | 
						"appPort": 9000,
 | 
				
			||||||
	"context": "..",
 | 
						"context": "..",
 | 
				
			||||||
	"extensions": [
 | 
						"extensions": [
 | 
				
			||||||
		"ms-python.python",
 | 
							"ms-python.python"
 | 
				
			||||||
		"VisualStudioExptTeam.vscodeintellicode"
 | 
					 | 
				
			||||||
	]
 | 
						]
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -14,13 +14,13 @@ Some things to try:
 | 
				
			|||||||
   1. Open `server.py`
 | 
					   1. Open `server.py`
 | 
				
			||||||
   2. Try adding some code and check out the language features.
 | 
					   2. Try adding some code and check out the language features.
 | 
				
			||||||
2. **Terminal:** Press <kbd>ctrl</kbd>+<kbd>shift</kbd>+<kbd>\`</kbd> and type `uname` and or other Linux commands from the terminal window.
 | 
					2. **Terminal:** Press <kbd>ctrl</kbd>+<kbd>shift</kbd>+<kbd>\`</kbd> and type `uname` and or other Linux commands from the terminal window.
 | 
				
			||||||
2. **Build, Run, and Debug:**
 | 
					3. **Build, Run, and Debug:**
 | 
				
			||||||
   1. Open `sever.py`
 | 
					   1. Open `sever.py`
 | 
				
			||||||
   2. Add a breakpoint (e.g. on line 13).
 | 
					   2. Add a breakpoint (e.g. on line 13).
 | 
				
			||||||
   3. Press <kbd>F5</kbd> to launch the app in the container.
 | 
					   3. Press <kbd>F5</kbd> to launch the app in the container.
 | 
				
			||||||
   4. Once the breakpoint is hit, try hovering over variables, examining locals, and more.
 | 
					   4. Once the breakpoint is hit, try hovering over variables, examining locals, and more.
 | 
				
			||||||
   5. Continue, then open a local browser and go to `http://localhost:9000` and note you can connect to the server in the container
 | 
					   5. Continue, then open a local browser and go to `http://localhost:9000` and note you can connect to the server in the container
 | 
				
			||||||
3. **Forward another port:**
 | 
					4. **Forward another port:**
 | 
				
			||||||
   1. Stop debugging and remove the breakpoint.
 | 
					   1. Stop debugging and remove the breakpoint.
 | 
				
			||||||
   2. Open `sever.py`
 | 
					   2. Open `sever.py`
 | 
				
			||||||
   3. Change the server port to 5000. (`PORT = 5000`)
 | 
					   3. Change the server port to 5000. (`PORT = 5000`)
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -11,5 +11,5 @@ RequestHandler = http.server.SimpleHTTPRequestHandler
 | 
				
			|||||||
PORT = 5000
 | 
					PORT = 5000
 | 
				
			||||||
 | 
					
 | 
				
			||||||
with socketserver.TCPServer(("", PORT), RequestHandler) as httpd:
 | 
					with socketserver.TCPServer(("", PORT), RequestHandler) as httpd:
 | 
				
			||||||
    print("Server runnong on port", PORT)
 | 
					    print("Server running on port", PORT)
 | 
				
			||||||
    httpd.serve_forever()
 | 
					    httpd.serve_forever()
 | 
				
			||||||
		Reference in New Issue
	
	Block a user