Include minimal devfile
This commit is contained in:
parent
6b964d68c6
commit
85e2eb91d7
48
devfile.yaml
Normal file
48
devfile.yaml
Normal file
@ -0,0 +1,48 @@
|
||||
schemaVersion: 2.2.0
|
||||
metadata:
|
||||
name: BootstrapRust
|
||||
language: rust
|
||||
version: 1.0.0
|
||||
|
||||
projects:
|
||||
- name: template
|
||||
git:
|
||||
remotes:
|
||||
origin: git@git.weebo.fr:BootstrapProject/Rust.git
|
||||
|
||||
components:
|
||||
- name: tools
|
||||
container:
|
||||
image: harbor.weebo.fr/batleforc/che-rust:0.1.13
|
||||
memoryLimit: 8Gi
|
||||
command: ["tail"]
|
||||
args: ["-f", "/dev/null"]
|
||||
mountSources: true
|
||||
endpoints:
|
||||
- name: 5437-http
|
||||
targetPort: 5437
|
||||
exposure: public
|
||||
protocol: https
|
||||
env:
|
||||
- name: RUST_ENV
|
||||
value: "dev-che"
|
||||
- name: "PORT"
|
||||
value: "5437"
|
||||
commands:
|
||||
- id: build
|
||||
exec:
|
||||
component: tools
|
||||
workingDir: ${PROJECT_SOURCE}
|
||||
commandLine: cargo build
|
||||
group:
|
||||
kind: build
|
||||
isDefault: true
|
||||
|
||||
- id: run
|
||||
exec:
|
||||
component: tools
|
||||
workingDir: ${PROJECT_SOURCE}
|
||||
commandLine: cargo run
|
||||
group:
|
||||
kind: run
|
||||
isDefault: true
|
Loading…
Reference in New Issue
Block a user