Skip to content

feat: Add boil tool #1224

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

feat: Add boil tool #1224

wants to merge 10 commits into from

Conversation

Techassi
Copy link
Member

@Techassi Techassi commented Aug 12, 2025

Caution

Once this merges, bake will no longer be compatible with this repository. As such, the GHA workflow needs to be adjusted to work with boil.

Note

This was ✨ magically ✨ developed in my spare time and I'm happy to fully hand over this code to Stackable.

This PR adds boil, a replacement for bake written in Rust.

  • Adds more type-safety. The bake --preflight command is for example currently broken on main (even if unused).
  • Adds more verbose and detailed error messages
  • Separates local image dependencies from other build arguments
  • Uses TOML for configuration files instead of Python modules
  • Automatically appends _VERSION to local image versions ARGs
  • Increases speed of data generation (before handing off to docker)

I additionally have some cool ideas (dealing with supported product versions for example), but I don't wanna spoil them just yet.

@Techassi Techassi self-assigned this Aug 12, 2025
@Techassi Techassi moved this to Development: Waiting for Review in Stackable Engineering Aug 12, 2025
@NickLarsenNZ
Copy link
Member

Worth pointing out that when this merges, bake will no longer work.

@Techassi
Copy link
Member Author

Worth pointing out that when this merges, bake will no longer work.

Oh yeah, good point. I will add it to the description.

Copy link
Member

@xeniape xeniape left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tried running cargo boil build airflow. Got this as a result:

WARNING: No output specified for entry--airflow-2_10_4, entry--airflow-2_10_5, entry--airflow-2_9_3, entry--airflow-3_0_1 target(s) with docker-container driver. Build result will only remain in the build cache. To push result image into registry use --push or to load image into docker use --load
Successfully built 4 images:
oci.stackable.tech/sdp/airflow:2.10.4-stackable0.0.0-dev-amd64
oci.stackable.tech/sdp/airflow:2.10.5-stackable0.0.0-dev-amd64
oci.stackable.tech/sdp/airflow:2.9.3-stackable0.0.0-dev-amd64
oci.stackable.tech/sdp/airflow:3.0.1-stackable0.0.0-dev-amd64

Images weren't there and running cargo boil build airflow --load or cargo boil build airflow -- --load didn't work.

# Reassign the arg to `HADOOP_VERSION` for better readability.
ENV HADOOP_VERSION=${HADOOP_HADOOP}
ENV HADOOP_VERSION=${HADOOP_HADOOP_VERSION}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the reassignment still necessary if the ARG got renamed for better readability? Unless something else than specifying it's a version was meant

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ENVs persist in the built image, while ARGs are only for build time. So this allows us to convert an ARG (fleeting) into an ENV (permanent).

ARG HBASE_HBASE_OPERATOR_TOOLS
ARG HBASE_HBASE_OPA_AUTHORIZER
ARG HBASE_PHOENIX
ENV HBASE_VERSION=${HBASE_HBASE_VERSION}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above, there seems to be some additional occurrences of that

Comment on lines +32 to +33
java-base = "21"
java-devel = "21"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
java-base = "21"
java-devel = "21"
java-base = "23"
java-devel = "23"

According to deleted versions file

[versions."3.3.6".build-arguments]
async-profiler-version = "2.9"
jmx-exporter-version = "1.3.0"
protobuf-version = "3.7.1"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
protobuf-version = "3.7.1"

This wasn't part of the previous version file and is not used in the Dockerfile as far as I can see (also an occurence in the version below)

cyclonedx-bom-version = "6.0.0"
tini-version = "0.19.0"
uv-version = "0.7.8"
airflow-extras = "async,amazon,celery,cncf.kubernetes,docker,dask,elasticsearch,ftp,grpc,hashicorp,http,ldap,google,google_auth,microsoft.azure,odbc,pandas,postgres,redis,sendgrid,sftp,slack,ssh,statsd,virtualenv,trino"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
airflow-extras = "async,amazon,celery,cncf.kubernetes,docker,dask,elasticsearch,ftp,grpc,hashicorp,http,ldap,google,google_auth,microsoft.azure,odbc,pandas,postgres,redis,sendgrid,sftp,slack,ssh,statsd,virtualenv,trino"
airflow-extras = "async,amazon,celery,cncf-kubernetes,docker,elasticsearch,fab,ftp,grpc,hashicorp,http,ldap,google,microsoft-azure,odbc,pandas,postgres,redis,sendgrid,sftp,slack,ssh,statsd,trino"

Taken from previous version file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Development: Waiting for Review
Development

Successfully merging this pull request may close these issues.

3 participants