xref: /haiku/3rdparty/docker/bootstrap/Dockerfile (revision 6f9861ccf7620c328365df123d96bbbd549f744e)
1131f0990SAlexander von Gluck IVFROM debian
2131f0990SAlexander von Gluck IV
3131f0990SAlexander von Gluck IVENV DEBIAN_FRONTEND="noninteractive"
4131f0990SAlexander von Gluck IV
5131f0990SAlexander von Gluck IVRUN apt-get update
6bae2263dSAlexander von Gluck IV
7bae2263dSAlexander von Gluck IV# Base Haiku requirements
8*6f9861ccSAlexander von Gluck IVRUN apt-get install -y git nasm autoconf automake autopoint texinfo \
9*6f9861ccSAlexander von Gluck IV	flex bison gawk build-essential unzip wget zip less zlib1g-dev \
10131f0990SAlexander von Gluck IV	libcurl4-openssl-dev genisoimage libtool mtools gcc-multilib \
11131f0990SAlexander von Gluck IV	u-boot-tools util-linux device-tree-compiler bc
12131f0990SAlexander von Gluck IV
13db408f18SAugustin Cavalier# GCC requirements
14bae2263dSAlexander von Gluck IVRUN apt-get install -y python
15db408f18SAugustin Cavalier# zlib requirements
161b7e0197SAlexander von Gluck IVRUN apt-get install -y cmake
17db408f18SAugustin Cavalier# ICU requirements
1888500493SAlexander von Gluck IVRUN apt-get install -y pkg-config
19db408f18SAugustin Cavalier# texinfo requirements
20db408f18SAugustin CavalierRUN apt-get install -y libncurses-dev
21db408f18SAugustin Cavalier
227f944227SAlexander von Gluck IV# Developer sundries (that won't impact bootstrap)
237f944227SAlexander von Gluck IVRUN apt-get install -y vim nano
247f944227SAlexander von Gluck IVRUN echo "source /usr/share/vim/vim80/defaults.vim" > ~/.vimrc
257f944227SAlexander von Gluck IVRUN echo "set mouse=" >> ~/.vimrc
261b7e0197SAlexander von Gluck IV
27d214cb5eSAlexander von Gluck IVENV GIT_BUILDTOOLS="https://review.haiku-os.org/buildtools"
28d214cb5eSAlexander von Gluck IVENV GIT_HAIKU="https://review.haiku-os.org/haiku"
29131f0990SAlexander von Gluck IVENV GIT_HAIKUPORTER="https://github.com/haikuports/haikuporter.git"
30131f0990SAlexander von Gluck IVENV GIT_HAIKUPORTS="https://github.com/haikuports/haikuports.git"
31131f0990SAlexander von Gluck IVENV GIT_HAIKUPORTS_CROSS="https://github.com/haikuports/haikuports.cross.git"
32131f0990SAlexander von Gluck IV
33131f0990SAlexander von Gluck IVADD prep.sh /usr/local/bin/prep
34131f0990SAlexander von Gluck IVADD crosstools.sh /usr/local/bin/crosstools
35131f0990SAlexander von Gluck IVADD bootstrap.sh /usr/local/bin/bootstrap
3654624bdaSAlexander von Gluck IVADD haikuports_chroot.sh /usr/local/bin/haikuports_chroot
3754624bdaSAlexander von Gluck IVADD haikuports_build.sh /usr/local/bin/haikuports_build
38131f0990SAlexander von Gluck IV
39131f0990SAlexander von Gluck IVENV WORKPATH="/work"
40131f0990SAlexander von Gluck IVENV PATH="$PATH:$WORKPATH/bin"
41131f0990SAlexander von Gluck IV
42131f0990SAlexander von Gluck IVWORKDIR "/work"
43131f0990SAlexander von Gluck IVVOLUME ["/work"]
44131f0990SAlexander von Gluck IV
45131f0990SAlexander von Gluck IVENTRYPOINT ["/bin/bash", "-c"]
46