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
!110
Add Alpine 3.15 and 3.17 images
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add Alpine 3.15 and 3.17 images
wip/alpine-update
into
master
Overview
2
Commits
3
Pipelines
9
Changes
2
1 unresolved thread
Hide all comments
Merged
Ben Gamari
requested to merge
wip/alpine-update
into
master
2 years ago
Overview
2
Commits
3
Pipelines
9
Changes
2
1 unresolved thread
Hide all comments
Expand
To facilitate debugging of
ghc#22237
.
0
0
Merge request reports
Compare
master
version 8
d63a4ca1
2 years ago
version 7
ee7781ed
2 years ago
version 6
242901f0
2 years ago
version 5
1a16c5f8
2 years ago
version 4
d08d0085
2 years ago
version 3
2810b7fe
2 years ago
version 2
a15f3d77
2 years ago
version 1
8961f69e
2 years ago
master (base)
and
latest version
latest version
948b98d4
3 commits,
2 years ago
version 8
d63a4ca1
3 commits,
2 years ago
version 7
ee7781ed
1 commit,
2 years ago
version 6
242901f0
1 commit,
2 years ago
version 5
1a16c5f8
1 commit,
2 years ago
version 4
d08d0085
1 commit,
2 years ago
version 3
2810b7fe
1 commit,
2 years ago
version 2
a15f3d77
1 commit,
2 years ago
version 1
8961f69e
3 commits,
2 years ago
2 files
+
91
−
14
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
images/alpine.dhall
+
89
−
12
Options
@@ -13,6 +13,9 @@ let
let
Image = ../Image.dhall
let
docker_base_url: Text = "registry.gitlab.haskell.org/ghc/ci-images"
let
coreBuildDepends: List Text =
[ "alpine-sdk"
@@ -58,13 +61,14 @@ let
, "ttf-dejavu"
]
let
buildDepends: List Text = coreBuildDepends # docsBuildDepends
let installPkgs: List Text -> CF.Type = \(pkgs: List Text) ->
CF.run "Installing packages: ${Prelude.Text.concatSep " " pkgs}"
[ "apk add --no-cache ${Prelude.Text.concatSep " " pkgs}" ]
let installDepsStep: CF.Type =
CF.run "Installing GHC build dependencies"
[ "apk add --no-cache ${Prelude.Text.concatSep " " buildDepends}" ]
let installGhcDepsStep: CF.Type =
installPkgs (coreBuildDepends # docsBuildDepends)
-- Wasm-specific dependencies:
let installGlibcStep: CF.Type =
CF.run "Installing alpine-pkg-glibc"
[ "curl -f -L --retry 5 https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub -o /etc/apk/keys/sgerrand.rsa.pub"
@@ -111,29 +115,102 @@ let
let
images: List Image.Type =
[ Image::
[ Image
::
{ name = "x86_64-linux-alpine3_12"
, runnerTags = [ "x86_64-linux" ]
, image =
CF.from "alpine:3.12.12"
# [ CF.Statement.Shell ["/bin/ash", "-eo", "pipefail", "-c"] ]
# installDepsStep
# install
GlibcStep
# install
Ghc
DepsStep
# install
Pkgs ["llvm10"]
# fetchGhcStep (Ghc.Bindist.BindistSpec { version = ghcVersion, triple = "x86_64-alpine3_12-linux-static" })
# Cabal.install (Cabal.Type.FromBindist "https://downloads.haskell.org/~ghcup/unofficial-bindists/cabal/3.6.2.0/cabal-install-3.6.2.0-x86_64-linux-alpine-static.tar.xz")
# CF.run "update cabal index" [ "$CABAL update"]
# HaskellTools.installGhcBuildDeps
# createUserStep
# installWasmDepsStep
# [ CF.Statement.Cmd ["bash"] ]
},
Image ::
}
, Image ::
{ name = "x86_64-linux-alpine3_12-wasm"
, runnerTags = [ "x86_64-linux" ]
, needs = [ "x86_64-linux-alpine3_12" ]
, image =
CF.from "${docker_base_url}/x86_64-linux-alpine3_12:latest"
# [ CF.Statement.User "root" ]
# installGlibcStep
# [ CF.Statement.User "ghc"
, CF.Statement.Cmd ["bash"]
]
# installWasmDepsStep
}
, Image ::
{ name = "i386-linux-alpine3_12"
, runnerTags = [ "x86_64-linux" ]
, image =
CF.from "i386/alpine:3.12.12"
# [ CF.Statement.Shell ["/bin/ash", "-eo", "pipefail", "-c"] ]
# installDepsStep
# installGhcDepsStep
# installPkgs ["llvm10"]
# fetchGhcStep (Ghc.Bindist.BindistURL "https://downloads.haskell.org/~ghcup/unofficial-bindists/ghc/9.0.1/ghc-9.0.1-i386-alpine-linux.tar.xz")
# Cabal.install (Cabal.Type.FromBindist "https://downloads.haskell.org/~ghcup/unofficial-bindists/cabal/3.6.2.0/cabal-install-3.6.2.0-i386-linux-alpine.tar.xz")
# CF.run "update cabal index" [ "$CABAL update"]
# HaskellTools.installGhcBuildDeps
# createUserStep
# [ CF.Statement.Cmd ["bash"] ]
}
, Image ::
{ name = "x86_64-linux-alpine3_15"
, runnerTags = [ "x86_64-linux" ]
, image =
CF.from "alpine:3.15.6"
# [ CF.Statement.Shell ["/bin/ash", "-eo", "pipefail", "-c"] ]
# installGhcDepsStep
# installPkgs ["llvm12"]
# fetchGhcStep (Ghc.Bindist.BindistSpec { version = ghcVersion, triple = "x86_64-alpine3_12-linux-static" })
# Cabal.install (Cabal.Type.FromBindist "https://downloads.haskell.org/~ghcup/unofficial-bindists/cabal/3.6.2.0/cabal-install-3.6.2.0-x86_64-linux-alpine-static.tar.xz")
# CF.run "update cabal index" [ "$CABAL update"]
# HaskellTools.installGhcBuildDeps
# createUserStep
# [ CF.Statement.Cmd ["bash"] ]
}
, Image ::
{ name = "i386-linux-alpine3_15"
, runnerTags = [ "x86_64-linux" ]
, image =
CF.from "i386/alpine:3.15.6"
# [ CF.Statement.Shell ["/bin/ash", "-eo", "pipefail", "-c"] ]
# installGhcDepsStep
# installPkgs ["llvm12"]
# fetchGhcStep (Ghc.Bindist.BindistURL "https://downloads.haskell.org/~ghcup/unofficial-bindists/ghc/9.0.1/ghc-9.0.1-i386-alpine-linux.tar.xz")
# Cabal.install (Cabal.Type.FromBindist "https://downloads.haskell.org/~ghcup/unofficial-bindists/cabal/3.6.2.0/cabal-install-3.6.2.0-i386-linux-alpine.tar.xz")
# CF.run "update cabal index" [ "$CABAL update"]
# HaskellTools.installGhcBuildDeps
# createUserStep
# [ CF.Statement.Cmd ["bash"] ]
}
, Image ::
{ name = "x86_64-linux-alpine3_17"
, runnerTags = [ "x86_64-linux" ]
, image =
CF.from "alpine:3.17.1"
# [ CF.Statement.Shell ["/bin/ash", "-eo", "pipefail", "-c"] ]
# installGhcDepsStep
# installPkgs ["llvm14"]
# fetchGhcStep (Ghc.Bindist.BindistSpec { version = ghcVersion, triple = "x86_64-alpine3_12-linux-static" })
# Cabal.install (Cabal.Type.FromBindist "https://downloads.haskell.org/~ghcup/unofficial-bindists/cabal/3.6.2.0/cabal-install-3.6.2.0-x86_64-linux-alpine-static.tar.xz")
# CF.run "update cabal index" [ "$CABAL update"]
# HaskellTools.installGhcBuildDeps
# createUserStep
# [ CF.Statement.Cmd ["bash"] ]
}
, Image ::
{ name = "i386-linux-alpine3_17"
, runnerTags = [ "x86_64-linux" ]
, image =
CF.from "i386/alpine:3.17.1"
# [ CF.Statement.Shell ["/bin/ash", "-eo", "pipefail", "-c"] ]
# installGhcDepsStep
# installPkgs ["llvm14"]
# fetchGhcStep (Ghc.Bindist.BindistURL "https://downloads.haskell.org/~ghcup/unofficial-bindists/ghc/9.0.1/ghc-9.0.1-i386-alpine-linux.tar.xz")
# Cabal.install (Cabal.Type.FromBindist "https://downloads.haskell.org/~ghcup/unofficial-bindists/cabal/3.6.2.0/cabal-install-3.6.2.0-i386-linux-alpine.tar.xz")
# CF.run "update cabal index" [ "$CABAL update"]
Loading