Skip to content

Commit

Permalink
Merge pull request NVIDIA-AI-Blueprints#35 from zvigrinberg/fix-pipel…
Browse files Browse the repository at this point in the history
…ine-startup-crash

fix: pipeline startup crash

chore: add build metadata labels to image build
  • Loading branch information
zvigrinberg authored Mar 5, 2025
2 parents cc55f25 + 506ebdb commit 0c29c0a
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
5 changes: 4 additions & 1 deletion .tekton/on-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ spec:
value: $(params.path-context)
- name: BUILDER_IMAGE
value: >-
registry.redhat.io/rhel8/buildah@sha256:aac6629389db17e99894c5bee0da01d4c8065d11d8c6f6e1602f9484290baa70
registry.redhat.io/rhel8/buildah@sha256:6d2dcb651ba680cf4ec74331f8349dec43d071d420625a1703370acc8d984e9e
- name: STORAGE_DRIVER
value: vfs
- name: FORMAT
Expand All @@ -97,6 +97,9 @@ spec:
--target base
--squash
--label=quay.expires-after=$(params.image-expires-after)
--label=agent_morpheus_vcs_branch={{source_branch}}
--label=agent_morpheus_vcs_build_commit_id={{revision}}
--label=agent_morpheus_vcs_repo={{repo_url}}
taskRef:
resolver: cluster
params:
Expand Down
5 changes: 4 additions & 1 deletion .tekton/on-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ spec:
value: $(params.path-context)
- name: BUILDER_IMAGE
value: >-
registry.redhat.io/rhel8/buildah@sha256:aac6629389db17e99894c5bee0da01d4c8065d11d8c6f6e1602f9484290baa70
registry.redhat.io/rhel8/buildah@sha256:6d2dcb651ba680cf4ec74331f8349dec43d071d420625a1703370acc8d984e9e
- name: STORAGE_DRIVER
value: vfs
- name: FORMAT
Expand All @@ -91,6 +91,9 @@ spec:
value: >-
--target base
--squash
--label=agent_morpheus_vcs_branch={{source_branch}}
--label=agent_morpheus_vcs_build_commit_id={{revision}}
--label=agent_morpheus_vcs_repo={{repo_url}}
taskRef:
resolver: cluster
params:
Expand Down
5 changes: 4 additions & 1 deletion .tekton/on-tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ spec:
value: $(params.path-context)
- name: BUILDER_IMAGE
value: >-
registry.redhat.io/rhel8/buildah@sha256:aac6629389db17e99894c5bee0da01d4c8065d11d8c6f6e1602f9484290baa70
registry.redhat.io/rhel8/buildah@sha256:6d2dcb651ba680cf4ec74331f8349dec43d071d420625a1703370acc8d984e9e
- name: STORAGE_DRIVER
value: vfs
- name: FORMAT
Expand All @@ -119,6 +119,9 @@ spec:
value: >-
--target base
--squash
--label=agent_morpheus_vcs_branch={{source_branch}}
--label=agent_morpheus_vcs_build_commit_id={{revision}}
--label=agent_morpheus_vcs_repo={{repo_url}}
taskRef:
resolver: cluster
params:
Expand Down
5 changes: 1 addition & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,7 @@ RUN --mount=type=cache,id=pip_cache,target=/root/.cache/pip,sharing=locked \
COPY . /workspace/

# Mark all git repos as safe to avoid git errors
RUN echo $'\
[safe]\n\
directory = *\n\
'> /root/.gitconfig
RUN bash -c "echo -e \"[safe]\\n\\tdirectory = *\"" > /root/.gitconfig

ENTRYPOINT [ "/opt/conda/envs/morpheus-vuln-analysis/bin/tini", "--", "/workspace/docker/scripts/entrypoint.sh"]

Expand Down

0 comments on commit 0c29c0a

Please sign in to comment.