Skip to content

Conversation

@Yikun
Copy link
Owner

@Yikun Yikun commented Aug 4, 2022

No description provided.

@github-actions github-actions bot added the INFRA label Aug 4, 2022
HyukjinKwon pushed a commit to apache/spark that referenced this pull request Aug 4, 2022
### What changes were proposed in this pull request?
Create separate static image tag for infra static image

### Why are the changes needed?
Currently, we put the **static image** and **cache** together in same tag like [`ghcr.io/apache/spark/apache-spark-github-action-image-cache:master`](https://github.com/apache/spark/pkgs/container/spark%2Fapache-spark-github-action-image-cache/versions).

Cache and static image occupy separate different image hash and same image tags. this bring some problem in below cases:
- **Debug job with static docker images**, they have to find hash. If use cache directly, will raise something like:
```
yikun-x86:~# docker run -ti ghcr.io/yikun/apache-spark-github-action-image-cache:master
Unable to find image 'ghcr.io/yikun/apache-spark-github-action-image-cache:master' locally
master: Pulling from yikun/apache-spark-github-action-image-cache
docker: no matching manifest for linux/amd64 in the manifest list entries.
```

- **Use static image in CI**, such as for some reason we want to switch static image temporarily.
- **Easy to see history for last cache**, such as system deps/lib.

### Does this PR introduce _any_ user-facing change?
No

### How was this patch tested?
- Local test: Yikun#144, and static image tag push [passed](https://github.com/Yikun/spark/runs/7664266955?check_suite_focus=true#step:6:212)
- Run static image:
```
rootyikun-x86:~# docker run -ti ghcr.io/yikun/apache-spark-github-action-image-cache:master-static
Unable to find image 'ghcr.io/yikun/apache-spark-github-action-image-cache:master-static' locally
master-static: Pulling from yikun/apache-spark-github-action-image-cache
Digest: sha256:5198fd8111c925b7c92d04427268bcb0e5574bb72cef09808076595f3372bf7b
Status: Downloaded newer image for ghcr.io/yikun/apache-spark-github-action-image-cache:master-static
root3550e09e0e93:/# exit
```

Closes #37402 from Yikun/patch-32.

Authored-by: Yikun Jiang <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>
@github-actions
Copy link

We're closing this PR because it hasn't been updated in a while. This isn't a judgement on the merit of the PR in any way. It's just a way of keeping the PR queue manageable.
If you'd like to revive this PR, please reopen it and ask a committer to remove the Stale tag!

@github-actions github-actions bot added the Stale label Nov 13, 2022
@github-actions github-actions bot closed this Nov 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants