mirror of
https://github.com/rancher/os-kernel.git
synced 2025-08-31 04:18:38 +00:00
KERNEL_TAG=4.9.10 make release ; dist/publish.sh
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
@@ -1,17 +1,6 @@
|
|||||||
FROM ubuntu:16.04
|
FROM ubuntu:16.04
|
||||||
# FROM arm64=aarch64/ubuntu:16.04 arm=armhf/ubuntu:16.04
|
# FROM arm64=aarch64/ubuntu:16.04 arm=armhf/ubuntu:16.04
|
||||||
|
|
||||||
ENV DAPPER_ENV ARCH VERSION DEV_BUILD GITHUB_TOKEN
|
|
||||||
ENV DAPPER_DOCKER_SOCKET true
|
|
||||||
ENV DAPPER_SOURCE /source
|
|
||||||
ENV DAPPER_OUTPUT ./dist
|
|
||||||
#ENV DAPPER_RUN_ARGS --privileged
|
|
||||||
|
|
||||||
######################
|
|
||||||
ARG DAPPER_HOST_ARCH=amd64
|
|
||||||
ARG HOST_ARCH=${DAPPER_HOST_ARCH}
|
|
||||||
ARG ARCH=${HOST_ARCH}
|
|
||||||
|
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y build-essential wget libncurses5-dev unzip bc curl python rsync ccache git vim libssl-dev kmod gnupg2
|
&& apt-get install -y build-essential wget libncurses5-dev unzip bc curl python rsync ccache git vim libssl-dev kmod gnupg2
|
||||||
|
|
||||||
@@ -25,6 +14,19 @@ CMD ["ci"]
|
|||||||
RUN locale-gen en_US.UTF-8
|
RUN locale-gen en_US.UTF-8
|
||||||
ENV LANG en_US.UTF-8
|
ENV LANG en_US.UTF-8
|
||||||
|
|
||||||
|
######################
|
||||||
|
ENV DAPPER_ENV ARCH VERSION DEV_BUILD GITHUB_TOKEN KERNEL_TAG
|
||||||
|
ENV DAPPER_DOCKER_SOCKET true
|
||||||
|
ENV DAPPER_SOURCE /source
|
||||||
|
ENV DAPPER_OUTPUT ./dist
|
||||||
|
#ENV DAPPER_RUN_ARGS --privileged
|
||||||
|
|
||||||
|
######################
|
||||||
|
ARG KERNEL_TAG=${KERNEL_TAG}
|
||||||
|
ARG DAPPER_HOST_ARCH=amd64
|
||||||
|
ARG HOST_ARCH=${DAPPER_HOST_ARCH}
|
||||||
|
ARG ARCH=${HOST_ARCH}
|
||||||
|
|
||||||
ENV SHELL /bin/bash
|
ENV SHELL /bin/bash
|
||||||
ENV HOME ${DAPPER_SOURCE}
|
ENV HOME ${DAPPER_SOURCE}
|
||||||
WORKDIR ${DAPPER_SOURCE}
|
WORKDIR ${DAPPER_SOURCE}
|
||||||
@@ -52,7 +54,8 @@ ENV DOCKER_URL=DOCKER_URL_${ARCH} \
|
|||||||
DOCKER_URL_arm=${DOCKER_URL_arm} \
|
DOCKER_URL_arm=${DOCKER_URL_arm} \
|
||||||
DOCKER_VERSION=${DOCKER_VERSION} \
|
DOCKER_VERSION=${DOCKER_VERSION} \
|
||||||
HOST_ARCH=${HOST_ARCH} \
|
HOST_ARCH=${HOST_ARCH} \
|
||||||
OS_REPO=${OS_REPO}
|
OS_REPO=${OS_REPO} \
|
||||||
|
KERNEL_TAG=${KERNEL_TAG}
|
||||||
|
|
||||||
#RUN rm /bin/sh && \
|
#RUN rm /bin/sh && \
|
||||||
# ln -s /bin/bash /bin/sh
|
# ln -s /bin/bash /bin/sh
|
||||||
@@ -62,7 +65,7 @@ RUN curl -fL ${DOCKER_URL_amd64} > /usr/bin/docker && \
|
|||||||
chmod +x /usr/bin/docker
|
chmod +x /usr/bin/docker
|
||||||
|
|
||||||
########## Kernel version Configuration #############################
|
########## Kernel version Configuration #############################
|
||||||
ENV KERNEL_TAG=4.9.8
|
#ENV KERNEL_TAG=4.9.9
|
||||||
ENV KERNEL_VERSION=${KERNEL_TAG}-rancher
|
ENV KERNEL_VERSION=${KERNEL_TAG}-rancher
|
||||||
#ENV KERNEL_SHA1=fa46da077c077467776cdc45a7b50d327a081ab4
|
#ENV KERNEL_SHA1=fa46da077c077467776cdc45a7b50d327a081ab4
|
||||||
ENV KERNEL_URL=https://cdn.kernel.org/pub/linux/kernel/v4.x/
|
ENV KERNEL_URL=https://cdn.kernel.org/pub/linux/kernel/v4.x/
|
||||||
|
5
Makefile
5
Makefile
@@ -1,4 +1,4 @@
|
|||||||
TARGETS := $(shell ls scripts)
|
TARGETS := $(shell ls scripts | grep -vE 'clean')
|
||||||
|
|
||||||
.dapper:
|
.dapper:
|
||||||
@echo Downloading dapper
|
@echo Downloading dapper
|
||||||
@@ -13,6 +13,9 @@ $(TARGETS): .dapper
|
|||||||
shell-bind: .dapper
|
shell-bind: .dapper
|
||||||
./.dapper -m bind -s
|
./.dapper -m bind -s
|
||||||
|
|
||||||
|
clean:
|
||||||
|
@./scripts/clean
|
||||||
|
|
||||||
.DEFAULT_GOAL := ci
|
.DEFAULT_GOAL := ci
|
||||||
|
|
||||||
.PHONY: $(TARGETS)
|
.PHONY: $(TARGETS)
|
||||||
|
11
README.md
11
README.md
@@ -2,7 +2,16 @@
|
|||||||
|
|
||||||
# Build kernel release archives for use in building RancherOS
|
# Build kernel release archives for use in building RancherOS
|
||||||
|
|
||||||
**Fill me in**
|
|
||||||
|
To build the tgz's and the kernel header & extras images, run:
|
||||||
|
|
||||||
|
`KERNEL_TAG=4.9.10 make release`
|
||||||
|
|
||||||
|
and if you're uploading them, set your GITHUB_TOKEN and login to docker hub, then run
|
||||||
|
|
||||||
|
(this requires https://github.com/aktau/github-release to be installed in your path)
|
||||||
|
|
||||||
|
`dist/publish.sh`
|
||||||
|
|
||||||
## packaging your own kernel builds
|
## packaging your own kernel builds
|
||||||
|
|
||||||
|
@@ -1,6 +1,12 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
if [[ "$KERNEL_TAG" == "" ]]; then
|
||||||
|
echo "ERROR: Please set the KERNEL_TAG (the mainline KERNEL version is also the git tag) you're building"
|
||||||
|
echo " e.g., KERNEL_TAG=4.9.10 make release"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
: ${ARTIFACTS:=$(pwd)/assets}
|
: ${ARTIFACTS:=$(pwd)/assets}
|
||||||
: ${BUILD:=/usr/src}
|
: ${BUILD:=/usr/src}
|
||||||
: ${CONFIG:=$(pwd)/config}
|
: ${CONFIG:=$(pwd)/config}
|
||||||
|
Reference in New Issue
Block a user