Skip to content

Commit

Permalink
Merge pull request #6 from devcontainers/edgon/features-1
Browse files Browse the repository at this point in the history
Changes for Features V2
  • Loading branch information
edgonmsft authored Jun 28, 2022
2 parents 60dd3bd + e92dd24 commit 66eec95
Show file tree
Hide file tree
Showing 14 changed files with 1,008 additions and 540 deletions.
23 changes: 23 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch cli - up",
"program": "${workspaceFolder}/src/spec-node/devContainersSpecCLI.ts",
"cwd": "${workspaceFolder}",
"args": [
"up",
"--workspace-folder",
"../devcontainers-features",
"--log-level",
"debug",
],
"console": "integratedTerminal",
}
]
}
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"@types/js-yaml": "^4.0.5",
"@types/mocha": "^9.1.0",
"@types/node": "^16.11.7",
"@types/ncp": "^2.0.5",
"@types/pull-stream": "^3.6.2",
"@types/semver": "^7.3.9",
"@types/shell-quote": "^1.7.1",
Expand All @@ -65,6 +66,7 @@
"vinyl-fs": "^3.0.3"
},
"dependencies": {
"ncp": "^2.0.0",
"follow-redirects": "^1.14.8",
"js-yaml": "^4.1.0",
"jsonc-parser": "^3.0.0",
Expand Down
8 changes: 8 additions & 0 deletions src/spec-configuration/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ export interface HostRequirements {
storage?: string;
}

export interface DevContainerFeature {
id: string;
options: boolean | string | Record<string, boolean | string | undefined>;
}

export interface DevContainerFromImageConfig {
configFilePath: URI;
image: string;
Expand Down Expand Up @@ -55,6 +60,7 @@ export interface DevContainerFromImageConfig {
updateRemoteUserUID?: boolean;
userEnvProbe?: UserEnvProbe;
features?: Record<string, string | boolean | Record<string, string | boolean>>;
overrideFeatureInstallOrder?: string[];
hostRequirements?: HostRequirements;
}

Expand Down Expand Up @@ -86,6 +92,7 @@ export type DevContainerFromDockerfileConfig = {
updateRemoteUserUID?: boolean;
userEnvProbe?: UserEnvProbe;
features?: Record<string, string | boolean | Record<string, string | boolean>>;
overrideFeatureInstallOrder?: string[];
hostRequirements?: HostRequirements;
} & (
{
Expand Down Expand Up @@ -133,6 +140,7 @@ export interface DevContainerFromDockerComposeConfig {
updateRemoteUserUID?: boolean;
userEnvProbe?: UserEnvProbe;
features?: Record<string, string | boolean | Record<string, string | boolean>>;
overrideFeatureInstallOrder?: string[];
hostRequirements?: HostRequirements;
}

Expand Down
Loading

0 comments on commit 66eec95

Please sign in to comment.