mirror of
https://github.com/rancher/os.git
synced 2025-07-16 08:05:51 +00:00
39 lines
1.3 KiB
Docker
39 lines
1.3 KiB
Docker
FROM golang:1.5.3
|
|
|
|
RUN apt-get update && apt-get -y install libselinux-dev pkg-config
|
|
RUN curl -o /usr/local/bin/docker -L https://get.docker.com/builds/Linux/x86_64/docker-1.9.1 && \
|
|
chmod +x /usr/local/bin/docker
|
|
|
|
ENV DAPPER_SOURCE /go/src/github.com/rancher/docker-from-scratch
|
|
ENV DAPPER_OUTPUT ""
|
|
ENV DAPPER_DOCKER_SOCKET true
|
|
ENV DAPPER_ENV NO_TEST
|
|
|
|
ENV GO15VENDOREXPERIMENT 1
|
|
|
|
RUN mkdir -p ${DAPPER_SOURCE} && ln -s ${DAPPER_SOURCE} /source
|
|
|
|
WORKDIR ${DAPPER_SOURCE}
|
|
|
|
RUN mkdir -p assets
|
|
|
|
WORKDIR ${DAPPER_SOURCE}/assets
|
|
RUN curl -OL https://github.com/rancher/docker-from-scratch/releases/download/bin-v0.3.1/base-files_amd64.tar.gz
|
|
RUN curl -OL https://github.com/rancher/docker-from-scratch/releases/download/bin-v0.3.1/base-files_arm.tar.gz
|
|
|
|
RUN curl -o ./docker_amd64 -L https://get.docker.com/builds/Linux/x86_64/docker-1.10.2 && \
|
|
chmod +x ./docker_amd64
|
|
RUN curl -o ./docker_arm -L https://github.com/rancher/docker/releases/download/v1.10.2-ros_arm/docker-1.10.2 && \
|
|
chmod +x ./docker_arm
|
|
|
|
WORKDIR ${DAPPER_SOURCE}
|
|
|
|
COPY ./scripts/crosstools.list /etc/apt/sources.list.d/
|
|
|
|
RUN sh -c 'curl http://emdebian.org/tools/debian/emdebian-toolchain-archive.key | apt-key add -' && \
|
|
dpkg --add-architecture armhf && \
|
|
apt-get update && \
|
|
apt-get install -y crossbuild-essential-armhf
|
|
|
|
CMD ./scripts/ci
|