Skip to content

Commit

Permalink
ci: remove buildkit support (#1667)
Browse files Browse the repository at this point in the history
  • Loading branch information
mayeut authored Sep 5, 2024
1 parent 453a6d7 commit a38de64
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 100 deletions.
20 changes: 11 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
language: c
os: linux
dist: focal
addons:
apt:
sources:
- sourceline: 'deb https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable'
key_url: 'https://download.docker.com/linux/ubuntu/gpg'
packages:
- docker-ce docker-ce-cli containerd.io docker-buildx-plugin
services:
- docker

Expand Down Expand Up @@ -59,11 +66,10 @@ before_install:
- if [ -d "${HOME}/buildx-cache/.buildx-cache-${POLICY}_${PLATFORM}" ]; then cp -rlf ${HOME}/buildx-cache/.buildx-cache-${POLICY}_${PLATFORM} ./; fi

install:
- uptime
- nproc
- free
- cat /proc/cpuinfo
- ./travisci-install-buildx.sh
- docker version
- docker buildx version
- docker buildx create --name builder-manylinux --driver docker-container --use
- docker buildx inspect --bootstrap --builder builder-manylinux 2>&1 | tee /dev/null

script: |
BUILD_STATUS=success
Expand All @@ -88,7 +94,3 @@ deploy:
on:
branch: main
repo: pypa/manylinux

after_script:
- if [ -f ${HOME}/dockerd-rootless.pid ]; then kill -15 $(cat ${HOME}/dockerd-rootless.pid); fi
- if [ -f /tmp/buildkitd.pid ]; then sudo kill -15 $(cat /tmp/buildkitd.pid); fi
11 changes: 0 additions & 11 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,17 +99,6 @@ elif [ "${MANYLINUX_BUILD_FRONTEND}" == "docker-buildx" ]; then
--cache-from=type=local,src=$(pwd)/.buildx-cache-${POLICY}_${PLATFORM} \
--cache-to=type=local,dest=$(pwd)/.buildx-cache-staging-${POLICY}_${PLATFORM},mode=max \
${BUILD_ARGS_COMMON}
elif [ "${MANYLINUX_BUILD_FRONTEND}" == "buildkit" ]; then
USE_LOCAL_CACHE=1
buildctl build \
--frontend=dockerfile.v0 \
--local context=./docker/ \
--local dockerfile=./docker/ \
--import-cache type=local,src=$(pwd)/.buildx-cache-${POLICY}_${PLATFORM} \
--export-cache type=local,dest=$(pwd)/.buildx-cache-staging-${POLICY}_${PLATFORM},mode=max \
--opt build-arg:POLICY=${POLICY} --opt build-arg:PLATFORM=${PLATFORM} --opt build-arg:BASEIMAGE=${BASEIMAGE} \
--opt "build-arg:DEVTOOLSET_ROOTPATH=${DEVTOOLSET_ROOTPATH}" --opt "build-arg:PREPEND_PATH=${PREPEND_PATH}" --opt "build-arg:LD_LIBRARY_PATH_ARG=${LD_LIBRARY_PATH_ARG}" \
--output type=docker,name=quay.io/pypa/${POLICY}_${PLATFORM}:${COMMIT_SHA} | docker load
else
echo "Unsupported build frontend: '${MANYLINUX_BUILD_FRONTEND}'"
exit 1
Expand Down
80 changes: 0 additions & 80 deletions travisci-install-buildx.sh

This file was deleted.

0 comments on commit a38de64

Please sign in to comment.