From 55f9e9860d97f07a5686865a4d11b3230fb7a234 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20B=C3=A4ume?= <julian.baeume@open-xchange.com> Date: Fri, 1 Oct 2021 16:15:51 +0200 Subject: [PATCH] add okteto config this can be used to create a remote dev setup using okteto --- .gitignore | 1 + .stignore | 60 ++++++++++++++++++++++++++++++++++++++++++++ okteto-entrypoint.sh | 1 + okteto.yml.dist | 17 +++++++++++++ 4 files changed, 79 insertions(+) create mode 100644 .stignore create mode 100644 okteto-entrypoint.sh create mode 100644 okteto.yml.dist diff --git a/.gitignore b/.gitignore index 382dbfb..b91c132 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,7 @@ yarn-debug.log* yarn-error.log* lerna-debug.log* /output +okteto.yml # Diagnostic reports (https://nodejs.org/api/report.html) report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json diff --git a/.stignore b/.stignore new file mode 100644 index 0000000..8d7a6e6 --- /dev/null +++ b/.stignore @@ -0,0 +1,60 @@ +.git +# Runtime data +pids +*.pid +*.seed +*.pid.lock + +config +output +spec + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# Bower dependency directory (https://bower.io/) +bower_components + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (https://nodejs.org/api/addons.html) +build/Release + +# Dependency directories +node_modules +jspm_packages + +# Optional npm cache directory +.npm + +# Optional eslint cache +.eslintcache + +# Optional REPL history +.node_repl_history + +# Output of 'npm pack' +*.tgz + +# Yarn Integrity file +.yarn-integrity + +# parcel-bundler cache (https://parceljs.org/) +.cache + +# next.js build output +.next + +# nuxt.js build output +.nuxt + +# vuepress build output +.vuepress/dist + +# Serverless directories +.serverless + diff --git a/okteto-entrypoint.sh b/okteto-entrypoint.sh new file mode 100644 index 0000000..3acef19 --- /dev/null +++ b/okteto-entrypoint.sh @@ -0,0 +1 @@ +yarn && yarn dev diff --git a/okteto.yml.dist b/okteto.yml.dist new file mode 100644 index 0000000..7c9b360 --- /dev/null +++ b/okteto.yml.dist @@ -0,0 +1,17 @@ +name: develop-core-manifest-service +image: node:14-alpine +command: ["sh", "okteto-entrypoint.sh"] +workdir: /app +persistentVolume: + enabled: false + storageClass: longhorn + size: 2Gi +resources: + requests: + memory: "256Mi" + limits: + memory: "256Mi" +sync: +- .:/app +forward: +- 8080:8080 -- GitLab