Skip to content

Conversation

@LaVLaS
Copy link

@LaVLaS LaVLaS commented Oct 22, 2025

Motivation

Add Makefile variables to support using alternative docker compatible CLIs.

Technical Details

Makefile:

  • Add CONTAINER_TOOL with default value of docker
  • Add DOCKER_SOCKET_FILE var to allow for alternative locations for the docker socket file

Test Plan

There is no change to existing functionality or CI/CD automation.
All Makefile targets should continue working under existing workflows
Local development should allow for use of other docker compatible CLIs

Test Result

  • Success on make docker-build with docker as the default tool
  • Success on make CONTAINER_TOOL=podman docker-build when podman is installed

Submission Checklist

Makefile:
- Add CONTAINER_TOOL with default value of "docker"
- Add DOCKER_SOCKET_FILE var to allow for alternative locations
  for the docker socket file

Signed-off-by: Landon LaSmith <[email protected]>
@yansun1996
Copy link
Member

Hi @LaVLaS thanks for the PR, let me check with the team to get this applied to main branch

default: docker-build-env ## Quick start to build everything from docker shell container.
@echo "Starting a shell in the Docker build container..."
@docker run --rm -it --privileged \
@$(CONTAINER_TOOL) run --rm -it --privileged \
Copy link
Member

Choose a reason for hiding this comment

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

Hi @LaVLaS in the Makefile we prepared the docker/shell container to help developers quickly build all the artifacts of the project. With docker we prepared all the necessary changes to make the build within the shell container.

  1. I tried your PR, after witching to podman, it looks like podman is always directly changing the files ownership and permission on the host machine, can you take a look ?

  2. can you check and make sure the default target CONTAINER_TOOL=podman make could go through with this PR ?

Copy link
Author

Choose a reason for hiding this comment

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

Ok. I'll take a look at the permissions issue but since the Dockerfile.build file is attempting to run docker in docker, I would recommend something like Distrobox for a containerized development & build workflow

Copy link
Member

@yansun1996 yansun1996 left a comment

Choose a reason for hiding this comment

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

posted comments, PTAL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants