-
Notifications
You must be signed in to change notification settings - Fork 244
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dogfood odo for working on the website (#6564)
* Add 'devfile.yaml' for working on the website * Git-ignore the '.odo' folder * Make Docusaurus listen on all interfaces By default, Docusaurus would listen only on the loopback interface, which does not work with Podman at this time (see [1]). [1] #6510 (comment)
- Loading branch information
Showing
3 changed files
with
62 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,3 +19,5 @@ | |
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
.odo |
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,59 @@ | ||
schemaVersion: 2.2.0 | ||
metadata: | ||
name: odo.dev | ||
description: Website for odo, the developer-focused CLI for container development | ||
displayName: odo.dev | ||
icon: https://odo.dev/img/logo.png | ||
version: 3.6.0 | ||
tags: | ||
- NodeJS | ||
- React | ||
- Docusaurus | ||
- odo | ||
|
||
components: | ||
- name: doc-runtime | ||
container: | ||
image: registry.access.redhat.com/ubi8/nodejs-16:latest | ||
memoryLimit: 512Mi | ||
command: ['tail'] | ||
args: ['-f', '/dev/null'] | ||
endpoints: | ||
- name: http-doc | ||
targetPort: 3000 | ||
|
||
commands: | ||
|
||
- id: 0-install-yarn | ||
exec: | ||
commandLine: npm install --global yarn | ||
component: doc-runtime | ||
|
||
# | ||
# Build | ||
# | ||
- id: doc-install-deps | ||
exec: | ||
commandLine: yarn | ||
component: doc-runtime | ||
workingDir: ${PROJECT_SOURCE} | ||
group: | ||
kind: build | ||
isDefault: true | ||
|
||
# | ||
# Run | ||
# | ||
- id: doc-start | ||
exec: | ||
commandLine: yarn start | ||
component: doc-runtime | ||
hotReloadCapable: true | ||
workingDir: ${PROJECT_SOURCE} | ||
group: | ||
kind: run | ||
isDefault: true | ||
|
||
events: | ||
postStart: | ||
- 0-install-yarn |
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