docker-py/tests
Sebastiaan van Stijn ee2310595d
test: remove APT_MIRROR from Dockerfile (#3145)
The official Python images on Docker Hub switched to debian bookworm,
which is now the current stable version of Debian.

However, the location of the apt repository config file changed, which
causes the Dockerfile build to fail;

    Loaded image: emptyfs:latest
    Loaded image ID: sha256:0df1207206e5288f4a989a2f13d1f5b3c4e70467702c1d5d21dfc9f002b7bd43
    INFO: Building docker-sdk-python3:5.0.3...
    tests/Dockerfile:6
    --------------------
       5 |     ARG APT_MIRROR
       6 | >>> RUN sed -ri "s/(httpredir|deb).debian.org/${APT_MIRROR:-deb.debian.org}/g" /etc/apt/sources.list \
       7 | >>>     && sed -ri "s/(security).debian.org/${APT_MIRROR:-security.debian.org}/g" /etc/apt/sources.list
       8 |
    --------------------
    ERROR: failed to solve: process "/bin/sh -c sed -ri \"s/(httpredir|deb).debian.org/${APT_MIRROR:-deb.debian.org}/g\" /etc/apt/sources.list     && sed -ri \"s/(security).debian.org/${APT_MIRROR:-security.debian.org}/g\" /etc/apt/sources.list" did not complete successfully: exit code: 2

The APT_MIRROR build-arg was originally added when the Debian package
repositories were known to be unreliable, but that hasn't been the
case for quite a while, so let's remove this altogether.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Milas Bowman <milas.bowman@docker.com>
Co-authored-by: Milas Bowman <milas.bowman@docker.com>
2023-08-14 15:12:44 -04:00
..
gpg-keys Make dockerpycreds part of the SDK under docker.credentials 2019-04-30 23:37:55 -07:00
integration tests/integration: update some tests for updated error-messages 2023-08-14 14:52:58 +02:00
ssh ci: run SSH integration tests (#3012) 2022-07-27 16:25:27 -04:00
unit feat: add pause option to commit api (#3159) 2023-08-14 14:52:38 -04:00
Dockerfile test: remove APT_MIRROR from Dockerfile (#3145) 2023-08-14 15:12:44 -04:00
Dockerfile-dind-certs ci: use latest stable syntax for Dockerfiles (#3035) 2022-08-19 15:09:12 -04:00
Dockerfile-ssh-dind ci: use latest stable syntax for Dockerfiles (#3035) 2022-08-19 15:09:12 -04:00
__init__.py Create tests module for setuptools test support 2013-07-13 01:07:04 -05:00
helpers.py Support `global-job` and `replicated-job` modes in Docker Swarm (#3016) 2022-08-11 16:20:31 -04:00