-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Dev Containers config #2255
Conversation
The |
6fe1e31
to
7939a7c
Compare
Not so fast... see below |
"onCreateCommand": "./.devcontainer/onCreateCommand.sh", | ||
|
||
"postStartCommand": { | ||
"backend": "nohup bash -c 'uv run python package/kedro_viz/server.py demo-project &' > backend.out 2> backend.err < /dev/null", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am a little confused why this happens, from where does it get the build files?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's getting them from the published version 😓
Signed-off-by: Juan Luis Cano Rodríguez <juan_luis_cano@mckinsey.com>
Signed-off-by: Juan Luis Cano Rodríguez <juan_luis_cano@mckinsey.com>
Signed-off-by: Juan Luis Cano Rodríguez <juan_luis_cano@mckinsey.com>
Signed-off-by: Juan Luis Cano Rodríguez <juan_luis_cano@mckinsey.com>
Signed-off-by: Juan Luis Cano Rodríguez <juan_luis_cano@mckinsey.com>
7939a7c
to
337e753
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is not using the development version of Kedro-Viz, but the published one 😭
I know because I launched this from latest main
after #2248 was merged and I don't see the deprecation warning.
Closing this for now, since it's not ready. |
Description
Why was this PR created?
Gitpod has been up until now the preferred way to do QA of PRs without having to build a full development environment.
However, Gitpod Classic is going away, and we need to find another solution.
Gitpod Flex works with Dev Containers https://www.gitpod.io/blog/introducing-gitpod-flex#development-container-support so here is my first attempt to add Dev Containers config.
Development notes
This mostly works. But almost by chance...
The
backend
command is succeeding. And somehow it's launching both the backend and the frontend? I don't fully understand why ❓I didn't see a
npm install
step anywhere listed in ourCONTRIBUTING.md
(hitting #1764 again?) but I added to the dev container anyway, and looks like it's working.When I tried to configure the image to use NodeJS 18 though, I found some inconsistencies between what the IDE tells me and what the standards say.
I would like somebody else to pick this up if it's not too much to ask 🙏🏼
QA notes
https://code.visualstudio.com/docs/devcontainers/create-dev-container
Run the
>dev containers: rebuild and reopen
command and check that everything works.Checklist
RELEASE.md
file