-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Vitaliy Gulyy <[email protected]>
- Loading branch information
1 parent
f199aee
commit a38e70c
Showing
11 changed files
with
480 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
# @redhat.vscode-devfile | ||
|
||
With a wizard the extension provided you can easily create the Devfile. | ||
|
||
![Che-Theia](media/screenshot-1.png) | ||
|
||
--- | ||
|
||
To build the extension, use Node v16 and later. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Get Devfile yaml | ||
|
||
Click button to save Devfile to the root of your project. |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
|
||
/** | ||
``` | ||
schemaVersion: 2.2.0 | ||
metadata: | ||
name: devfile-sample | ||
``` | ||
*/ | ||
export interface Devfile { | ||
|
||
metadata: Metadata; | ||
components: Component[]; | ||
|
||
} | ||
|
||
export interface Metadata { | ||
name: string; | ||
} | ||
|
||
/** | ||
``` | ||
components: | ||
- name: dev | ||
container: | ||
image: quay.io/devfile/universal-developer-image:latest | ||
memoryRequest: 256Mi | ||
memoryLimit: 2048Mi | ||
cpuRequest: 0.1 | ||
cpuLimit: 0.5 | ||
mountSources: true | ||
endpoints: | ||
- exposure: public | ||
name: http-demo | ||
protocol: http | ||
targetPort: 8080 | ||
env: | ||
- name: WELCOME | ||
value: "Hello World" | ||
``` | ||
*/ | ||
export interface Component { | ||
name: string; | ||
container?: ComponentContainer; | ||
} | ||
|
||
export interface ComponentContainer { | ||
image: string; | ||
memoryRequest?: string; | ||
memoryLimit?: string; | ||
cpuRequest?: string; | ||
cpuLimit?: string; | ||
mountSources?: boolean; | ||
endpoints?: ExposedPort[]; | ||
env?: EnvironmentVariable[]; | ||
} | ||
|
||
export interface ExposedPort { | ||
visibility: 'public' | 'internal'; | ||
name: string; | ||
protocol: string; | ||
port: number; | ||
} | ||
|
||
export interface EnvironmentVariable { | ||
name: string; | ||
value: string; | ||
} |
Oops, something went wrong.