-
Notifications
You must be signed in to change notification settings - Fork 4
[Feature:Autograding] Add Haskell image #52
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 17 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
51268ed
feat(adding PROGLANG languages): added haskell
ION606 12b65ac
added haskell
ION606 97b074f
Merge branch 'Submitty:main' into haskell
ION606 f2dc3ad
Merge branch 'Submitty:main' into haskell
ION606 bc8d8ca
added salsa
ION606 0f44741
Update Dockerfile
ION606 1fbd08a
remove unecessary dependancies
ION606 4d2abb6
merge
ION606 6fa7d49
Merge branch 'salsa' of https://github.com/ION606/DockerImages into h…
ION606 234083a
fix to version 8.8.4
ION606 cf37be5
fixed salsa
ION606 c8fe609
removed incorrect files
ION606 6f9feb1
rename and dept removal
ION606 3362f13
package purge
ION606 e43af32
image size reduction
ION606 52429b0
mark as beta
ION606 0a8b51a
renamed back from beta
ION606 1b021bf
move to ubuntu
ION606 c54dcde
removed ghcup
ION606 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| # First Stage: Builder | ||
| FROM debian:buster-slim AS builder | ||
|
|
||
| # Install necessary dependencies for building GHC | ||
| RUN apt-get update \ | ||
| && apt-get install -y --no-install-recommends \ | ||
| curl build-essential libffi-dev libgmp-dev libtinfo5 ca-certificates xz-utils \ | ||
| && rm -rf /var/lib/apt/lists/* | ||
|
|
||
| # Install GHCup (Haskell toolchain manager) without automatically installing the latest GHC | ||
| RUN curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | bash -s -- -y --no-ghc \ | ||
| && /root/.ghcup/bin/ghcup install ghc 8.10.7 \ | ||
| && /root/.ghcup/bin/ghcup set ghc 8.10.7 \ | ||
| && rm -rf /root/.ghcup/ghc/9.4.8 | ||
|
|
||
| # Clean up unnecessary build artifacts and cache | ||
| RUN rm -rf /root/.ghcup/cache /var/lib/apt/lists/* | ||
|
|
||
|
|
||
| # Second Stage: Final Image | ||
| FROM debian:buster-slim | ||
ION606 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| # Install runtime dependencies | ||
| RUN apt-get update \ | ||
| && apt-get install -y --no-install-recommends \ | ||
| libffi6 libgmp10 libtinfo5 build-essential \ | ||
| && rm -rf /var/lib/apt/lists/* | ||
|
|
||
| # Copy GHC from the builder stage | ||
| COPY --from=builder /root/.ghcup /root/.ghcup | ||
|
|
||
| # Set PATH to include GHCup | ||
| ENV PATH="/root/.ghcup/bin:${PATH}" | ||
|
|
||
| # Set the working directory | ||
| WORKDIR /usr/src/app | ||
|
|
||
| # Install libgmp-dev explicitly for runtime linking | ||
| RUN apt-get update \ | ||
| && apt-get install -y --no-install-recommends libgmp-dev \ | ||
| && rm -rf /var/lib/apt/lists/* | ||
|
|
||
| # Default command to keep the container running | ||
| CMD ["/bin/bash"] | ||
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,3 @@ | ||
| { | ||
| "pushLatest": false | ||
| } |
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.