add real dockerfiles
This commit is contained in:
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
@@ -4,7 +4,8 @@ pipeline {
|
|||||||
parameters {
|
parameters {
|
||||||
booleanParam(name: 'BUILD_ALL_PROFILES', defaultValue: true, description: 'Build all profiles one by one')
|
booleanParam(name: 'BUILD_ALL_PROFILES', defaultValue: true, description: 'Build all profiles one by one')
|
||||||
string(name: 'PROFILE', defaultValue: 'demo', description: 'Profile to build when BUILD_ALL_PROFILES is false')
|
string(name: 'PROFILE', defaultValue: 'demo', description: 'Profile to build when BUILD_ALL_PROFILES is false')
|
||||||
string(name: 'PYTHON_IMAGE', defaultValue: 'python:3.11-alpine', description: 'Default image for Python/control-plane steps')
|
string(name: 'PYTHON_IMAGE', defaultValue: '', description: 'Default image for Python/control-plane steps')
|
||||||
|
string(name: 'PYTHON_DOCKERFILE', defaultValue: '', description: 'Optional default Dockerfile path for Python/control-plane steps')
|
||||||
string(name: 'ETCH_IMAGE', defaultValue: '', description: 'Default Etch image when ETCH_DOCKERFILE is empty')
|
string(name: 'ETCH_IMAGE', defaultValue: '', description: 'Default Etch image when ETCH_DOCKERFILE is empty')
|
||||||
string(name: 'ETCH_DOCKERFILE', defaultValue: '', description: 'Optional default Dockerfile path for Etch runtime')
|
string(name: 'ETCH_DOCKERFILE', defaultValue: '', description: 'Optional default Dockerfile path for Etch runtime')
|
||||||
string(name: 'LENNY_IMAGE', defaultValue: '', description: 'Default Lenny image when LENNY_DOCKERFILE is empty')
|
string(name: 'LENNY_IMAGE', defaultValue: '', description: 'Default Lenny image when LENNY_DOCKERFILE is empty')
|
||||||
@@ -55,9 +56,9 @@ pipeline {
|
|||||||
return defaultImage
|
return defaultImage
|
||||||
}
|
}
|
||||||
|
|
||||||
def pythonDefaultImage = params.PYTHON_IMAGE.trim()
|
def pythonDefaultImage = resolveDefaultRuntimeImage('python:3.11-alpine', params.PYTHON_IMAGE, params.PYTHON_DOCKERFILE)
|
||||||
def etchDefaultImage = resolveDefaultRuntimeImage('etch-default', params.ETCH_IMAGE, params.ETCH_DOCKERFILE)
|
def etchDefaultImage = resolveDefaultRuntimeImage('lpenz/debian-etch-i386-minbase:3a679960e616', params.ETCH_IMAGE, params.ETCH_DOCKERFILE)
|
||||||
def lennyDefaultImage = resolveDefaultRuntimeImage('lenny-default', params.LENNY_IMAGE, params.LENNY_DOCKERFILE)
|
def lennyDefaultImage = resolveDefaultRuntimeImage('lpenz/debian-lenny-i386-minbase:dbb13ddf3300', params.LENNY_IMAGE, params.LENNY_DOCKERFILE)
|
||||||
|
|
||||||
def featureNames = []
|
def featureNames = []
|
||||||
docker.image(pythonDefaultImage).inside {
|
docker.image(pythonDefaultImage).inside {
|
||||||
|
|||||||
2
builder/docker/builder-alpine/Dockerfile
Normal file
2
builder/docker/builder-alpine/Dockerfile
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
FROM python:3.11-alpine
|
||||||
|
RUN apk add --no-cache git ca-certificates
|
||||||
6
builder/docker/live-helper/Dockerfile
Normal file
6
builder/docker/live-helper/Dockerfile
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
FROM lpenz/debian-lenny-i386-minbase:dbb13ddf3300
|
||||||
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
ARG ARCH=i386
|
||||||
|
RUN apt-get update && \
|
||||||
|
apt-get -y --force-yes install live-helper genisoimage syslinux squashfs-tools aptitude && \
|
||||||
|
apt-get clean
|
||||||
32
builder/docker/packages-builder-etch/Dockerfile
Normal file
32
builder/docker/packages-builder-etch/Dockerfile
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
# building a modified Kernel + modules + libs
|
||||||
|
FROM lpenz/debian-etch-i386-minbase:3a679960e616
|
||||||
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
ARG ARCH=i386
|
||||||
|
ARG CONCURRENCY_LEVEL=4
|
||||||
|
|
||||||
|
# Preparing Environment
|
||||||
|
RUN (echo "deb http://archive.debian.org/debian etch main contrib non-free" > /etc/apt/sources.list) && \
|
||||||
|
(echo "deb-src http://archive.debian.org/debian etch main contrib non-free" >> /etc/apt/sources.list) && \
|
||||||
|
mkdir -p /usr/src/modules &&\
|
||||||
|
apt-get update && \
|
||||||
|
apt-get install -y aptitude build-essential quilt cvs unzip git-core ncurses-dev\
|
||||||
|
linux-headers-2.6.24-etchnhalf.1-686 \
|
||||||
|
squashfs-source-etchnhalf \
|
||||||
|
linux-source-2.6.24 && \
|
||||||
|
apt-get build-dep -y linux-image-2.6.24-etchnhalf.1-686 && \
|
||||||
|
apt-get clean
|
||||||
|
|
||||||
|
# Preparing Kernel + patchs + modules
|
||||||
|
WORKDIR /usr/src
|
||||||
|
COPY unionfs-2.2.3_for_2.6.24.diff.gz ./
|
||||||
|
RUN tar xjf linux-source-2.6.24.tar.bz2 && \
|
||||||
|
tar xjf etchnhalf/squashfs.tar.bz2 && \
|
||||||
|
ln -s linux-headers-2.6.24-etchnhalf.1-686/ linux-headers
|
||||||
|
|
||||||
|
# Building Kernel + patchs + modules
|
||||||
|
WORKDIR /usr/src/linux-source-2.6.24
|
||||||
|
COPY config-kernel ./
|
||||||
|
RUN (zcat /usr/src/unionfs-2.2.3_for_2.6.24.diff.gz | patch -p1) && \
|
||||||
|
(cat config-kernel > .config) && \
|
||||||
|
make oldconfig &&\
|
||||||
|
make-kpkg --initrd --arch $ARCH kernel_headers kernel_image modules_image
|
||||||
Reference in New Issue
Block a user