Skip to content

Conversation

@dannywillems
Copy link
Member

@dannywillems dannywillems commented Jul 16, 2025

Fix #1185
Fix #1184

docker-build-test ## Build all Docker images

.PHONY: docker-build-bootstrap-sandbox
docker-build-bootstrap-sandbox: ## Build bootstrap sandbox Docker image
Copy link
Member Author

Choose a reason for hiding this comment

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

Even if this seems broken, removing it will be part of a follow-up PR.

Makefile Outdated

.PHONY: docker-build-light
docker-build-light: ## Build light Docker image
docker build -t $(DOCKER_ORG)/openmina-light:$(GIT_COMMIT) -f node/testing/docker/Dockerfile.light node/testing/docker/
Copy link
Member Author

Choose a reason for hiding this comment

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

This seems broken, but it will be fixed later. It is not part of this patch.

docker build -t $(DOCKER_ORG)/openmina-light:$(GIT_COMMIT) -f node/testing/docker/Dockerfile.light node/testing/docker/

.PHONY: docker-build-light-focal
docker-build-light-focal: ## Build light focal Docker image
Copy link
Member Author

Choose a reason for hiding this comment

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

This seems broken, but it will be fixed later. It is not part of this patch.

docker build -t $(DOCKER_ORG)/openmina:$(GIT_COMMIT) .

.PHONY: docker-build-openmina-testing
docker-build-openmina-testing: ## Build OpenMina testing Docker image
Copy link
Member Author

Choose a reason for hiding this comment

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

This seems broken, but it will be fixed later. It is not part of this patch.

-f node/testing/docker/Dockerfile.light node/testing/docker/

.PHONY: docker-build-light-focal
docker-build-light-focal: ## Build light focal Docker image
Copy link
Member Author

Choose a reason for hiding this comment

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

This seems broken, but it will be fixed later. It is not part of this patch.

@dannywillems dannywillems requested a review from directcuteo July 16, 2025 19:25
@dannywillems dannywillems force-pushed the dw/unify-ci-makefile branch from 30c3aff to 0b2599c Compare July 17, 2025 06:32
@dannywillems dannywillems changed the base branch from dw/unify-ci-makefile to develop July 17, 2025 07:11
- Reduces Docker image size by avoiding installation of recommended packages
- Fixes hadolint DL3015 warnings across all Dockerfiles
- Added quotes around $(opam config env) in all Dockerfiles
- Fixes hadolint SC2046 warnings for proper shell quoting
- Affects tools/fuzzing, node/testing/docker, and producer-dashboard Dockerfiles
Issues Fixed:

1. DL3027 - Replaced apt with apt-get in tools/fuzzing/Dockerfile
2. SC2086 - Added double quotes around $ARCH variable in
tools/fuzzing/Dockerfile
3. DL3059 - Consolidated consecutive RUN instructions in
tools/fuzzing/Dockerfile
4. SC2174 - Fixed mkdir -p -m by separating into mkdir -p and chmod commands in
tools/bootstrap-sandbox/Dockerfile
5. SC3046 - Replaced source with . in node/testing/docker/Dockerfile.test
6. DL3009 - Added missing rm -rf /var/lib/apt/lists/* cleanup in
tools/fuzzing/Dockerfile
Updated the lint-dockerfiles target to:
- Capture all hadolint output
- Exit with code 1 if any warnings or errors are found
- Work correctly in both GitHub Actions and local environments
@dannywillems dannywillems enabled auto-merge July 17, 2025 08:03
@dannywillems dannywillems merged commit 1849d84 into develop Jul 17, 2025
33 of 34 checks passed
@dannywillems dannywillems deleted the dw/add-hadolint branch July 17, 2025 15:51
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.

Dockerfiles: fix all warnings and info given by hadolint CI: lint Dockerfiles using hadolint

2 participants