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
35a2e02c
Commit
35a2e02c
authored
Oct 22, 2019
by
Ben Gamari
🐢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add powerpc-fedora29 image
parent
990c5217
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
68 additions
and
0 deletions
+68
-0
.gitlab-ci.yml
.gitlab-ci.yml
+8
-0
ppc64le-linux-fedora29/Dockerfile
ppc64le-linux-fedora29/Dockerfile
+60
-0
No files found.
.gitlab-ci.yml
View file @
35a2e02c
...
...
@@ -124,3 +124,11 @@ build-x86_64-linux-fedora27:
tags
:
-
docker
-
x86_64-linux
build-ppc64le-linux-fedora29
:
extends
:
.build
variables
:
IMAGE
:
ppc64le-linux-fedora29
tags
:
-
docker
-
ppc64le-linux
ppc64le-linux-fedora29/Dockerfile
0 → 100644
View file @
35a2e02c
FROM
ppc64le/fedora:29
SHELL
["/bin/bash", "-o", "pipefail", "-c"]
ENV
LANG C.UTF-8
# Core build utilities
RUN
dnf
-y
install
coreutils binutils which git make
\
automake autoconf gcc perl python3 texinfo xz bzip2 lbzip2
\
patch openssh-clients
sudo
zlib-devel sqlite
\
ncurses-compat-libs gmp-devel ncurses-devel gcc-c++ findutils
\
curl wget jq
# Documentation tools
RUN
dnf
-y
install
python3-sphinx
\
texlive texlive-latex texlive-xetex
\
texlive-collection-latex texlive-collection-latexrecommended
\
texlive-xetex-def texlive-collection-xetex
\
python-sphinx-latex dejavu-sans-fonts dejavu-serif-fonts
\
dejavu-sans-mono-fonts
# This is in the PATH when I ssh into the CircleCI machine but somehow
# sphinx-build isn't found during configure unless we explicitly
# add it here as well; perhaps PATH is being overridden by CircleCI's
# infrastructure?
ENV
PATH /usr/libexec/python3-sphinx:$PATH
# systemd isn't running so remove it from nsswitch.conf
# Failing to do this will result in testsuite failures due to
# non-functional user lookup (#15230).
RUN
sed
-i
-e
's/systemd//g'
/etc/nsswitch.conf
WORKDIR
/tmp
# Install GHC and cabal
ENV
GHC_VERSION 8.6.5
RUN
curl https://downloads.haskell.org/~ghc/
$GHC_VERSION
/ghc-
$GHC_VERSION
-powerpc64le-fedora29-linux
.tar.xz |
tar
-Jx
;
WORKDIR
/tmp/ghc-$GHC_VERSION
RUN
./configure
--prefix
=
/opt/ghc/
$GHC_VERSION
;
\
make
install
;
\
rm
-rf
/tmp/ghc-
$GHC_VERSION
ENV
PATH /opt/ghc/$GHC_VERSION/bin:$PATH
WORKDIR
/tmp
# Get Cabal
ENV
CABAL_VERSION 3.0.0.0
RUN
curl http://home.smart-cactus.org/~ben/ghc/cabal-install-
$CABAL_VERSION
-powerpc64le-fedora29-linux
.tar.xz |
tar
-Jx
&&
\
mv
cabal /usr/local/bin/cabal
# Create a normal user.
RUN
adduser ghc
--comment
"GHC builds"
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