Skip to content

Commit

Permalink
feat: add .editorconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
debuggy committed Nov 19, 2018
1 parent 8ffe2c8 commit f4b6f8c
Show file tree
Hide file tree
Showing 4 changed files with 130 additions and 118 deletions.
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
9 changes: 6 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"javascript.validate.enable": false,
"standard.usePackageJson": true
}
"javascript.validate.enable": false,
"standard.usePackageJson": true,
"files.exclude": {
"node_modules": true
}
}
116 changes: 58 additions & 58 deletions examples/config-example.json
Original file line number Diff line number Diff line change
@@ -1,60 +1,60 @@
{
"version": 0.1,
"env_variables": {
"TENSORFLOW_VERSION": "1.4.0",
"LC_ALL": "C"
"version": 0.1,
"env_variables": {
"TENSORFLOW_VERSION": "1.4.0",
"LC_ALL": "C"
},
"base_docker": "pai.build.base:hadoop2.7.2-cuda9.0-cudnn7-devel-ubuntu16.04",
"steps": [
{
"name": "install_python",
"type": "components",
"config": {
"name": "python",
"version": "3.6"
}
},
"base_docker": "pai.build.base:hadoop2.7.2-cuda9.0-cudnn7-devel-ubuntu16.04",
"steps": [
{
"name": "install_python",
"type": "components",
"config": {
"name": "python",
"version": "3.6"
}
},
{
"name": "install_tensorflow",
"type": "conda_install",
"config": {
"name": "tensorflow-gpu",
"version": "1.4.0"
}
},
{
"name": "prepare_data",
"type": "local_copy",
"config": {
"source": "./data",
"dest": "/data"
}
},
{
"name": "prepare_code",
"type": "git_clone",
"config": {
"type": "github",
"url": "https://github.com/debuggy/DockerForPAI_init.git",
"access_token": "asdflkjasdflkjsdf",
"branch": "master",
"tag": "v0.1",
"commit": "asdfasdgf1234"
}
},
{
"name": "python_command",
"type": "python_script",
"config": {
"python_code": "print(\"hello world!\")"
}
},
{
"name": "custom_command",
"type": "custom",
"config": {
"command": "python hello.py"
}
}
]
}
{
"name": "install_tensorflow",
"type": "conda_install",
"config": {
"name": "tensorflow-gpu",
"version": "1.4.0"
}
},
{
"name": "prepare_data",
"type": "local_copy",
"config": {
"source": "./data",
"dest": "/data"
}
},
{
"name": "prepare_code",
"type": "git_clone",
"config": {
"type": "github",
"url": "https://github.com/debuggy/DockerForPAI_init.git",
"access_token": "asdflkjasdflkjsdf",
"branch": "master",
"tag": "v0.1",
"commit": "asdfasdgf1234"
}
},
{
"name": "python_command",
"type": "python_script",
"config": {
"python_code": "print(\"hello world!\")"
}
},
{
"name": "custom_command",
"type": "custom",
"config": {
"command": "python hello.py"
}
}
]
}
114 changes: 57 additions & 57 deletions examples/config-negative-example.json
Original file line number Diff line number Diff line change
@@ -1,59 +1,59 @@
{
"env_variables": {
"TENSORFLOW_VERSION": "1.4.0",
"LC_ALL": "C"
"env_variables": {
"TENSORFLOW_VERSION": "1.4.0",
"LC_ALL": "C"
},
"base_docker": "pai.build.base:hadoop2.7.2-cuda9.0-cudnn7-devel-ubuntu16.04",
"steps": [
{
"name": "install_python",
"type": "components",
"config": {
"name": "python",
"version": "3.6"
}
},
"base_docker": "pai.build.base:hadoop2.7.2-cuda9.0-cudnn7-devel-ubuntu16.04",
"steps": [
{
"name": "install_python",
"type": "components",
"config": {
"name": "python",
"version": "3.6"
}
},
{
"name": "install_tensorflow",
"type": "conda_install",
"config": {
"name": "tensorflow-gpu",
"version": "1.4.0"
}
},
{
"name": "prepare_data",
"type": "local_copy",
"config": {
"source": "./data",
"dest": "/data"
}
},
{
"name": "prepare_code",
"type": "git_clone",
"config": {
"type": "github",
"url": "https://github.com/debuggy/DockerForPAI_init.git",
"access_token": "asdflkjasdflkjsdf",
"branch": "master",
"tag": "v0.1",
"commit": "asdfasdgf1234"
}
},
{
"name": "python_command",
"type": "python_script",
"config": {
"python_code": "print(\"hello world!\")"
}
},
{
"name": "custom_command",
"type": "custom",
"config": {
"command": "python hello.py"
}
}
]
}
{
"name": "install_tensorflow",
"type": "conda_install",
"config": {
"name": "tensorflow-gpu",
"version": "1.4.0"
}
},
{
"name": "prepare_data",
"type": "local_copy",
"config": {
"source": "./data",
"dest": "/data"
}
},
{
"name": "prepare_code",
"type": "git_clone",
"config": {
"type": "github",
"url": "https://github.com/debuggy/DockerForPAI_init.git",
"access_token": "asdflkjasdflkjsdf",
"branch": "master",
"tag": "v0.1",
"commit": "asdfasdgf1234"
}
},
{
"name": "python_command",
"type": "python_script",
"config": {
"python_code": "print(\"hello world!\")"
}
},
{
"name": "custom_command",
"type": "custom",
"config": {
"command": "python hello.py"
}
}
]
}

0 comments on commit f4b6f8c

Please sign in to comment.