-
Notifications
You must be signed in to change notification settings - Fork 64
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: David Festal <dfestal@redhat.com>
- Loading branch information
1 parent
6c99166
commit 5b2ac1c
Showing
9 changed files
with
102 additions
and
15 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
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,5 +1,6 @@ | ||
schemaVersion: 2.0.0 | ||
name: nodejs-stack | ||
metadata: | ||
name: nodejs-stack | ||
projects: | ||
- name: project | ||
git: | ||
|
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,60 @@ | ||
schemaVersion: 2.0.0 | ||
metadata: | ||
name: petclinic-dev-environment | ||
projects: | ||
- name: petclinic | ||
source: | ||
type: git | ||
location: 'git@github.com:spring-projects/spring-petclinic.git' | ||
components: | ||
- alias: mvn-stack | ||
type: dockerimage | ||
image: maven:3.5.4-jdk-8 | ||
command: ['/bin/sh', '-c'] | ||
args: ['tail -f /dev/null'] | ||
volumes: | ||
- name: maven-repo | ||
containerPath: /root/.m2 | ||
endpoints: | ||
- name: spring-boot | ||
port: 8080 | ||
attributes: | ||
path: /api | ||
protocol: http | ||
public: true | ||
env: | ||
- name: TERM | ||
value: xterm | ||
mountSources: true | ||
memoryLimit: 500M | ||
- alias: mysql | ||
type: kubernetes | ||
reference: petclinic.yaml | ||
selector: | ||
app.kubernetes.io/name: mysql | ||
app.kubernetes.io/component: database | ||
app.kubernetes.io/part-of: petclinic | ||
- alias: theia-ide | ||
type: cheEditor | ||
id: eclipse/theia:0.0.3 | ||
- alias: jdt.ls | ||
type: chePlugin | ||
id: eclipse/theia-jdtls:0.0.3 | ||
commands: | ||
- name: build | ||
actions: | ||
- type: exec | ||
component: mvn-stack | ||
command: mvn package | ||
workdir: /projects/spring-petclinic | ||
- name: run | ||
attributes: | ||
runType: sequential | ||
actions: | ||
- type: start | ||
component: mysql | ||
timeout: 20s | ||
- type: exec | ||
component: mvn-stack | ||
command: mvn spring-boot:run | ||
workdir: /projects/spring-petclinic |
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
name: "myDevile" | ||
schemaVersion: "2.0.0" | ||
metadata: | ||
name: "myDevile" | ||
projects: | ||
- name: "devworkspace-spec" | ||
git: | ||
|
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
17 changes: 17 additions & 0 deletions
17
devfile-support/transformation-rules/add-name-and-version-metadata.json
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,17 @@ | ||
[ | ||
{ | ||
"op": "add", | ||
"path": "/properties/metadata", | ||
"value": { "type": "object", "description": "Optional metadata", "properties": {} } | ||
}, | ||
{ | ||
"op": "add", | ||
"path": "/properties/metadata/properties/version", | ||
"value": { "type": "string", "description": "Optional semver-compatible version", "pattern": "^([1-9]+)\\.([0-9]+)\\.([0-9]+)(\\-[0-9a-z-]+(\\.[0-9a-z-]+)*)?(\\+[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?$" } | ||
}, | ||
{ | ||
"op": "add", | ||
"path": "/properties/metadata/properties/name", | ||
"value": { "type": "string", "description": "Optional devfile name" } | ||
} | ||
] |
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