Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
C
ci-images
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Peter Trommler
ci-images
Commits
408eff66
Commit
408eff66
authored
Nov 23, 2019
by
Ben Gamari
🐢
Committed by
Ben Gamari
Nov 26, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Debian 10 image
parent
dea5cafb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
80 additions
and
0 deletions
+80
-0
.gitlab-ci.yml
.gitlab-ci.yml
+8
-0
x86_64-linux-deb10/Dockerfile
x86_64-linux-deb10/Dockerfile
+72
-0
No files found.
.gitlab-ci.yml
View file @
408eff66
...
@@ -117,6 +117,14 @@ build-x86_64-linux-deb9:
...
@@ -117,6 +117,14 @@ build-x86_64-linux-deb9:
-
docker
-
docker
-
x86_64-linux
-
x86_64-linux
build-x86_64-linux-deb10
:
extends
:
.build
variables
:
IMAGE
:
x86_64-linux-deb10
tags
:
-
docker
-
x86_64-linux
build-x86_64-linux-fedora27
:
build-x86_64-linux-fedora27
:
extends
:
.build
extends
:
.build
variables
:
variables
:
...
...
x86_64-linux-deb10/Dockerfile
0 → 100644
View file @
408eff66
FROM
debian:buster
SHELL
["/bin/bash", "-o", "pipefail", "-c"]
ENV
LANG C.UTF-8
RUN
apt-get update
-qq
;
apt-get
install
--no-install-recommends
-qy
gnupg dirmngr
\
&&
apt-get clean
\
&&
rm
-rf
/var/lib/apt/lists/
*
# http://downloads.haskell.org/debian/
RUN
echo
'deb http://downloads.haskell.org/debian stretch main'
>
/etc/apt/sources.list.d/ghc.list
RUN
apt-key adv
--keyserver
keyserver.ubuntu.com
--recv-keys
BA3CBA3FFE22B574
# Core build utilities
RUN
apt-get update
-qq
&&
apt-get
install
--no-install-recommends
-qy
\
zlib1g-dev libtinfo-dev libsqlite3-0 libsqlite3-dev libgmp-dev
\
ca-certificates g++ git make automake autoconf gcc
\
perl python3 texinfo xz-utils lbzip2 bzip2 patch openssh-client
sudo time
\
jq wget curl
\
# For source distributions
xutils-dev \
# DWARF libraries
libdw1 libdw-dev \
# For nofib
valgrind \
# Documentation tools
python3-sphinx texlive-xetex texlive-latex-extra texlive-binaries texlive-fonts-recommended lmodern texlive-generic-extra \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
WORKDIR
/tmp
# Install GHC and cabal
ENV
GHC_VERSION 8.8.1
#RUN curl https://downloads.haskell.org/~ghc/$GHC_VERSION/ghc-$GHC_VERSION-x86_64-fedora27-linux.tar.xz | tar -Jx;
RUN
curl http://home.smart-cactus.org/~ben/ghc/release-prep/
$GHC_VERSION
/ghc-
$GHC_VERSION
-x86_64-deb10-linux
.tar.xz |
tar
-Jx
;
WORKDIR
/tmp/ghc-$GHC_VERSION
RUN
./configure
--prefix
=
/opt/ghc/
$GHC_VERSION
;
\
make
install
;
WORKDIR
/tmp
RUN
rm
-rf
/tmp/ghc-
$GHC_VERSION
ENV
PATH /opt/ghc/$GHC_VERSION/bin:$PATH
# Get Cabal
ENV
CABAL_VERSION 2.4.1.0
RUN
curl https://downloads.haskell.org/cabal/cabal-install-
$CABAL_VERSION
/cabal-install-
$CABAL_VERSION
-x86_64-unknown-linux
.tar.xz |
tar
-Jx
&&
\
mv
cabal /usr/local/bin/cabal
# LLVM
ENV
LLVM_DIR /opt/llvm
ENV
LLVM_VERSION 7.0.0
ENV
PATH $LLVM_DIR/bin:$PATH
RUN
curl http://releases.llvm.org/
$LLVM_VERSION
/clang+llvm-
$LLVM_VERSION
-x86_64-linux-gnu-ubuntu-16
.04.tar.xz |
tar
-xJC
.
;
\
mkdir
$LLVM_DIR
&&
\
cp
-R
clang+llvm
*
/
*
$LLVM_DIR
&&
\
rm
-R
clang+llvm
*
&&
\
llc
--version
# 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 v2-update
&&
\
cabal v2-install hscolour happy alex
--constraint
'happy ^>= 1.19.10'
ENV
PATH /home/ghc/.cabal/bin:$PATH
CMD
["bash"]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment