Skip to content

Commit

Permalink
Added basic setup for the new k8s example
Browse files Browse the repository at this point in the history
  • Loading branch information
ulises-jeremias committed Dec 3, 2023
1 parent 09e2397 commit bd72ea1
Show file tree
Hide file tree
Showing 76 changed files with 23,364 additions and 0 deletions.
Empty file.
39 changes: 39 additions & 0 deletions examples/kubernetes-tilt-dev/Tiltfile
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')
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 examples/kubernetes-tilt-dev/apps/node-nestjs-api/.eslintrc.js
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 examples/kubernetes-tilt-dev/apps/node-nestjs-api/.eslitignore
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/
Loading

0 comments on commit bd72ea1

Please sign in to comment.