-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build a truly multi platform docker image (#660)
* Simplify the docker build, and properly build a multiplatform image with docker build actions * Temporarily disable scheduled docker build for faster testing * Clean up the release docker image * Add a separate job for RedHat docker image * Added RedHat dockerfile * Revert "Temporarily disable scheduled docker build for faster testing" This reverts commit 5afd280. * Try to specify github tokens * Add CI badges: * Remove un-needed lines per @dc-mak 's suggestions
- Loading branch information
Showing
7 changed files
with
94 additions
and
61 deletions.
There are no files selected for viewing
This file contains 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 contains 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,38 @@ | ||
FROM redhat/ubi9:latest | ||
|
||
# Install basic dependencies | ||
RUN yum update -y && \ | ||
yum install -y xz sudo gcc unzip \ | ||
diffutils patch pkgconfig bzip2 \ | ||
git perl wget ca-certificates \ | ||
mpfr-devel gmp-devel m4 | ||
|
||
# Install additional FEDORA packages | ||
# from https://www.cyberciti.biz/faq/install-epel-repo-on-an-rhel-8-x/ | ||
# Currently the FEDORA packages are needed only for Z3 | ||
# NOTE: we might have to eventually use *only* RedHat packages | ||
# which would mean installing Z3 directly from the release page | ||
RUN yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm && \ | ||
yum update -y && \ | ||
yum install -y z3 | ||
|
||
# Install OPAM | ||
# See https://opam.ocaml.org/doc/1.2/Install.html | ||
RUN curl -fsSL https://opam.ocaml.org/install.sh | sh | ||
|
||
ENV OPAMCONFIRMLEVEL=unsafe-yes | ||
RUN opam init --disable-sandboxing | ||
|
||
ADD . /opt/cerberus | ||
WORKDIR /opt/cerberus | ||
RUN opam install --deps-only ./cerberus-lib.opam ./cn.opam | ||
|
||
RUN eval `opam env` \ | ||
&& make install_cn | ||
|
||
WORKDIR /opt | ||
|
||
COPY docker_entry_point.sh /opt/docker_entry_point.sh | ||
RUN chmod +x /opt/docker_entry_point.sh | ||
WORKDIR /data | ||
ENTRYPOINT ["/opt/docker_entry_point.sh"] |
This file was deleted.
Oops, something went wrong.
This file contains 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 contains 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