-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
container-image: provide a Monocle container based on UBI 9
This is a still a WIP
- Loading branch information
Showing
3 changed files
with
63 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
FROM registry.access.redhat.com/ubi9/ubi:9.2-755 | ||
|
||
# Install gpg keys | ||
RUN gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 7D1E8AFD1D4A16D71FADA2F2CCC85C0E40C06A8C | ||
RUN gpg --batch --keyserver keyserver.ubuntu.com --recv-keys FE5AB6C91FEA597C3B31180B73EDE9E8CFBAEF01 | ||
RUN gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 88B57FCF7DB53B4DB3BFA4B1588764FBE22D19C4 | ||
RUN gpg --batch --keyserver keyserver.ubuntu.com --recv-keys EAF2A9A722C0C96F2B431CA511AAD8CEDEE0CAEF | ||
|
||
# Install ghcup | ||
RUN \ | ||
curl https://downloads.haskell.org/~ghcup/x86_64-linux-ghcup > /usr/bin/ghcup && \ | ||
chmod +x /usr/bin/ghcup && \ | ||
ghcup config set gpg-setting GPGStrict | ||
|
||
# Install build deps for ghcup | ||
RUN dnf install -y \ | ||
gcc \ | ||
g++ | ||
|
||
ARG GHC=9.6.2 | ||
ARG CABAL=latest | ||
|
||
# Install GHC and cabal | ||
RUN \ | ||
ghcup -v install ghc --isolate /usr/local --force ${GHC} && \ | ||
ghcup -v install cabal --isolate /usr/local/bin --force ${CABAL} | ||
|
||
# Install build deps for Monocle | ||
RUN dnf install -y \ | ||
git \ | ||
openssl-devel \ | ||
gmp-devel \ | ||
ncurses-devel \ | ||
zlib-devel | ||
|
||
# Copy source tree | ||
COPY . /build | ||
|
||
# Build Monocle | ||
RUN cd /build && \ | ||
cabal update && \ | ||
cabal build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters