1
0
mirror of synced 2025-12-19 18:10:59 -05:00

Merge branch 'codespaces-python-quickstart' of https://github.com/2percentsilk/docs-1 into codespaces-python-quickstart

This commit is contained in:
Allison Weins
2021-05-04 23:27:36 +00:00
committed by GitHub

View File

@@ -46,7 +46,7 @@ This example guides you through adding a `devcontainer.json` file from a templat
1. Access the command palette (`shift command P` / `shift control P`), then start typing "dev container". Click **Codespaces: Add Development Container Configuration Files...**
!["Codespaces: Add Development Container Configuration Files..." in the command palette](/assets/images/help/codespaces/add-prebuilt-container-command.png)
3. For this example, click **Python 3**. In practice, you could select any container thats specific to Node or a combination of tools such as Python 3 and PostgresSQL.
3. For this example, click **Python 3**. In practice, you could select any container thats specific to Python or a combination of tools such as Python 3 and PostgresSQL.
![Select Python option from the list](/assets/images/help/codespaces/add-python-prebuilt-container.png)
4. Click the recommended version of Python.
![Python version selection](/assets/images/help/codespaces/add-python-version.png)
@@ -57,7 +57,7 @@ This example guides you through adding a `devcontainer.json` file from a templat
#### Anatomy of your dev container
Adding the Node.js dev container template adds a `.devcontainer` folder to the root of your project's repository with the following files:
Adding the Python dev container template adds a `.devcontainer` folder to the root of your project's repository with the following files:
- `devcontainer.json`
- Dockerfile
@@ -152,7 +152,7 @@ RUN if [ "${INSTALL_NODE}" = "true" ]; then su vscode -c "umask 0002 && . /usr/l
# RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g <your-package-here>" 2>&1
```
You can use the Dockerfile to add additional container layers to specify OS packages, node versions, or global packages we want included in our Dockerfile.
You can use the Dockerfile to add additional container layers to specify OS packages, node versions, or global packages we want included in our container.
### Step 3: Modify your devcontainer.json file
@@ -219,4 +219,3 @@ You should now be ready start developing your Python project in {% data variable
- [Managing encrypted secrets for {% data variables.product.prodname_codespaces %}](/codespaces/working-with-your-codespace/managing-encrypted-secrets-for-codespaces)
- [Managing GPG verification for {% data variables.product.prodname_codespaces %}](/codespaces/working-with-your-codespace/managing-gpg-verification-for-codespaces)
- [Forwarding ports in your codespace](/codespaces/developing-in-codespaces/forwarding-ports-in-your-codespace)