diff --git a/DockerfileUBI b/DockerfileUBI new file mode 100644 index 000000000..d4d42a41b --- /dev/null +++ b/DockerfileUBI @@ -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 \ No newline at end of file diff --git a/cabal.project b/cabal.project index 36ba8a7e0..b05e0ea49 100644 --- a/cabal.project +++ b/cabal.project @@ -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 diff --git a/monocle.cabal b/monocle.cabal index 4a666f89d..f05fa6faf 100644 --- a/monocle.cabal +++ b/monocle.cabal @@ -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 @@ -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 @@ -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