1
0
mirror of https://github.com/rancher/os-kernel.git synced 2025-07-14 05:34:03 +00:00
os-kernel/Dockerfile.dapper

49 lines
1.5 KiB
Docker
Raw Normal View History

2018-01-27 06:41:22 +00:00
FROM gcc:7.3.0
# FROM arm64=arm64v8/gcc:7.3.0
2015-12-23 15:13:15 +00:00
RUN apt-get update \
2018-11-30 09:12:34 +00:00
&& apt-get install -y ccache vim gnupg2 locales bc kmod libelf-dev \
&& rm -f /bin/sh && ln -s /bin/bash /bin/sh
# Install dapper
RUN curl -sL https://releases.rancher.com/dapper/latest/dapper-$(uname -s)-$(uname -m | sed 's/arm.*/arm/') > /usr/bin/dapper \
&& chmod +x /usr/bin/dapper
ENTRYPOINT ["./scripts/entry"]
CMD ["ci"]
2015-12-23 15:13:15 +00:00
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
2018-11-30 09:12:34 +00:00
ARG DAPPER_HOST_ARCH
ENV HOST_ARCH=${DAPPER_HOST_ARCH} ARCH=${DAPPER_HOST_ARCH}
2018-01-18 15:10:33 +00:00
ENV DAPPER_DOCKER_SOCKET true
ENV DAPPER_SOURCE /source
ENV DAPPER_OUTPUT ./dist
#ENV DAPPER_RUN_ARGS --privileged
2015-12-23 15:13:15 +00:00
ENV SHELL /bin/bash
ENV HOME ${DAPPER_SOURCE}
2015-12-23 15:13:15 +00:00
WORKDIR ${DAPPER_SOURCE}
2016-07-10 05:07:19 +00:00
ARG OS_REPO=rancher
2018-01-18 15:10:33 +00:00
ARG KERNEL_TAG
ARG KERNEL_VERSION=${KERNEL_TAG}-${OS_REPO}
2018-01-18 15:10:33 +00:00
ENV OS_REPO=${OS_REPO} \
2018-11-30 09:12:34 +00:00
DOCKER_URL=DOCKER_URL_${ARCH} \
2018-01-18 15:10:33 +00:00
DOCKER_URL_amd64=https://get.docker.com/builds/Linux/x86_64/docker-1.10.3 \
2018-11-30 09:12:34 +00:00
DOCKER_URL_arm64=https://github.com/rancher/docker/releases/download/v1.10.3-ros1/docker-1.10.3_arm64 \
2018-01-18 15:10:33 +00:00
KERNEL_TAG=${KERNEL_TAG} \
KERNEL_VERSION=${KERNEL_VERSION} \
KERNEL_URL=https://cdn.kernel.org/pub/linux/kernel/v4.x/ \
KERNEL_TAR=linux-${KERNEL_TAG}.tar.xz \
2018-11-30 09:12:34 +00:00
KERNEL_SIGN=linux-${KERNEL_TAG}.tar.sign \
KERNEL_ARCH=x86
2018-01-18 15:10:33 +00:00
# for rc testing
#ENV KERNEL_URL=https://cdn.kernel.org/pub/linux/kernel/v4.x/testing/linux-${KERNEL_TAG}.tar.xz
# Install Docker
2018-11-30 09:12:34 +00:00
RUN curl -fL ${!DOCKER_URL} > /usr/bin/docker && \
chmod +x /usr/bin/docker