Find a DinD (Docker in Docker) image which supports bazel
#194
Labels
Future Work Required
Used to mark tickets closed with `TODO` or `FIXME` in the merged code.
Milestone
Currently, we are using an Alpine Linux DinD image as base to build the container that runs in our OpenFaaS.
In order to support it, we need to build our code in an Alpine Building Image because Alpine Linux does not work with the
glibc
(the GNU C Library), like Ubuntu and most distros do. Instead, it uses theMusl C Library
. So, it's not possible to build the packages using a Ubuntu Building Image and then deploy those packages in an Alpine based container. That's why a "special build" in an Alpine Building Image is required, just to produce Alpine-compatible packages.However, once
bazel
became our default building tool, since we decided to turn thedas
repository our mono-repo, I faced some issues when trying to build the packages in an Alpine image. And found out that Alpine is not officially supported bybazel
, so there is no guarantee they will work together.As supporting OpenFaaS is not a high priority (as of January 2025), we decided to postpone the efforts to make it work. A possible solution is to build our own DinD image based on Ubuntu (@eddiebrissow already did this in a recent past, in this same project).
For more details: https://github.com/singnet/das-serverless-functions/blob/master/Dockerfile
The text was updated successfully, but these errors were encountered: