Skip to content

Commit

Permalink
Devcontainer (keras-team#267)
Browse files Browse the repository at this point in the history
* Add support for devcontainer

* Update

* Change comment
  • Loading branch information
bhack authored and kartik4949 committed Apr 21, 2022
1 parent bb54fc4 commit 6f9191e
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ARG VARIANT

FROM tensorflow/tensorflow:nightly${VARIANT}

RUN pip install flake8 isort black pytest
29 changes: 29 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"name": "Keras-cv",
"build": {
"dockerfile": "Dockerfile",
"args": {
// Uncomment this if GPU support it is required
// "VARIANT": "-gpu",
}
},

"settings": {
"python.pythonPath": "/usr/bin/python3",
"python.linting.enabled": true,
"python.linting.flake8Enabled": true,
"python.formatting.provider":"black",
"python.testing.pytestEnabled":true,
},

"extensions": [
"ms-python.python",
],

"features": {
"git": {
"version": "os-provided",
},
},

}

0 comments on commit 6f9191e

Please sign in to comment.