From 0b5f73115f49f7af533c088e625334f750e8a9be Mon Sep 17 00:00:00 2001 From: Jacob Tomlinson Date: Tue, 20 Jun 2023 17:08:54 +0100 Subject: [PATCH] Add Databricks example (#44) Signed-off-by: Jacob Tomlinson --- examples/databricks.yaml | 77 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 examples/databricks.yaml diff --git a/examples/databricks.yaml b/examples/databricks.yaml new file mode 100644 index 0000000..cb53bb9 --- /dev/null +++ b/examples/databricks.yaml @@ -0,0 +1,77 @@ +apiVersion: container-canary.nvidia.com/v1 +kind: Validator +name: databricks +description: Databricks +documentation: https://docs.databricks.com/clusters/custom-containers.html#option-2-build-your-own-docker-base +env: [] +volumes: [] +command: +- /bin/sh +- -c +- "sleep 3600" +checks: + - name: bash + description: Has bash installed + probe: + exec: + command: + - /bin/sh + - -c + - "which bash" + - name: sudo + description: Has sudo installed + probe: + exec: + command: + - /bin/sh + - -c + - "which sudo" + - name: sudo + description: Has procps installed + probe: + exec: + command: + - /bin/sh + - -c + - "which ps" + - name: sudo + description: Has iproute2 installed + probe: + exec: + command: + - /bin/sh + - -c + - "which ip" + - name: sudo + description: Has coreutils installed + probe: + exec: + command: + - /bin/sh + - -c + - "which cat" + - name: distro + description: Uses Ubuntu or Alpine + probe: + exec: + command: + - grep + - 'ubuntu\|alpine' + - /etc/os-release + - name: java8 + description: Has Java 8 installed + probe: + exec: + command: + - /bin/bash + - -c + - "java -version 2>&1 | grep 8u" + - name: python + description: Has Python virtualenv installed + probe: + exec: + command: + - /bin/bash + - -c + - "which virtualenv" + # TODO R