Skip to content

Commit

Permalink
container-image: provide a Monocle container based on UBI 9
Browse files Browse the repository at this point in the history
This is a still a WIP
  • Loading branch information
morucci committed Oct 5, 2023
1 parent d613ccf commit 1bfa139
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 3 deletions.
42 changes: 42 additions & 0 deletions DockerfileUBI
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
18 changes: 18 additions & 0 deletions cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,21 @@ package proto3-suite
flags: -swagger

packages: .

-- dhall expects aeson < 2.2
constraints: aeson < 2.2

source-repository-package
type: git
location: https://github.com/awakesecurity/proto3-suite
tag: 88ca7ae30f3ab45a1ca09e348cbeb2c0afac2bb5

source-repository-package
type: git
location: https://github.com/awakesecurity/proto3-wire
tag: 6dcc557fc9d3ffcbfe45c6bea4969830f9e0de9c

source-repository-package
type: git
location: https://github.com/softwarefactory-project/gerrit-haskell
tag: daa44c450f819f3af2879099ec065c1efb973ef8
6 changes: 3 additions & 3 deletions monocle.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ common codegen
, containers >= 0.6
, deepseq >= 1.4
, proto3-suite >= 0.5.0
, proto3-wire >= 1.2.0
, proto3-wire >= 1.4.0
, text
, vector >= 0.12

Expand Down Expand Up @@ -152,7 +152,7 @@ library
, http-client >= 0.6
, http-client-openssl >= 0.3
, http-mock >= 0.1
, http-types >=0.12
, http-types >= 0.12
, json-syntax >= 0.2
, jose >= 0.9
, list-t
Expand All @@ -170,7 +170,7 @@ library
, parser-combinators >= 1.2
, prometheus-client >= 1.0
, prometheus-metrics-ghc >= 1.0
, proto3-suite >= 0.5.0
, proto3-suite >= 0.6.0
, qq-literals
, relude >= 1.0
, retry-effectful
Expand Down

0 comments on commit 1bfa139

Please sign in to comment.