Skip to content
Snippets Groups Projects
Commit dcdb14f2 authored by Corné Lukken's avatar Corné Lukken
Browse files

CWG-75: Fix cibuildwheel for new tagged runner

parent e5b08646
No related branches found
No related tags found
No related merge requests found
Pipeline #77333 canceled
Pipeline: Python Binary Wheel Package

#77334

    This commit is part of merge request !5. Comments created here will be created in the context of that merge request.
    ......@@ -101,7 +101,6 @@ run_unit_tests_coverage:
    package_files:
    stage: package
    image: docker
    tags:
    - dind
    artifacts:
    ......@@ -109,8 +108,7 @@ package_files:
    paths:
    - dist/*
    script:
    # - curl -sSL https://get.docker.com/ | sh
    # - python -m pip install cibuildwheel==2.13.1 cookiecutter
    - source scripts/setup-docker-host.sh
    - cibuildwheel --platform linux --output-dir dist
    package_docs:
    ......
    ......@@ -2,3 +2,4 @@ FROM python:3.11
    RUN python -m pip install --upgrade pip
    RUN pip install --upgrade tox twine cibuildwheel==2.13.1
    RUN curl -sSL https://get.docker.com/ | sh
    #!/bin/sh
    _should_tls() {
    [ -n "${DOCKER_TLS_CERTDIR:-}" ] \
    && [ -s "$DOCKER_TLS_CERTDIR/client/ca.pem" ] \
    && [ -s "$DOCKER_TLS_CERTDIR/client/cert.pem" ] \
    && [ -s "$DOCKER_TLS_CERTDIR/client/key.pem" ]
    }
    # if we have no DOCKER_HOST but we do have the default Unix socket (standard or rootless), use it explicitly
    if [ -z "${DOCKER_HOST:-}" ] && [ -S /var/run/docker.sock ]; then
    export DOCKER_HOST=unix:///var/run/docker.sock
    elif [ -z "${DOCKER_HOST:-}" ] && XDG_RUNTIME_DIR="${XDG_RUNTIME_DIR:-/run/user/$(id -u)}" && [ -S "$XDG_RUNTIME_DIR/docker.sock" ]; then
    export DOCKER_HOST="unix://$XDG_RUNTIME_DIR/docker.sock"
    fi
    # if DOCKER_HOST isn't set (no custom setting, no default socket), let's set it to a sane remote value
    if [ -z "${DOCKER_HOST:-}" ]; then
    if _should_tls || [ -n "${DOCKER_TLS_VERIFY:-}" ]; then
    export DOCKER_HOST='tcp://docker:2376'
    else
    export DOCKER_HOST='tcp://docker:2375'
    fi
    fi
    if [ "${DOCKER_HOST#tcp:}" != "$DOCKER_HOST" ] \
    && [ -z "${DOCKER_TLS_VERIFY:-}" ] \
    && [ -z "${DOCKER_CERT_PATH:-}" ] \
    && _should_tls \
    ; then
    export DOCKER_TLS_VERIFY=1
    export DOCKER_CERT_PATH="$DOCKER_TLS_CERTDIR/client"
    fi
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment