Skip to content

Commit 83d238a

Browse files
Add bin/ece-patches command (#1171)
Co-authored-by: Mark Shust <[email protected]>
1 parent ad8ea0f commit 83d238a

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,7 @@ It is recommended to keep your root docker config files in one repository, and y
307307
- `bin/docker-compose`: Support V1 (`docker-compose`) and V2 (`docker compose`) docker compose command, and use custom configuration files, such as `compose.yml` and `compose.dev.yml`
308308
- `bin/docker-stats`: Display container name and container ID, status for CPU, memory usage(in MiB and %), and memory limit of currently-running Docker containers.
309309
- `bin/download`: Download specific Magento version from Composer to the container, with optional arguments of the version (2.4.7 [default]) and type ("community" [default], "enterprise", or "mageos"). Ex. `bin/download 2.4.7 enterprise`
310+
- `bin/ece-patches`: Run the Cloud Patches CLI. Ex: `bin/ece-tools apply`
310311
- `bin/fixowns`: This will fix filesystem ownerships within the container.
311312
- `bin/fixperms`: This will fix filesystem permissions within the container.
312313
- `bin/grunt`: Run the grunt binary. Ex. `bin/grunt exec`

compose/Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ help:
4141
@echo "$(call format,docker-compose,'Support V1 (`docker-compose`) and V2 (`docker compose`) docker compose command, and use custom configuration files.')"
4242
@echo "$(call format,docker-stats,'Display status for CPU$(comma) memory usage$(comma) and memory limit of currently-running Docker containers.')"
4343
@echo "$(call format,download,'Download & extract specific Magento version to the src directory.')"
44+
@echo "$(call format,ece-patches,'Run the Cloud Patches CLI.')"
4445
@echo "$(call format,fixowns,'This will fix filesystem ownerships within the container.')"
4546
@echo "$(call format,fixperms,'This will fix filesystem permissions within the container.')"
4647
@echo "$(call format,grunt,'Run the grunt binary.')"

compose/bin/ece-patches

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
if ! bin/cliq ls vendor/bin/ece-patches; then
3+
echo "The ece-patches tool is not installed. Please ensure you are using Adobe Commerce Cloud before running this command."
4+
fi
5+
bin/cli vendor/bin/ece-patches "$@"

0 commit comments

Comments
 (0)