|
1 |
| -# Ubuntu 18.04 + Git |
| 1 | +# Ubuntu 18.04 & Git |
2 | 2 |
|
3 | 3 | ## Summary
|
4 | 4 |
|
|
10 | 10 | | *Definition type* | Dockerfile |
|
11 | 11 | | *Languages, platforms* | Any |
|
12 | 12 |
|
13 |
| -## Usage |
| 13 | +## Using this definition with an existing folder |
14 | 14 |
|
15 |
| -[See here for information on using this definition with an existing project](../../README.md#using-a-definition). |
| 15 | +This definition does require any special steps to use. Just follow these steps: |
16 | 16 |
|
17 |
| -If you prefer, you can also just look through the contents of the `.devcontainer` folder to understand how to make changes to your own project. |
| 17 | +1. If this is your first time using a development container, please follow the [getting started steps](https://aka.ms/vscode-remote/containers/getting-started) to set up your machine. |
18 | 18 |
|
19 |
| -If you want to try out the test project instead, run **Remote-Container: Open Folder in Container...** in VS Code and select a cloned copy of the entire folder. You can then start the test program from Debug panel in VS Code. |
| 19 | +2. To use VS Code's copy of this definition: |
| 20 | + 1. Start VS Code and open your project folder. |
| 21 | + 2. Press <kbd>F1</kbd> select and **Remote-Containers: Create Container Configuration File...** from the command palette. |
| 22 | + 3. Select the Ubuntu 18.04 & Git definition. |
| 23 | + |
| 24 | +3. To use latest-and-greatest copy of this definition from the repository: |
| 25 | + 1. Clone this repository. |
| 26 | + 2. Copy the contents of `containers/ubuntu-18.04-git/.devcontainer` to the root of your project folder. |
| 27 | + 3. Start VS Code and open your project folder. |
| 28 | + |
| 29 | +4. After following step 2 or 3, the contents of the `.devcontainer` folder in your project can be adapted to meet your needs. |
| 30 | + |
| 31 | +5. Finally, press <kbd>F1</kbd> and run **Remote-Containers: Reopen Folder in Container** to start using the definition. |
| 32 | + |
| 33 | +## Testing the definition |
| 34 | + |
| 35 | +This definition includes some test code that will help you verify it is working as expected on your system. Follow these steps: |
| 36 | + |
| 37 | +1. If this is your first time using a development container, please follow the [getting started steps](https://aka.ms/vscode-remote/containers/getting-started) to set up your machine. |
| 38 | +2. Clone this repository. |
| 39 | +3. Start VS Code, press <kbd>F1</kbd>, and select **Remote-Containers: Open Folder in Container...** |
| 40 | +4. Select the `containers/ubuntu-18.04-git` folder. |
| 41 | +5. Press <kbd>ctrl</kbd>+<kbd>shift</kbd>+<kbd>`</kbd> and type the following command to verify installation: `apt-get update && apt-get install -y lsb-release && git --version && lsb_release -a` |
| 42 | +6. After lsb_release installs, you should see the Git version and details about the version of Linux in the container. |
20 | 43 |
|
21 | 44 | ## License
|
22 | 45 |
|
23 | 46 | Copyright (c) Microsoft Corporation. All rights reserved.
|
24 | 47 |
|
25 |
| -Licensed under the MIT License. See [LICENSE](../../LICENSE). |
| 48 | +Licensed under the MIT License. See [LICENSE](https://github.com/Microsoft/vscode-dev-containers/blob/master/LICENSE) |
0 commit comments