Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[kube] use local image for kubernetes integration tests #48321

Merged
merged 7 commits into from
Nov 4, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .github/workflows/kube-integration-tests-non-root.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,6 @@ jobs:

- name: Build Alpine image with webserver
run: |
# download alpine minirootfs and signature
curl -fSsL -o ./fixtures/alpine/alpine-minirootfs-$ALPINE_VERSION-x86_64.tar.gz https://dl-cdn.alpinelinux.org/alpine/v3.20/releases/x86_64/alpine-minirootfs-$ALPINE_VERSION-x86_64.tar.gz
curl -fSsL -o ./fixtures/alpine/alpine-minirootfs-$ALPINE_VERSION-x86_64.tar.gz.asc https://dl-cdn.alpinelinux.org/alpine/v3.20/releases/x86_64/alpine-minirootfs-$ALPINE_VERSION-x86_64.tar.gz.asc
curl -fSsL -o ./fixtures/alpine/alpine-minirootfs-$ALPINE_VERSION-x86_64.tar.gz.sha256 https://dl-cdn.alpinelinux.org/alpine/v3.20/releases/x86_64/alpine-minirootfs-$ALPINE_VERSION-x86_64.tar.gz.sha256

# verify the checksum
cd ./fixtures/alpine/ && sha256sum -c alpine-minirootfs-$ALPINE_VERSION-x86_64.tar.gz.sha256 && cd -

Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ default.etcd

# usually release tarballs get in the way
*.gz
# ignore all tarballs except the alpine one
!fixtures/alpine/alpine-minirootfs-*.tar.gz
*.zip

# editors
Expand Down
21 changes: 20 additions & 1 deletion fixtures/alpine/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,26 @@ The `alpine-webserver:v1` image is based on `alpine` `minirootfs`, but instead o

The build process is specified in the `.github/workflows/kube-integration-tests-non-root.yaml` file.

To avoid distributing Alpine Linux within the Teleport repository, we download it fresh from the Alpine CDN with each build. The download includes the minirootfs (3.3MB), along with the corresponding SHA-256 checksum and GPG signature files for verification.
## Download

To download the new `alpine-minirootfs` image, follow the instructions:

Define the desired Alpine version:

```bash
$ export ALPINE_VERSION=3.20.3
```

Download the asset files: filesystem, signature and sha256.

```bash

tigrato marked this conversation as resolved.
Show resolved Hide resolved
# download alpine minirootfs and signature
$ curl -fSsL -o ./fixtures/alpine/alpine-minirootfs-$ALPINE_VERSION-x86_64.tar.gz https://dl-cdn.alpinelinux.org/alpine/v3.20/releases/x86_64/alpine-minirootfs-$ALPINE_VERSION-x86_64.tar.gz
$ curl -fSsL -o ./fixtures/alpine/alpine-minirootfs-$ALPINE_VERSION-x86_64.tar.gz.asc https://dl-cdn.alpinelinux.org/alpine/v3.20/releases/x86_64/alpine-minirootfs-$ALPINE_VERSION-x86_64.tar.gz.asc
$ curl -fSsL -o ./fixtures/alpine/alpine-minirootfs-$ALPINE_VERSION-x86_64.tar.gz.sha256 https://dl-cdn.alpinelinux.org/alpine/v3.20/releases/x86_64/alpine-minirootfs-$ALPINE_VERSION-x86_64.tar.gz.sha256
tigrato marked this conversation as resolved.
Show resolved Hide resolved

```

## Source Validation

Expand Down
Binary file not shown.
16 changes: 16 additions & 0 deletions fixtures/alpine/alpine-minirootfs-3.20.3-x86_64.tar.gz.asc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEBILYQCL1LfHE581DKTrNCQfZSVoFAmba9QIACgkQKTrNCQfZ
SVroKRAAsqQ3f8KwCvZizz53MA7pm9PWZJPYyjNIDNzwEHZFnkfrO/zTySbkPQp2
D1PHrGdhkAX8dJaKOq/d4T3Dr5UOuARZeJSsy287eW2wj07mN6YkleDL4utebrfq
IHGvaXEGQJKxreRritX4BfA1FD+BiveV+2S1O4NTbkifdj4WbT1gxp+ZKp53T9bU
UP9+8V9GRGHotdxsB5dd3YbGNkS4JGWGHp2h6ih9A1au9C7GRUFpQ2nk2cbkycDu
EA0SA8Tam8QNaBZHBWQxgmEw2iqfZPxIAqc188GzXeO8GWGjXILR2t4wOEEEmRa3
g8REzQ8xpVOs/6y2woolNZWYFi5lCc1Do+KxRbdyEP3P1scz5D2FYfA8I6i/iwk9
TR155MItfdB7nPDTvkR6p0xpI5H1V6sSKKk2EricwyvTKVoTBYa19h8pIA7fOzqQ
h32qlxW0Xfn96VZUvlsxCuPlJT8nAkxE1uotmJPb5NIuLo2SLgTB4eHKhvnryi0c
WYtrogEC5rCF+btCU3/7DcMd7BJnPW3otUQL/+iAxWlCQ4YoKx9qltC1O8qres5p
9hbF7Wv88aEuqfoi1JZDaAACeITAKLEMWaiT9pCXLJ0EeghE2y5yfC7kTh4+faS6
+cGoY1+Zmvp6o0ENG+GURkn7jx6WJ3MC9zaEgmfYbovPov4iBLg=
=+T7J
-----END PGP SIGNATURE-----
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
d4e6fd67dcf75e40c451560ac7265166c2b72a0f38ddc9aae756a7de3d1efa0c alpine-minirootfs-3.20.3-x86_64.tar.gz
Loading