2018-11-02 23:03:48 +03:00
|
|
|
FROM debian
|
|
|
|
|
|
|
|
ENV DEBIAN_FRONTEND="noninteractive"
|
|
|
|
|
|
|
|
RUN apt-get update
|
2018-11-03 00:32:59 +03:00
|
|
|
|
|
|
|
# Base Haiku requirements
|
2019-12-09 22:36:17 +03:00
|
|
|
RUN apt-get install -y git nasm autoconf automake autopoint texinfo \
|
|
|
|
flex bison gawk build-essential unzip wget zip less zlib1g-dev \
|
2018-11-02 23:03:48 +03:00
|
|
|
libcurl4-openssl-dev genisoimage libtool mtools gcc-multilib \
|
|
|
|
u-boot-tools util-linux device-tree-compiler bc
|
|
|
|
|
2019-06-15 23:21:25 +03:00
|
|
|
# GCC requirements
|
2018-11-03 00:32:59 +03:00
|
|
|
RUN apt-get install -y python
|
2019-06-15 23:21:25 +03:00
|
|
|
# zlib requirements
|
2018-11-04 18:04:48 +03:00
|
|
|
RUN apt-get install -y cmake
|
2019-06-15 23:21:25 +03:00
|
|
|
# ICU requirements
|
2018-11-04 18:12:54 +03:00
|
|
|
RUN apt-get install -y pkg-config
|
2019-06-15 23:21:25 +03:00
|
|
|
# texinfo requirements
|
|
|
|
RUN apt-get install -y libncurses-dev
|
|
|
|
|
2019-03-19 21:33:12 +03:00
|
|
|
# Developer sundries (that won't impact bootstrap)
|
|
|
|
RUN apt-get install -y vim nano
|
|
|
|
RUN echo "source /usr/share/vim/vim80/defaults.vim" > ~/.vimrc
|
|
|
|
RUN echo "set mouse=" >> ~/.vimrc
|
2018-11-04 18:04:48 +03:00
|
|
|
|
2019-04-15 21:25:55 +03:00
|
|
|
ENV GIT_BUILDTOOLS="https://review.haiku-os.org/buildtools"
|
|
|
|
ENV GIT_HAIKU="https://review.haiku-os.org/haiku"
|
2018-11-02 23:03:48 +03:00
|
|
|
ENV GIT_HAIKUPORTER="https://github.com/haikuports/haikuporter.git"
|
|
|
|
ENV GIT_HAIKUPORTS="https://github.com/haikuports/haikuports.git"
|
|
|
|
ENV GIT_HAIKUPORTS_CROSS="https://github.com/haikuports/haikuports.cross.git"
|
|
|
|
|
|
|
|
ADD prep.sh /usr/local/bin/prep
|
|
|
|
ADD crosstools.sh /usr/local/bin/crosstools
|
|
|
|
ADD bootstrap.sh /usr/local/bin/bootstrap
|
2019-02-15 20:25:00 +03:00
|
|
|
ADD haikuports_chroot.sh /usr/local/bin/haikuports_chroot
|
|
|
|
ADD haikuports_build.sh /usr/local/bin/haikuports_build
|
2018-11-02 23:03:48 +03:00
|
|
|
|
|
|
|
ENV WORKPATH="/work"
|
|
|
|
ENV PATH="$PATH:$WORKPATH/bin"
|
|
|
|
|
|
|
|
WORKDIR "/work"
|
|
|
|
VOLUME ["/work"]
|
|
|
|
|
|
|
|
ENTRYPOINT ["/bin/bash", "-c"]
|