Initial commit
commit
857c5c2b19
|
@ -0,0 +1,7 @@
|
||||||
|
FROM arm32v7/python:3.7-slim
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get install -y \
|
||||||
|
gcc \
|
||||||
|
libffi-dev \
|
||||||
|
libssl-dev \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
|
@ -0,0 +1,17 @@
|
||||||
|
def containerName
|
||||||
|
|
||||||
|
node('arm') {
|
||||||
|
stage('Checkout SCM') {
|
||||||
|
checkout scm
|
||||||
|
}
|
||||||
|
stage('Agent Setup') {
|
||||||
|
containerName = sh(
|
||||||
|
script: 'sha1sum Containerfile',
|
||||||
|
returnStdout: true
|
||||||
|
).split()[0]
|
||||||
|
sh "podman build -t ${containerName} -f Containerfile"
|
||||||
|
}
|
||||||
|
stage('Build Wheels') {
|
||||||
|
sh "podman run -w ${WORKSPACE} -v ${WORKSPACE}:${WORKSPACE} ${containerName} sh build.sh"
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue