-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added basic setup for the new k8s example
- Loading branch information
1 parent
09e2397
commit bd72ea1
Showing
76 changed files
with
23,364 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
version_settings(constraint='>=0.22.2') | ||
|
||
k8s_yaml(['k8s/namespaces.yml']) | ||
|
||
docker_build( | ||
'k8s-tilt-dev-example-node-nestjs-api', | ||
context='./apps/node-nestjs-api/', | ||
dockerfile='./apps/node-nestjs-api/Dockerfile', | ||
target='development', | ||
only=['./apps/node-nestjs-api/'], | ||
live_update=[ | ||
sync('./apps/node-nestjs-api/', '/app/'), | ||
run( | ||
'npm install', | ||
trigger=['./apps/node-nestjs-api/package.json'] | ||
) | ||
] | ||
) | ||
|
||
k8s_yaml(['k8s/node-nestjs-api/deployment.yml', 'k8s/node-nestjs-api/service.yml']) | ||
|
||
docker_build( | ||
'k8s-tilt-dev-example-vite-react-app', | ||
context='./apps/vite-react-app/', | ||
dockerfile='./apps/vite-react-app/Dockerfile', | ||
target='development', | ||
only=['./apps/vite-react-app/'], | ||
live_update=[ | ||
sync('./apps/vite-react-app/', '/app/'), | ||
run( | ||
'npm install', | ||
trigger=['./apps/vite-react-app/package.json'] | ||
) | ||
] | ||
) | ||
|
||
k8s_yaml(['k8s/vite-react-app/deployment.yml', 'k8s/vite-react-app/service.yml']) | ||
|
||
k8s_yaml('k8s/ingress.yml') |
5 changes: 5 additions & 0 deletions
5
examples/kubernetes-tilt-dev/apps/node-nestjs-api/.dockerignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
node_modules | ||
.git | ||
build | ||
dist | ||
tools |
Empty file.
Empty file.
22 changes: 22 additions & 0 deletions
22
examples/kubernetes-tilt-dev/apps/node-nestjs-api/.eslintrc.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
module.exports = { | ||
parser: '@typescript-eslint/parser', | ||
parserOptions: { | ||
project: './tsconfig.json', | ||
tsconfigRootDir: __dirname, | ||
}, | ||
plugins: ['@typescript-eslint/eslint-plugin'], | ||
extends: ['plugin:@typescript-eslint/recommended', 'plugin:prettier/recommended'], | ||
root: true, | ||
env: { | ||
node: true, | ||
jest: true, | ||
}, | ||
ignorePatterns: ['.eslintrc.js'], | ||
rules: { | ||
'@typescript-eslint/interface-name-prefix': 'off', | ||
'@typescript-eslint/explicit-function-return-type': 'off', | ||
'@typescript-eslint/explicit-module-boundary-types': 'off', | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
'@typescript-eslint/no-empty-function': 'off', | ||
}, | ||
}; |
10 changes: 10 additions & 0 deletions
10
examples/kubernetes-tilt-dev/apps/node-nestjs-api/.eslitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# /node_modules/* in the project root is ignored by default | ||
# build artefacts | ||
dist/* | ||
coverage/* | ||
node_modules/* | ||
logs/* | ||
prod/* | ||
.husky/* | ||
.github/* | ||
tools/ |
Oops, something went wrong.