Run the example app within workspace
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
MR: Pending
Description
We can create workspace that runs the gitlab-web-ide
project, which allows for basic development such as running unit tests, creating a new branch, and committing changes. In order to do more testing, we would need to be able to run the Example App. The Devfile configuration is set up so that it serves the example app on port 8000
. yarn start:example
builds and starts the app.
Currently, running yarn start:example
in the IDE terminal of the workspace results in an error due to node version incompatibility. The project's node version requirements are ^18.18.0 || >=20.0.0'
. The workspace uses node version 18.12.0
based on the container image specified.
Acceptance Criteria
-
In the Devfile, update container image such that it pulls the accepted node version. Cindy was able to run the example app successfully with node version 18.18.0
.
Steps to reproduce
- Create new workspace for
gitlab-web-ide
project - After workspace is successfully created, click on workspace link
- Open new terminal
- Run
yarn install
- Run
yarn start:example
- After node version requirement is met, should be able to start Example App by replacing the port in the workspace URL to
8000
. For example, if the workspace URL ishttps://60001-workspace-1234.workspaces.gitlab.dev/
, Example App is served inhttps://8000-workspace-1234.workspaces.gitlab.dev/