Merge branch 'codespaces-python-quickstart' of https://github.com/2percentsilk/docs-1 into codespaces-python-quickstart
This commit is contained in:
@@ -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...**
|
1. Access the command palette (`shift command P` / `shift control P`), then start typing "dev container". Click **Codespaces: Add Development Container Configuration Files...**
|
||||||

|

|
||||||
3. For this example, click **Python 3**. In practice, you could select any container that’s 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 that’s specific to Python or a combination of tools such as Python 3 and PostgresSQL.
|
||||||

|

|
||||||
4. Click the recommended version of Python.
|
4. Click the recommended version of Python.
|
||||||

|

|
||||||
@@ -57,7 +57,7 @@ This example guides you through adding a `devcontainer.json` file from a templat
|
|||||||
|
|
||||||
#### Anatomy of your dev container
|
#### 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`
|
- `devcontainer.json`
|
||||||
- Dockerfile
|
- 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
|
# 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
|
### 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 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)
|
- [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)
|
- [Forwarding ports in your codespace](/codespaces/developing-in-codespaces/forwarding-ports-in-your-codespace)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user