Skip to content

Commit

Permalink
Adding dockerfile if we need to control z3 install, cleaning docker b…
Browse files Browse the repository at this point in the history
…uild action
  • Loading branch information
F-WRunTime committed Oct 6, 2023
1 parent 49e0b50 commit 67328fb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
4 changes: 3 additions & 1 deletion .github/actions/with-docker/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ runs:
CONTAINER_NAME=${{inputs.container-name}}
CONTAINER_VERSION=$(cat deps/kontrol_release)
docker build . --name solady-ci --build-arg KONTROL_VERSION=$(cat deps/kontrol_release)
docker run \
--name ${CONTAINER_NAME} \
--rm \
Expand All @@ -23,7 +25,7 @@ runs:
--detach \
--user root \
--workdir /home/user/workspace \
runtimeverificationinc/kontrol:ubuntu-jammy-${CONTAINER_VERSION}
solady-ci
# Copy the current Checkout direcotry into the container
docker cp . ${CONTAINER_NAME}:/home/user/workspace
Expand Down
13 changes: 5 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
FROM ghcr.io/runtimeverification/devops/kup:643101c
ARG KONTROL_RELEASE
FROM runtimeverificationinc/kontrol:ubuntu-jammy-${KONTROL_RELEASE}

USER root
RUN apt-get update && apt-get install -y \
git \
&& rm -rf /var/lib/apt/lists/*

USER ubuntu
USER user
RUN curl -L https://foundry.paradigm.xyz | bash
RUN /home/ubuntu/.foundry/bin/foundryup
RUN /home/user/.foundry/bin/foundryup

ARG KONTROL_RELEASE=v0.1.15
RUN kup install kontrol --version v$KONTROL_RELEASE
RUN nix-store --gc

ENV PATH="/home/ubuntu/.foundry/bin:${PATH}"
ENV PATH="/home/user/.foundry/bin:${PATH}"

0 comments on commit 67328fb

Please sign in to comment.