To create an Ubuntu 18.04-based docker image with HElib and its dependencies installed, use the following steps:
- Clone HElib and
cd
into it. - Run
docker build .
, optionally tagging with-t helib
or similar. This will create an image with HElib installed globally in/usr/local
. Most build systems and compilers will look in here. Furthermore,cmake
can be used withfind_package(helib)
and invoked with no special command-line arguments. - The image is now ready to be used. Some possibilities include:
- Create a Dockerfile which begins with
FROM helib
, wherehelib
may be any tag you used in step 2, and include your application logic in this Dockerfile. - Run a container from the HElib docker image directly to experiment, with
docker run -it helib bash
- Create a Dockerfile which begins with