-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #66 from crogers1/ghc8
[ghc8] Add new Debian 11 (Bullseye) Dockerfile
- Loading branch information
Showing
2 changed files
with
55 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
FROM multiarch/debian-debootstrap:amd64-bullseye | ||
MAINTAINER Daniel P. Smith <[email protected]> | ||
|
||
ARG UNAME=build | ||
ARG UID=1000 | ||
ARG GID=1000 | ||
|
||
RUN sed -i "/bullseye-updates/d" /etc/apt/sources.list | ||
|
||
RUN apt-get update && apt-get install -yq \ | ||
openssh-server openssl \ | ||
sed wget cvs subversion git-core coreutils \ | ||
unzip texi2html texinfo docbook-utils gawk diffstat \ | ||
help2man make gcc build-essential g++ desktop-file-utils chrpath cpio \ | ||
screen bash-completion python3 iputils-ping \ | ||
guilt iasl quilt bin86 \ | ||
bcc libsdl1.2-dev liburi-perl genisoimage policycoreutils unzip vim \ | ||
rpm curl libncurses5-dev libncursesw5 libc6-dev-i386 libelf-dev \ | ||
xorriso mtools dosfstools libgmp-dev \ | ||
file byobu man ca-certificates locales && \ | ||
rm -rf /var/lib/apt-lists/* && \ | ||
echo "dash dash/sh boolean false" | debconf-set-selections && \ | ||
DEBIAN_FRONTEND=noninteractive dpkg-reconfigure dash | ||
|
||
# Install the required version of GHC | ||
ARG GHC_VERSION=8.10.7 | ||
RUN cd /tmp && \ | ||
wget https://downloads.haskell.org/~ghc/${GHC_VERSION}/ghc-${GHC_VERSION}-x86_64-deb9-linux.tar.xz && \ | ||
tar Jxf ghc-${GHC_VERSION}-x86_64-deb9-linux.tar.xz && \ | ||
rm ghc-${GHC_VERSION}-x86_64-deb9-linux.tar.xz && \ | ||
cd ghc-${GHC_VERSION} && \ | ||
./configure --prefix=/usr && \ | ||
make install && \ | ||
cd /tmp && rm -rf ghc-${GHC_VERSION} | ||
|
||
# Add "repo" tool (used by many Yocto-based projects) | ||
RUN curl http://storage.googleapis.com/git-repo-downloads/repo > /usr/local/bin/repo && \ | ||
chmod a+x /usr/local/bin/repo | ||
|
||
# Symlink for troublesome packages | ||
RUN ln -s /lib64/ld-linux-x86-64.so.2 /lib/ | ||
|
||
RUN useradd -Ums /bin/bash -l -p '""' -u $UID $UNAME | ||
|
||
# Add quilt config files | ||
ADD root/home/build/.quiltrc /home/build/.quiltrc | ||
ADD root/home/build/oxt-patch.header /home/build/oxt-patch.header | ||
|
||
RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && \ | ||
locale-gen | ||
ENV LANG en_US.utf8 | ||
USER $UNAME | ||
WORKDIR /home/$UNAME | ||
ENTRYPOINT ["/bin/bash"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
openxt-buster-oe64 | ||
openxt-bullseye-oe64 |