Tweak installed extensions

This commit is contained in:
Chuck Lantz
2019-04-19 14:40:02 -07:00
parent 03dc04cfbd
commit 9ec6f2a115
4 changed files with 7 additions and 8 deletions

View File

@@ -8,6 +8,9 @@ FROM python:3
# 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
# Install pylint
RUN pip install pylint
# Install git, process tools
RUN apt-get update && apt-get -y install git procps
@@ -21,9 +24,6 @@ WORKDIR /workspace
COPY .devcontainer/requirements.txt.temp requirements.txt* /workspace/
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
RUN apt-get autoremove -y \
&& apt-get clean -y \

View File

@@ -4,7 +4,6 @@
"appPort": 9000,
"context": "..",
"extensions": [
"ms-python.python",
"VisualStudioExptTeam.vscodeintellicode"
"ms-python.python"
]
}

View File

@@ -14,13 +14,13 @@ Some things to try:
1. Open `server.py`
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. **Build, Run, and Debug:**
3. **Build, Run, and Debug:**
1. Open `sever.py`
2. Add a breakpoint (e.g. on line 13).
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.
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.
2. Open `sever.py`
3. Change the server port to 5000. (`PORT = 5000`)

View File

@@ -11,5 +11,5 @@ RequestHandler = http.server.SimpleHTTPRequestHandler
PORT = 5000
with socketserver.TCPServer(("", PORT), RequestHandler) as httpd:
print("Server runnong on port", PORT)
print("Server running on port", PORT)
httpd.serve_forever()