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:
Claudiu Belu 2021-03-01 20:18:06 +00:00
parent 5404b5a28a
commit d5cf7f652b
12 changed files with 23 additions and 0 deletions

View File

@ -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.

View File

@ -15,3 +15,5 @@
# NOTE(claudiub): Noop. We're just mirroring the image to staging.
ARG BASEIMAGE
FROM $BASEIMAGE
LABEL image_version="1.29"

View File

@ -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"]

View File

@ -15,3 +15,5 @@
# NOTE(claudiub): Noop. We're just mirroring the image to staging.
ARG BASEIMAGE
FROM $BASEIMAGE
LABEL image_version="v1.0"

View File

@ -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"]

View File

@ -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"

View File

@ -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"]

View File

@ -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"

View File

@ -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"]

View File

@ -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"

View File

@ -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"]

View File

@ -15,3 +15,5 @@
# NOTE(claudiub): Noop. We're just mirroring the image to staging.
ARG BASEIMAGE
FROM $BASEIMAGE
LABEL image_version="5.26"