Skip to content

Commit

Permalink
Merge pull request #66 from crogers1/ghc8
Browse files Browse the repository at this point in the history
[ghc8] Add new Debian 11 (Bullseye) Dockerfile
  • Loading branch information
jandryuk authored Dec 18, 2023
2 parents 961e216 + 636310f commit 32bbd6f
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 1 deletion.
54 changes: 54 additions & 0 deletions Dockerfiles/openxt-bullseye-oe64
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"]
2 changes: 1 addition & 1 deletion Dockerfiles/openxt-master

0 comments on commit 32bbd6f

Please sign in to comment.