From 8f6956c8cd89888389f4390528ddaeeaa05c12f8 Mon Sep 17 00:00:00 2001 From: Michael Valdron <14838510+michael-valdron@users.noreply.github.com> Date: Fri, 19 Apr 2024 02:00:29 -0400 Subject: [PATCH] devfile example --- content/projects.md | 43 +++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 41 insertions(+), 2 deletions(-) diff --git a/content/projects.md b/content/projects.md index ba66c92..36f0411 100644 --- a/content/projects.md +++ b/content/projects.md @@ -1,13 +1,13 @@ --- title: "Projects" img: "/img/projects.jpg" -date: "2024-01-17" +date: "2024-04-18" draft: false --- ## Current Projects -### Devfiles +### Devfile **Software Engineer at Red Hat** - *Open Source Project* - **Website**: **https://devfile.io/** - **GitHub**: **https://github.com/devfile/** @@ -18,6 +18,45 @@ draft: false - [Devfile Registry Viewer](/projects/#devfile-registry-viewer) - [Devfile Alizer](/projects/#devfile-alizer) +**Example** + +```yaml +schemaVersion: 2.2.0 +metadata: + name: node + displayName: Node.js + tags: + - NodeJS + - JS +components: + - name: runtime + container: + image: node + sourceMapping: /projects + endpoints: + - exposure: public + name: http-3000 + protocol: http + targetPort: 3000 +commands: + - id: install + exec: + component: runtime + commandLine: npm install + workingDir: ${PROJECT_SOURCE} + group: + kind: build + isDefault: true + - id: run + exec: + component: runtime + commandLine: npm start + workingDir: ${PROJECT_SOURCE} + group: + kind: run + isDefault: true +``` + #### Devfile Registry Support Services - **Devfile Registry Index Generator** - Devfile index schema generation component, generates schemas to store metadata on devfiles stored.