Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
ci-images
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Glasgow Haskell Compiler
ci-images
Merge requests
!19
Add armv7 image
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add armv7 image
armv7
into
master
Overview
0
Commits
5
Pipelines
9
Changes
2
Merged
Ben Gamari
requested to merge
armv7
into
master
5 years ago
Overview
0
Commits
5
Pipelines
9
Changes
2
Expand
0
0
Merge request reports
Compare
master
version 8
4a1042b2
5 years ago
version 7
39e6ba80
5 years ago
version 6
4be92c13
5 years ago
version 5
1de7df77
5 years ago
version 4
a214bf30
5 years ago
version 3
59c0f714
5 years ago
version 2
3010f9cc
5 years ago
version 1
4dd1c8fd
5 years ago
master (base)
and
latest version
latest version
40ffd379
5 commits,
5 years ago
version 8
4a1042b2
5 commits,
5 years ago
version 7
39e6ba80
4 commits,
5 years ago
version 6
4be92c13
3 commits,
5 years ago
version 5
1de7df77
2 commits,
5 years ago
version 4
a214bf30
2 commits,
5 years ago
version 3
59c0f714
1 commit,
5 years ago
version 2
3010f9cc
1 commit,
5 years ago
version 1
4dd1c8fd
1 commit,
5 years ago
2 files
+
83
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
armv7-linux-deb9/Dockerfile
0 → 100644
+
73
−
0
Options
FROM
arm32v7/debian:stretch
ENV
LANG C.UTF-8
SHELL
["/bin/bash", "-o", "pipefail", "-c"]
# Core build utilities
RUN
apt-get update
\
&&
apt-get
install
--no-install-recommends
-qy
zlib1g-dev libtinfo-dev libgmp10 libsqlite3-0 libsqlite3-dev
\
ca-certificates g++ git make automake autoconf gcc
\
perl python3 texinfo xz-utils lbzip2 bzip2 patch openssh-client
sudo time
\
jq wget curl
\
# Documentation tools
python3-sphinx texlive-xetex texlive-latex-extra \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Boot LLVM
ENV
PATH /usr/local/bin:$PATH
ENV
LLVM_TARBALL http://releases.llvm.org/5.0.1/clang+llvm-5.0.1-armv7a-linux-gnueabihf.tar.xz
RUN
curl
$LLVM_TARBALL
|
tar
-xJC
..
&&
\
mkdir
/opt/llvm5
&&
\
cp
-R
clang+llvm
*
/
*
/opt/llvm5
&&
\
rm
-R
clang+llvm
*
&&
\
/opt/llvm5/bin/llc
--version
# GHC
RUN
curl http://home.smart-cactus.org/~ben/ghc/ghc-8.4.4-arm-unknown-linux.tar.xz |
tar
-xJ
#RUN curl http://downloads.haskell.org/~ghc/8.6.2/ghc-8.6.2-aarch64-ubuntu_bionic-linux.tar.xz | tar -xJ
WORKDIR
/ghc-8.4.4
RUN
./configure
--prefix
=
/usr/local
LLC
=
/opt/llvm5/bin/llc
OPT
=
/opt/llvm5/bin/opt
&&
\
make
install
WORKDIR
/
RUN
rm
-Rf
ghc-
*
RUN
ghc
--version
# XXX: Terrible terrible hack
RUN
ln
-s
libgmp.so.10 /usr/lib/arm-linux-gnueabihf/libgmp.so
# LLVM
ENV
LLVM_TARBALL http://releases.llvm.org/7.0.0/clang+llvm-7.0.0-armv7a-linux-gnueabihf.tar.xz
ENV
LLC /opt/llvm7/bin/llc
ENV
OPT /opt/llvm7/bin/opt
RUN
curl
$LLVM_TARBALL
|
tar
-xJC
..
&&
\
mkdir
/opt/llvm7
&&
\
cp
-R
clang+llvm
*
/
*
/opt/llvm7
&&
\
rm
-R
clang+llvm
*
&&
\
$LLC
--version
# Cabal
RUN
git clone https://github.com/haskell/Cabal
WORKDIR
/Cabal
RUN
git checkout cabal-install-v2.4.1.0
WORKDIR
/Cabal/cabal-install
RUN
./bootstrap.sh
--global
--no-doc
RUN
ls
/Cabal/cabal-install/dist/build
ENV
PATH /home/ghc/.local/bin:/opt/cabal/2.2/bin:/opt/ghc/8.4.2/bin:$PATH
# Create a normal user.
RUN
adduser ghc
--gecos
"GHC builds"
--disabled-password
RUN
echo
"ghc ALL = NOPASSWD : ALL"
>
/etc/sudoers.d/ghc
USER
ghc
WORKDIR
/home/ghc/
# Build Haskell tools
RUN
cabal update
&&
\
cabal
install
hscolour happy alex
--constraint
'happy ^>= 1.19.10'
ENV
PATH /home/ghc/.cabal/bin:$PATH
CMD
["bash"]
Loading