mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-07-26 06:26:29 +00:00
some cleanups
This commit is contained in:
parent
7d509f8b96
commit
b54d99139a
20
Dockerfile
Normal file
20
Dockerfile
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
FROM ubuntu:16.04
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get install -y \
|
||||||
|
wget patch cpio python unzip rsync bc bzip2 ncurses-dev git make g++ python-matplotlib python-numpy
|
||||||
|
|
||||||
|
ARG BUILDROOT_VERSION=2017.11.2
|
||||||
|
ARG BUILDROOT_BOARD=vm
|
||||||
|
|
||||||
|
# Get buildroot
|
||||||
|
WORKDIR /buildroot
|
||||||
|
RUN wget https://buildroot.org/downloads/buildroot-${BUILDROOT_VERSION}.tar.gz \
|
||||||
|
tar xvzf buildroot-${BUILDROOT_VERSION}.tar.gz
|
||||||
|
|
||||||
|
# Download all the required files
|
||||||
|
COPY $BUILDROOT_BOARD/buildroot.config /buildroot/buildroot-$BUILDROOT_VERSION/.config
|
||||||
|
COPY $BUILDROOT_BOARD/linux.config /buildroot/buildroot-$BUILDROOT_VERSION/linux.config
|
||||||
|
WORKDIR /buildroot/buildroot-$BUILDROOT_VERSION
|
||||||
|
RUN make source
|
||||||
|
|
||||||
|
# CMD /buildroot/buildroot-$BUILDROOT_VERSION/make
|
@ -1,22 +0,0 @@
|
|||||||
FROM ubuntu:16.04
|
|
||||||
|
|
||||||
MAINTAINER Alex Harvey
|
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y wget
|
|
||||||
|
|
||||||
# Get buildroot
|
|
||||||
RUN mkdir /buildroot
|
|
||||||
WORKDIR /buildroot/
|
|
||||||
RUN wget https://buildroot.org/downloads/buildroot-2017.11.1.tar.gz
|
|
||||||
RUN tar xvzf buildroot-2017.11.1.tar.gz
|
|
||||||
|
|
||||||
# Get build requirements
|
|
||||||
RUN apt-get install -y patch cpio python unzip rsync bc bzip2 ncurses-dev git make g++ python-matplotlib python-numpy
|
|
||||||
|
|
||||||
# Download all the required files
|
|
||||||
COPY vm/buildroot.config /buildroot/buildroot-2017.11.1/.config
|
|
||||||
COPY vm/linux.config /buildroot/buildroot-2017.11.1/linux.config
|
|
||||||
WORKDIR /buildroot/buildroot-2017.11.1/
|
|
||||||
RUN make source
|
|
||||||
|
|
||||||
# CMD /buildroot/buildroot-2017.11.1/make
|
|
Loading…
x
Reference in New Issue
Block a user