Updated with latest definition
This commit is contained in:
		@@ -21,14 +21,14 @@ RUN apt-get update \
 | 
				
			|||||||
    && apt-get -y install --no-install-recommends apt-utils dialog 2>&1 \
 | 
					    && apt-get -y install --no-install-recommends apt-utils dialog 2>&1 \
 | 
				
			||||||
    #
 | 
					    #
 | 
				
			||||||
    # Verify git, needed tools installed
 | 
					    # Verify git, needed tools installed
 | 
				
			||||||
    && apt-get -y install git iproute2 procps lsb-release \
 | 
					    && apt-get -y install git openssh-client less iproute2 procps lsb-release \
 | 
				
			||||||
    #
 | 
					    #
 | 
				
			||||||
    # Install lldb, vadimcn.vscode-lldb VSCode extension dependencies
 | 
					    # Install lldb, vadimcn.vscode-lldb VSCode extension dependencies
 | 
				
			||||||
    && apt-get install -y lldb python3-minimal libpython3.7 \
 | 
					    && apt-get install -y lldb python3-minimal libpython3.7 \
 | 
				
			||||||
    #
 | 
					    #
 | 
				
			||||||
    # Install Rust components
 | 
					    # Install Rust components
 | 
				
			||||||
    && rustup update \
 | 
					    && rustup update 2>&1 \
 | 
				
			||||||
    && rustup component add rls rust-analysis rust-src rustfmt clippy \
 | 
					    && rustup component add rls rust-analysis rust-src rustfmt clippy 2>&1 \
 | 
				
			||||||
    #
 | 
					    #
 | 
				
			||||||
    # Create a non-root user to use if preferred - see https://aka.ms/vscode-remote/containers/non-root-user.
 | 
					    # Create a non-root user to use if preferred - see https://aka.ms/vscode-remote/containers/non-root-user.
 | 
				
			||||||
    && groupadd --gid $USER_GID $USERNAME \
 | 
					    && groupadd --gid $USER_GID $USERNAME \
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,29 +1,27 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
	"name": "Rust",
 | 
						"name": "Rust Sample",
 | 
				
			||||||
	"dockerFile": "Dockerfile",
 | 
						"dockerFile": "Dockerfile",
 | 
				
			||||||
	"runArgs": [ "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" ],
 | 
						"runArgs": [ "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" ],
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// Use 'settings' to set *default* container specific settings.json values on container create. 
 | 
						// Set *default* container specific settings.json values on container create.
 | 
				
			||||||
	// You can edit these settings after create using File > Preferences > Settings > Remote.
 | 
					 | 
				
			||||||
	"settings": { 
 | 
						"settings": { 
 | 
				
			||||||
		"terminal.integrated.shell.linux": "/bin/bash",
 | 
							"terminal.integrated.shell.linux": "/bin/bash",
 | 
				
			||||||
		"lldb.executable": "/usr/bin/lldb"
 | 
							"lldb.executable": "/usr/bin/lldb"
 | 
				
			||||||
	},
 | 
						},
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// Use 'appPort' to create a container with published ports. If the port isn't working, be sure
 | 
						// Add the IDs of extensions you want installed when the container is created.
 | 
				
			||||||
	// your server accepts connections from all interfaces (0.0.0.0 or '*'), not just localhost.
 | 
					 | 
				
			||||||
	// "appPort": [],
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	// Uncomment the next line to run commands after the container is created.
 | 
					 | 
				
			||||||
	// "postCreateCommand": "rustc --version",
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	// Comment out the next line to run as root
 | 
					 | 
				
			||||||
	"remoteUser": "vscode",
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	// Add the IDs of extensions you want installed when the container is created in the array below.
 | 
					 | 
				
			||||||
	"extensions": [
 | 
						"extensions": [
 | 
				
			||||||
		"rust-lang.rust",
 | 
							"rust-lang.rust",
 | 
				
			||||||
		"bungcip.better-toml",
 | 
							"bungcip.better-toml",
 | 
				
			||||||
		"vadimcn.vscode-lldb"
 | 
							"vadimcn.vscode-lldb"
 | 
				
			||||||
	]
 | 
						],
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						// Use 'forwardPorts' to make a list of ports inside the container available locally.
 | 
				
			||||||
 | 
						// "forwardPorts": [],
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						// Use 'postCreateCommand' to run commands after the container is created.
 | 
				
			||||||
 | 
						// "postCreateCommand": "rustc --version",
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						// Comment out to run as root instead
 | 
				
			||||||
 | 
						"remoteUser": "vscode"
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
							
								
								
									
										14
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								README.md
									
									
									
									
									
								
							@@ -10,18 +10,18 @@ Follow these steps to open this sample in a container:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
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).
 | 
					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).
 | 
				
			||||||
 | 
					
 | 
				
			||||||
2. To use this repository, you can either open a locally cloned copy of the code:
 | 
					2. To use this repository, you can either open the repository in an isolated Docker volume:
 | 
				
			||||||
 | 
					 | 
				
			||||||
   - Clone this repository to your local filesystem.
 | 
					 | 
				
			||||||
   - Press <kbd>F1</kbd> and select the **Remote-Containers: Open Folder in Container...** command.
 | 
					 | 
				
			||||||
   - Select the cloned copy of this folder, wait for the container to start, and try things out!
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
   Or open the repository in an isolated Docker volume:
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
    - Press <kbd>F1</kbd> and select the **Remote-Containers: Try a Sample...** command.
 | 
					    - Press <kbd>F1</kbd> and select the **Remote-Containers: Try a Sample...** command.
 | 
				
			||||||
    - Choose the "Rust" sample, wait for the container to start and try things out!
 | 
					    - Choose the "Rust" sample, wait for the container to start and try things out!
 | 
				
			||||||
        > **Note:** Under the hood, this will use **Remote-Containers: Open Repository in Container...** command to clone the source code in a Docker volume instead of the local filesystem.
 | 
					        > **Note:** Under the hood, this will use **Remote-Containers: Open Repository in Container...** command to clone the source code in a Docker volume instead of the local filesystem.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					   Or open a locally cloned copy of the code:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					   - Clone this repository to your local filesystem.
 | 
				
			||||||
 | 
					   - Press <kbd>F1</kbd> and select the **Remote-Containers: Open Folder in Container...** command.
 | 
				
			||||||
 | 
					   - Select the cloned copy of this folder, wait for the container to start, and try things out!
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Things to try
 | 
					## Things to try
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Once you have this sample opened in a container, you'll be able to work with it like you would locally.
 | 
					Once you have this sample opened in a container, you'll be able to work with it like you would locally.
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user