-
Notifications
You must be signed in to change notification settings - Fork 332
Upgrade to GHC 8.10 and use Ubuntu 20.04 as base image for haskell docker images #1852
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
70 commits
Select commit
Hold shift + click to select a range
6271587
bump stackage (16.14 -> 18.18)
fisx b97e697
...
fisx 0d21f18
Merge remote-tracking branch 'origin/develop' into bump-stackage
fisx 33f6f30
...
fisx 84be2c1
Upgrade nix and stack
akshaymankar 5c1d2bf
Avoid using deprecated Data.ByteString.Lazy.Builder
akshaymankar 3f97341
Auto derive MonadUnliftIO instead of using askUnliftIO
akshaymankar fb5127d
Use openFile from Imports
akshaymankar 40efbba
Adapt for the new generic-random
akshaymankar db5979c
Adapt for new swagger2
akshaymankar 87afa29
Adapt for new random
akshaymankar 9dbe88f
Adapt for new HaskellNet
akshaymankar 98de4dc
Deal with -Wunused-record-wildcards
akshaymankar c4f94ae
move-team: HLint
akshaymankar 6c4af37
Adapt for new quickcheck-state-machine
akshaymankar 55b0c50
Remvoe redandant import
akshaymankar 1c8970f
THIS EMPTY COMMIT SHOW MY HAPPINESS THAT EVERYTHING COMPILES!!
akshaymankar 6377780
Remvoe accidental saml2-web-sso
akshaymankar 59c7d7f
Use merged commit of saml2-web-sso
akshaymankar ff45952
zauth: Update cargoSha256
akshaymankar b710c74
Dockerfile.prebuilder: Bump ghc and stack versions
akshaymankar 1360219
Add integer-gmp to stack.yaml
akshaymankar 6c48677
Dockerfile.prebuilder: Add binutils-gold
akshaymankar 7ddefe4
Start docker build with ubuntu:20.04
akshaymankar 07d71e3
Fix ubuntu dockerfiles
akshaymankar e1c98e8
ubuntu/docker: Install pkg-config to install cryptobox
akshaymankar 36e5e4b
ubuntu/docker: Ensure installation is noninteractive
akshaymankar 0876da4
ubuntu/docker: Use new package for libleveldb1
akshaymankar df63641
ubutu/dockerfile.deps: Better apt package names
akshaymankar a74c51b
ubuntu/dockefile.prebuilder: Better package names
akshaymankar 9790536
ubuntu/dockerfile: More noninteractive frontend
akshaymankar 5a2b0fe
Even more noninteractive apt installs
akshaymankar e3c4750
ubuntu/docker: Add rest of the dockerfiles
akshaymankar 2550cd5
ubuntu/docker: set locale
akshaymankar 67f0318
Fix dockerfile
akshaymankar f39ea0f
ubuntu/docker: Add missing libs
akshaymankar 276c405
ubuntu/docker: Add libsodium
akshaymankar 07eb13c
ubuntu/docker: Add libxml2
akshaymankar b32442b
ubuntu/docker: Add protobuf-compiler
akshaymankar 8160340
alpine/docker: Patch stack.yaml to use integer-simple, upgrade alpine
akshaymankar cc65eba
alpine/docker: Better patch not dependant on yq
akshaymankar 64e713b
alpine/docker: Add slash
akshaymankar 1660949
Go back to alpine 3.12
akshaymankar 2448eb3
alpine/docker: no need for yq
akshaymankar b52ed58
alpine/docker: Add ghc boot dependencies
akshaymankar fc74fbb
ubuntu/docker: Do not build haddocks
akshaymankar ba1be16
dev-packages.nix: Fix metadata about stack
akshaymankar 9d03ba6
Merge branch 'develop' into bump-stackage
akshaymankar 71cf980
Update cabal.project
akshaymankar 87e804d
build/ubuntu/Dockerfile.deps: Only install geoip-database
akshaymankar 2075467
build/ubuntu/Dockerfile.deps: Install netbase
akshaymankar 4c249a3
build/ubuntu/Dockerfile.deps: Remove apt lists to reduce image size
akshaymankar b1e31ca
Make Ubuntu builds as default for all haskell components
akshaymankar c34abc2
Add changelog
akshaymankar 7f68361
build/ubuntu/Dockerfile.executable: Add the comment back
akshaymankar 76a2485
dev-packages.nix: De-duplicate list of C library out deps
akshaymankar fe268ca
Merge branch 'develop' into bump-stackage
akshaymankar 1dc3856
Regen stack.lock
akshaymankar 4784b74
Merge branch 'develop' into bump-stackage
fisx 8c96a09
Fixup
fisx d02fb0d
build/ubuntu/intermediate: Add deleted comment
akshaymankar 25cc49d
Add changelog entry about nixpkgs bump
akshaymankar 26a2403
ubuntu-builds: Use ghcup to install stack
akshaymankar 9eafe75
ubuntu-builds: Fix prebuilder dockerfile
akshaymankar 92f3c5d
Merge branch 'develop' into bump-stackage
akshaymankar d6c9049
wire-api/Arbitrary: Delete dead code
akshaymankar 8bb5a9f
wire-api/Arbitrary: Delete redundant import
akshaymankar 8cd724f
Merge branch 'develop' into bump-stackage
fisx 04c1ae8
Merge branch 'develop' into bump-stackage
akshaymankar a60c7cd
Downgrade nixpkgs for HLS 1.4
akshaymankar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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,33 @@ | ||
| FROM ubuntu:20.04 as cryptobox-builder | ||
|
|
||
| # compile cryptobox-c | ||
| RUN export DEBIAN_FRONTEND=noninteractive && \ | ||
| apt-get update && \ | ||
| apt-get install -y cargo file libsodium-dev git pkg-config && \ | ||
| cd /tmp && \ | ||
| git clone https://github.com/wireapp/cryptobox-c.git && \ | ||
| cd cryptobox-c && \ | ||
| export SODIUM_USE_PKG_CONFIG=1 && \ | ||
| cargo build --release | ||
|
|
||
| # Minimal dependencies for ubuntu-compiled, dynamically linked wire-server Haskell services | ||
| FROM ubuntu:20.04 | ||
|
|
||
| COPY --from=cryptobox-builder /tmp/cryptobox-c/target/release/libcryptobox.so /usr/lib | ||
|
|
||
| RUN export DEBIAN_FRONTEND=noninteractive && \ | ||
| apt-get update && \ | ||
| apt-get install -y \ | ||
| libsodium23 \ | ||
| libssl1.1 \ | ||
| libgmp10 \ | ||
| libffi7 \ | ||
| libicu66 \ | ||
| geoip-database \ | ||
| ca-certificates \ | ||
| dumb-init \ | ||
| libxml2 \ | ||
| libncurses6 \ | ||
| zlib1g \ | ||
| netbase && \ | ||
| rm -rf /var/lib/apt/lists/* |
This file contains hidden or 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 hidden or 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,18 @@ | ||
| ARG builder=quay.io/wire/ubuntu20-builder | ||
| ARG deps=quay.io/wire/ubuntu-deps | ||
|
|
||
| #--- Builder stage --- | ||
| FROM ${builder} as builder | ||
|
|
||
| WORKDIR /wire-server/ | ||
|
|
||
| COPY . /wire-server/ | ||
|
|
||
| RUN make clean fast | ||
|
|
||
| #--- Minified stage --- | ||
| FROM ${deps} | ||
|
|
||
| COPY --from=builder /wire-server/dist/ /dist/ | ||
| # brig also needs some templates. | ||
| COPY --from=builder /wire-server/services/brig/deb/opt/brig/templates/ /dist/templates/ |
7 changes: 3 additions & 4 deletions
7
build/alpine/Dockerfile.intermediate → build/ubuntu/Dockerfile.intermediate
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.