Skip to content
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

docker: smaller base image for cparser-builder #352

Merged
merged 1 commit into from
May 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions docker/cparser-builder.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,19 @@
ARG WORKSPACE=/workspace
ARG CP_DEST=/c-parser/standalone-parser

FROM trustworthysystems/l4v:latest AS builder
FROM trustworthysystems/sel4:latest AS builder

COPY scripts/checkout-manifest.sh /usr/bin/
RUN chmod a+rx /usr/bin/checkout-manifest.sh

ARG SCRATCH=/scrach
ARG MLTON=mlton-20210117-1.amd64-linux-glibc2.31
WORKDIR ${SCRATCH}
RUN apt update && apt install -y libgmp-dev
RUN wget https://sourceforge.net/projects/mlton/files/mlton/20210117/${MLTON}.tgz
RUN tar xvfz ${MLTON}.tgz
ENV PATH=${SCRATCH}/${MLTON}/bin:$PATH

ARG WORKSPACE
RUN mkdir -p ${WORKSPACE}
WORKDIR ${WORKSPACE}
Expand All @@ -25,7 +33,7 @@ RUN checkout-manifest.sh

ARG CPARSER_DIR=${WORKSPACE}/l4v/tools/c-parser
WORKDIR ${CPARSER_DIR}
RUN make standalone-cparser
RUN make cparser_tools

ARG CP_DEST
RUN mkdir -p ${CP_DEST}
Expand Down