initial revision.
[pipelinelib] / vars / applicationYaml.groovy
diff --git a/vars/applicationYaml.groovy b/vars/applicationYaml.groovy
new file mode 100644 (file)
index 0000000..ead38a5
--- /dev/null
@@ -0,0 +1,22 @@
+
+def call(Map args) { 
+  def defaults = [ 
+    version: env.BRANCH_NAME,
+    repo: 'europe-west3-docker.pkg.dev/prod-cobundu-datascience-eu/ds',
+  ]
+  args = defaults << args
+  """
+apiVersion: v1
+kind: Pod
+spec:
+  containers:
+    - name: ${args.application}
+      image: ${args.repo}/${args.application}:${args.version}
+      imagePullPolicy: Always
+      command: ["tail", "-f", "/dev/null"]
+      resources:
+        requests:
+          memory: "512M"
+          cpu: "2000m"
+                    """
+}