File tree Expand file tree Collapse file tree 4 files changed +29
-3
lines changed Expand file tree Collapse file tree 4 files changed +29
-3
lines changed Original file line number Diff line number Diff line change 82
82
attests : type=sbom
83
83
provenance : mode=max
84
84
github-token : ${{ secrets.GITHUB_TOKEN }}
85
+
86
+ test-docker-images :
87
+ runs-on : ubuntu-latest
88
+ strategy :
89
+ matrix :
90
+ tag : [release, release-redhat]
91
+ steps :
92
+ - uses : actions/checkout@v4
93
+
94
+ - name : Run CN CI tests
95
+ run : |
96
+ docker pull ${{env.CERBERUS_IMAGE_ID}}:${{ matrix.tag }}
97
+ docker run -v $PWD:/work ${{env.CERBERUS_IMAGE_ID}}:${{ matrix.tag }} tests/run-cn.sh
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ RUN opam init --disable-sandboxing
11
11
ADD . /opt/cerberus
12
12
WORKDIR /opt/cerberus
13
13
RUN opam install --deps-only ./cerberus-lib.opam ./cn.opam
14
+ RUN opam install z3
14
15
15
16
RUN eval `opam env` \
16
17
&& make install_cn
Original file line number Diff line number Diff line change @@ -183,10 +183,22 @@ See https://github.com/rems-project/cerberus/blob/master/backend/cn/README.md
183
183
Docker image
184
184
------------
185
185
186
+ A pre-build docker image with ` cerberus ` and ` cn ` can be downloaded with:
187
+
188
+ * For the Ubuntu 22.04 based image (recommended):
189
+ ``` bash
190
+ $ docker pull ghcr.io/rems-project/cerberus/cn:release
191
+ ```
192
+ * For Redhat Ubi9 based image:
193
+ ` ` ` bash
194
+ $ docker pull ghcr.io/rems-project/cerberus/cn:release-redhat
195
+ ` ` `
196
+
197
+ For a local build, run:
186
198
` ` ` bash
187
- $ make -f Makefile_docker
199
+ $ docker build -t cn:release -f Dockerfile.ubuntu .
188
200
` ` `
189
- creates a Docker image than can be used for example with:
201
+ which creates a Docker image than can be used for example with:
190
202
` ` ` bash
191
203
$ docker run --volume ` PWD` :/data/ cerberus:0.1 tests/tcc/00_assignment.c --pp=core
192
204
` ` `
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ and their dependencies.
18
18
Note: there is a [ known bug with Z3 version
19
19
4.8.13] ( https://github.com/rems-project/cerberus/issues/663 ) (the default on
20
20
Ubuntu 22.04) so you may wish to install Z3 via opam later for a more
21
- up-to-date version. CVC5
21
+ up-to-date version. Z3 that is provided in the docker images is sufficiently up-to-date.
22
22
23
23
2 . Install the opam package manager for OCaml:
24
24
https://ocaml.org/docs/installing-ocaml#install-opam .
You can’t perform that action at this time.
0 commit comments