Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 655 Bytes

README.md

File metadata and controls

36 lines (25 loc) · 655 Bytes

AIchor Test Project


Add PVC to Manifest

storage:
  attachExistingPVCs:
    - name: project-pvc-id
      mountPoint: /mnt/project-pvc-id

Add Runtime Variables to main.py

Add the following after parser.add_argument():

print(os.environ.get("runtime_var"))
print(os.environ["AICHOR_USER_NAME"])
print(os.environ["AICHOR_USER_EMAIL"])
print(os.environ["AICHOR_CLUSTER_NAME"])
print(os.environ["VCS_TYPE"])

Add Build Variable to build/Dockerfile

Insert this after RUN pip install:

RUN --mount=type=secret,id=_env,dst=/etc/secrets/.env . /etc/secrets/.env && echo "$build_var"