-
Notifications
You must be signed in to change notification settings - Fork 72
Expand file tree
/
Copy pathgraph.txt
More file actions
35 lines (23 loc) · 913 Bytes
/
graph.txt
File metadata and controls
35 lines (23 loc) · 913 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Build the dummy Dockerfile
exec docker build -qt graph-updater .
# Run the graph command and create a smoke test
dependabot graph go_modules dependabot/cli -o out.yml --updater-image graph-updater
# assert the dummy is working
stderr 'bin/run arguments: update_graph'
stderr '"enable_dependency_submission_poc":true'
# Verify the smoke test can run the graph command
dependabot test -f out.yml --updater-image graph-updater
stderr 'bin/run arguments: update_graph'
exec docker rmi -f graph-updater
-- Dockerfile --
FROM ubuntu:22.04
RUN useradd dependabot
COPY --chown=dependabot --chmod=755 update-ca-certificates /usr/bin/update-ca-certificates
COPY --chown=dependabot --chmod=755 run bin/run
-- update-ca-certificates --
#!/usr/bin/env bash
echo "Updated those certificates for ya"
-- run --
#!/usr/bin/env bash
echo "bin/run arguments: $@"
cat /home/dependabot/dependabot-updater/job.json; echo