mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 03:11:40 +00:00
test images: Generates new SHAs for mirrored images
The same SHA cannot be pushed twice to the staging registry. Because some images were mirrored, their SHAs remained unchanged. This addresses this issue.
This commit is contained in:
parent
5404b5a28a
commit
d5cf7f652b
@ -198,3 +198,9 @@ After all the above has been done, run the desired tests.
|
||||
```bash
|
||||
sudo chmod o+x /etc/docker
|
||||
```
|
||||
|
||||
A few images have been mirrored from dockerhub into the `gcr.io/k8s-staging-e2e-test-images` registry
|
||||
(`busybox`, `glusterdynamic-provisioner`, `httpd`, `httpd-new`, `nginx`, `nginx-new`, `perl`), and they
|
||||
only have a noop Dockerfile. However, due to an [issue](https://github.com/kubernetes/test-infra/issues/20884),
|
||||
the same SHA cannot be pushed twice. A small change to them is required in order to generate a new SHA,
|
||||
which can then be pushed and promoted.
|
||||
|
@ -15,3 +15,5 @@
|
||||
# NOTE(claudiub): Noop. We're just mirroring the image to staging.
|
||||
ARG BASEIMAGE
|
||||
FROM $BASEIMAGE
|
||||
|
||||
LABEL image_version="1.29"
|
||||
|
@ -86,4 +86,5 @@ ENV PATH="C:\dig\;C:\bin;C:\curl;C:\Windows\System32;C:\Windows;C:\Program Files
|
||||
# Persist %PSCORE% ENV variable for user convenience
|
||||
PSCORE="C:\Program Files\PowerShell\pwsh.exe"
|
||||
|
||||
LABEL image_version="1.29"
|
||||
ENTRYPOINT ["cmd.exe", "/s", "/c"]
|
||||
|
@ -15,3 +15,5 @@
|
||||
# NOTE(claudiub): Noop. We're just mirroring the image to staging.
|
||||
ARG BASEIMAGE
|
||||
FROM $BASEIMAGE
|
||||
|
||||
LABEL image_version="v1.0"
|
||||
|
@ -43,4 +43,5 @@ ENV PATH="C:\dig;C:\bin;C:\curl;C:\Windows\System32;C:\Windows;C:\Program Files\
|
||||
|
||||
USER ContainerAdministrator
|
||||
EXPOSE 80
|
||||
LABEL image_version="2.4.39-1"
|
||||
ENTRYPOINT ["C:/usr/local/apache2/bin/httpd.exe"]
|
||||
|
@ -15,3 +15,5 @@
|
||||
# NOTE(claudiub): Noop. We're just mirroring the image to staging.
|
||||
ARG BASEIMAGE
|
||||
FROM $BASEIMAGE
|
||||
|
||||
LABEL image_version="2.4.38-1"
|
||||
|
@ -43,4 +43,5 @@ ENV PATH="C:\dig;C:\bin;C:\curl;C:\Windows\System32;C:\Windows;C:\Program Files\
|
||||
|
||||
USER ContainerAdministrator
|
||||
EXPOSE 80
|
||||
LABEL image_version="2.4.39-1"
|
||||
ENTRYPOINT ["C:/usr/local/apache2/bin/httpd.exe"]
|
||||
|
@ -15,3 +15,5 @@
|
||||
# NOTE(claudiub): Noop. We're just mirroring the image to staging.
|
||||
ARG BASEIMAGE
|
||||
FROM $BASEIMAGE
|
||||
|
||||
LABEL image_version="1.15-1"
|
||||
|
@ -24,4 +24,5 @@ COPY --from=nginx-source /nginx /usr/share/nginx
|
||||
|
||||
USER ContainerAdministrator
|
||||
EXPOSE 80
|
||||
LABEL image_version="1.15-1"
|
||||
ENTRYPOINT ["/bin/sh", "-c", " cd /usr/share/nginx && ./nginx.exe"]
|
||||
|
@ -15,3 +15,5 @@
|
||||
# NOTE(claudiub): Noop. We're just mirroring the image to staging.
|
||||
ARG BASEIMAGE
|
||||
FROM $BASEIMAGE
|
||||
|
||||
LABEL image_version="1.14-1"
|
||||
|
@ -24,4 +24,5 @@ COPY --from=nginx-source /nginx /usr/share/nginx
|
||||
|
||||
USER ContainerAdministrator
|
||||
EXPOSE 80
|
||||
LABEL image_version="1.14-1"
|
||||
ENTRYPOINT ["/bin/sh", "-c", " cd /usr/share/nginx && ./nginx.exe"]
|
||||
|
@ -15,3 +15,5 @@
|
||||
# NOTE(claudiub): Noop. We're just mirroring the image to staging.
|
||||
ARG BASEIMAGE
|
||||
FROM $BASEIMAGE
|
||||
|
||||
LABEL image_version="5.26"
|
||||
|
Loading…
Reference in New Issue
Block a user