-
Notifications
You must be signed in to change notification settings - Fork 41
CI: lint dockerfiles #1183
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
CI: lint dockerfiles #1183
Conversation
| docker-build-test ## Build all Docker images | ||
|
|
||
| .PHONY: docker-build-bootstrap-sandbox | ||
| docker-build-bootstrap-sandbox: ## Build bootstrap sandbox Docker image |
There was a problem hiding this comment.
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.
bc180b6 to
0e74271
Compare
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/ |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
0e74271 to
7bf5e53
Compare
| -f node/testing/docker/Dockerfile.light node/testing/docker/ | ||
|
|
||
| .PHONY: docker-build-light-focal | ||
| docker-build-light-focal: ## Build light focal Docker image |
There was a problem hiding this comment.
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.
30c3aff to
0b2599c
Compare
- 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
8209382 to
a0221d1
Compare
Fix #1185
Fix #1184