11# Buildah builds for RDkit
22
3- This directory contains scripts for using [ buildah] ( https://buildah.io/ ) to build minimal RDKit Python3 images.
4- These are based on Fedora as a base OS (because of RDKit's requirement for a modern version of boost that
5- is not present in the current Centos7 OS - we may switch back to using Centos once this is resolved and Centos
6- support for Python3 is improved) .
3+ This directory contains scripts for using [ buildah] ( https://buildah.io/ ) to build minimal RDKit Python3 and Java images.
4+ These are based on Centos8. The images should be functionally equivalent to the ones built with "classic" approach in
5+ top level directory, but are significantly smaller. We expect that these images will replace the "classic" ones at some
6+ stage and we may do the same for the Debian based images as well .
77
88The build is done in a Docker container to provide a consistent build environment.
99
10- The resulting ` buildah ` image can be pushed to Docker and then run as a standard container image for Docker and other
10+ The resulting ` buildah ` images can be pushed to Docker and then run as a standard container image for Docker and other
1111container runtimes.
1212
1313## To build
@@ -27,11 +27,7 @@ looks for images and containers. Also note that this runs as a privleged contain
2727
2828You should see a bash prompt from inside the container.
2929
30- ### Run the build
31- Define the ` RDKIT_BRANCH ` environment variable that specifies the RDKit branch to use:
32- ```
33- export RDKIT_BRANCH=Release_2018_09_3
34- ```
30+ ### Run the Python build
3531
3632Build RDKit from the source code on that branch:
3733
@@ -45,17 +41,23 @@ Build the container image:
4541./buildah-python3-image.sh
4642```
4743
48- Note: the two previous steps can be run using this one command: ` buildah-python3.sh `
49-
5044Check the output of the last step for the precise details of what to push.
5145The command listed below is just an example.
5246You need to do this from the host machine (not inside the container):
5347```
54- sudo buildah push informaticsmatters/rdkit-python3-mini:Release_2018_03_2 docker-daemon:informaticsmatters/rdkit-python3-mini:Release_2018_03_2
48+ sudo buildah push informaticsmatters/rdkit-python3-mini:latest docker-daemon:informaticsmatters/rdkit-python3-mini:latest
5549```
5650
57- ## RDKit cartridge build
51+ ### Run the Java build
52+
53+ The process is the same as for the Python image, just use the files with -java- rather than -python3-
54+
55+
56+ ## Image sizes
57+
58+ These images are significantly smaller than the "classic" onces for Centos.
59+
60+ The Python image is 657MB compared with 741MB.
61+ The Java image is 519MB compared with 848MB.
5862
59- This directory also contains files related to building the RDKit cartridge in a similar manner.
60- These files are not yet operational and should be ignored.
6163
0 commit comments