Skip to content
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

Use image instead of dockerfile in dev container #11596

Closed
wants to merge 26 commits into from

Conversation

Dsantra92
Copy link
Contributor

The change allows user to use pre-built docker image to build the vs-code dev-containers instead of building the ivy image locally. Also, added the pre-commit step for git workflow inside the container.

Before merging:

  • Test if it works with vs-code: creating devcontainer, using remote terminal etc.
  • Test if it works with GPU machine.
  • Test if it works with codespaces.
  • Understand how it will it affect M1 chip devcontainers?

Suggestion: We should move the .devcontainer folder to .gitignore allowing user to tailor the development environment according to their requirements without requiring to stash every time they pull.

RickSanchezStoic and others added 26 commits February 27, 2023 19:59
Co-authored-by: Rishabh Kumar <rishabhkkumarsc1@gmail.com>
Co-authored by: pillarxyz <mail@aymanlafaz.com>, nassimberrada <Nassim>
Co-authored by MahmoudAshraf97 <hassouna97.ma@gmail.com>
Co-authored-by: Fotios Spyridakos <72918194+fspyridakos@users.noreply.github.com>
Co-authored by: SSahas <SSahas@users.noreply.github.com>, nassimberrada <Nassim>
…anged `bias_add` so that it also accepts "NHWC" type format in `data_format`
Co-authored-by: zaeemansari70 <zaeemansari70@gmail.com>
Resolve Issue in Intelligent Testing Syntax
* changes after force push

* version unpinning

---------

Co-authored-by: Rishabh Kumar <rishabhkkumarsc1@gmail.com>
* changes after force push

* version unpinning

* unpinned numpy

---------

Co-authored-by: Rishabh Kumar <rishabhkkumarsc1@gmail.com>
@CatB1t CatB1t self-assigned this Mar 3, 2023
Copy link
Contributor

@CatB1t CatB1t left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just as mentioned in the Discord, let's make two subdir build and image, each has two devcontainer settings, one for CPU other for GPU. Feel free to merge after it's updated! great work (:

git submodule update --init --recursive

python3 -m pip install --user -e .
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quick note: this is used here to install Ivy as a local package, we should keep it.

@Dsantra92
Copy link
Contributor Author

Looks like multiple dev containers are not supported yet microsoft/vscode-remote-release#1165. I can add the config jsons, but you still need to copy the needed .devcontainer.json to .devcontainer folder @CatB1t.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.