Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add devfiles V2 examples #3253

Merged
merged 1 commit into from
May 27, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions tests/examples/source/devfilesV2/springboot/devfile.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
schemaVersion: 2.0.0
metadata:
name: java-spring-boot
version: 1.0.0
projects:
- name: springbootproject
git:
location: "https://github.com/odo-devfiles/springboot-ex.git"
components:
- chePlugin:
id: redhat/java/latest
memoryLimit: 1512Mi
- container:
name: tools
image: maysunfaisal/springbootbuild
memoryLimit: 768Mi
command: ['tail']
args: [ '-f', '/dev/null']
mountSources: true
volumeMounts:
- name: springbootpvc
path: /data
- container:
name: runtime
image: maysunfaisal/springbootruntime
memoryLimit: 768Mi
command: ['tail']
args: [ '-f', '/dev/null']
endpoints:
- name: '8080/tcp'
targetPort: 8080
configuration:
discoverable: false
public: true
protocol: http
mountSources: false
volumeMounts:
- name: springbootpvc
path: /data
commands:
- exec:
id: devBuild
component: tools
commandLine: "/artifacts/bin/build-container-full.sh"
workingDir: /projects/springbootproject
group:
kind: build
isDefault: true
- exec:
id: devRun
component: runtime
commandLine: "/artifacts/bin/start-server.sh"
workingDir: /
group:
kind: run
isDefault: true