File tree Expand file tree Collapse file tree 3 files changed +11
-100
lines changed Expand file tree Collapse file tree 3 files changed +11
-100
lines changed Original file line number Diff line number Diff line change 11language : c
22os : linux
33dist : focal
4+ addons :
5+ apt :
6+ sources :
7+ - sourceline : ' deb https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable'
8+ key_url : ' https://download.docker.com/linux/ubuntu/gpg'
9+ packages :
10+ - docker-ce docker-ce-cli containerd.io docker-buildx-plugin
411services :
512 - docker
613
@@ -59,11 +66,10 @@ before_install:
5966 - if [ -d "${HOME}/buildx-cache/.buildx-cache-${POLICY}_${PLATFORM}" ]; then cp -rlf ${HOME}/buildx-cache/.buildx-cache-${POLICY}_${PLATFORM} ./; fi
6067
6168install :
62- - uptime
63- - nproc
64- - free
65- - cat /proc/cpuinfo
66- - ./travisci-install-buildx.sh
69+ - docker version
70+ - docker buildx version
71+ - docker buildx create --name builder-manylinux --driver docker-container --use
72+ - docker buildx inspect --bootstrap --builder builder-manylinux 2>&1 | tee /dev/null
6773
6874script : |
6975 BUILD_STATUS=success
@@ -88,7 +94,3 @@ deploy:
8894 on :
8995 branch : main
9096 repo : pypa/manylinux
91-
92- after_script :
93- - if [ -f ${HOME}/dockerd-rootless.pid ]; then kill -15 $(cat ${HOME}/dockerd-rootless.pid); fi
94- - if [ -f /tmp/buildkitd.pid ]; then sudo kill -15 $(cat /tmp/buildkitd.pid); fi
Original file line number Diff line number Diff line change @@ -99,17 +99,6 @@ elif [ "${MANYLINUX_BUILD_FRONTEND}" == "docker-buildx" ]; then
9999 --cache-from=type=local,src=$( pwd) /.buildx-cache-${POLICY} _${PLATFORM} \
100100 --cache-to=type=local,dest=$( pwd) /.buildx-cache-staging-${POLICY} _${PLATFORM} ,mode=max \
101101 ${BUILD_ARGS_COMMON}
102- elif [ " ${MANYLINUX_BUILD_FRONTEND} " == " buildkit" ]; then
103- USE_LOCAL_CACHE=1
104- buildctl build \
105- --frontend=dockerfile.v0 \
106- --local context=./docker/ \
107- --local dockerfile=./docker/ \
108- --import-cache type=local,src=$( pwd) /.buildx-cache-${POLICY} _${PLATFORM} \
109- --export-cache type=local,dest=$( pwd) /.buildx-cache-staging-${POLICY} _${PLATFORM} ,mode=max \
110- --opt build-arg:POLICY=${POLICY} --opt build-arg:PLATFORM=${PLATFORM} --opt build-arg:BASEIMAGE=${BASEIMAGE} \
111- --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} " \
112- --output type=docker,name=quay.io/pypa/${POLICY} _${PLATFORM} :${COMMIT_SHA} | docker load
113102else
114103 echo " Unsupported build frontend: '${MANYLINUX_BUILD_FRONTEND} '"
115104 exit 1
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments