NextGenTrigger Hardware

How to Run Our Code

Create a file "session.yml" defining a pod. The marked lines you might have to change.

apiVersion: v1
kind: Pod
metadata:
  name: session-1
  labels:
    mount-eos: "true"
    inject-oauth2-token-pipeline: "true"
  annotations:
    sidecar.istio.io/inject: "false"
spec:
  containers:
  - name: session-1
    image: registry.cern.ch/ngt-wp1.7/wp1.7-soa-wrapper:latest
    command: ["sleep", "infinity"]
    resources:
      limits:
        nvidia.com/gpu: 1
    securityContext:
      runAsUser: 0 
      runAsGroup: 0

In the terminal, run the following commands to start the pod and enter an interactive session.

kubectl apply -f session.yml
kubectl exec -it session-1 -- /bin/bash

Now you can "git clone" your code and build it.

Remote Development (with VS Code)

Remote development with VS Code works as follows.

  1. Start the container as explained in the previous section.
  2. Install the kubernetes and dev container extensions of VS Code.
  3. Attach to you container you started in Sep 1.

After that, we can develop as if we were running everything locally.

Remarks

TODOs