From 85e2eb91d7570cd74f92329e4de84a452646c57c Mon Sep 17 00:00:00 2001 From: Maxime Leriche Date: Sun, 14 Jan 2024 01:13:13 +0100 Subject: [PATCH] Include minimal devfile --- devfile.yaml | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 devfile.yaml diff --git a/devfile.yaml b/devfile.yaml new file mode 100644 index 0000000..8964064 --- /dev/null +++ b/devfile.yaml @@ -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