diff --git a/Makefile.toml b/Makefile.toml index 30d9312..422b136 100644 --- a/Makefile.toml +++ b/Makefile.toml @@ -32,7 +32,7 @@ alias = "build-all" [tasks.build-all] workspace = false dependencies = [ - "delete-images", + # "delete-images", "build-abandoned-checkouts", "build-stripe", "build-klarna", @@ -47,8 +47,8 @@ dependencies = [ "build-products-feed", "build-search", # "build-segment", -- Error: Unable to find 'schema-ast' - # "build-slack", -- Error: 5.551 slack:build: Type error: Type '"redis"' is not comparable to type '"file" | "upstash" | "saleor-cloud"'. - # "build-smtp", -- 8.542 smtp:build: Type error: Cannot find module './redis_apl' or its corresponding type declarations. + "build-slack", + "build-smtp", "build-taxjar", ] diff --git a/README.md b/README.md index bdc005d..172b9b3 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,11 @@ Buy Me a Coffee at ko-fi.com + # Automatic Dockerization of official Saleor app In this repo I created bash scripts and modifications to Saleor that allow for building docker images with a few commands, while staying uptodate with upstream saleor repos. Current apps in repo: + - saleor/apps - avatax - cms-v2¹ @@ -15,8 +17,8 @@ Current apps in repo: - products-feed - search - segment¹ - - slack¹ - - smtp¹ + - slack + - smtp - taxjar - saelor/abandoned-checkouts - saelor/payment-stripe @@ -31,7 +33,7 @@ All apps from saleor/apps are upwards of 1.5gb in size, because of [this pnpm wo # How to use -These images include RedisAPL, and that's what I recommend to use it with. Besides that, use it like any other docker image. +These images include RedisAPL, and that's what I recommend to use it with. Besides that, use it like any other docker image. For example: ```yml @@ -72,19 +74,22 @@ networks: driver: bridge ``` -## How to build +## How to build + - `./changes.sh` - applies git patches and batch edits via rust to add RedisAPL to all apps, and allow them to build via other tweaks. - `cargo make build-all` or `cargo make build-` if you want to push built images to a repo, change the top env `CONTAINER_PUSH_URL` to your repo, for example "ghcr.io/djkato". Then you can do + - `cargo make push-all` or `APP= cargo make push` ## Prerequisites + - cargo - cargo-make - linux shell (bash) - rust stuff - git -Thanks Saleor for providing all these apps. Shame Saleor refuses to containerize them officially. Hope this repo helps you. If it does, consider buying me a langosz (donation button on top)! +Thanks Saleor for providing all these apps. Shame Saleor refuses to containerize them officially. Hope this repo helps you. If it does, consider buying me a langosz (donation button on top)! diff --git a/changes.sh b/changes.sh index afa4c82..3856d24 100755 --- a/changes.sh +++ b/changes.sh @@ -105,5 +105,6 @@ done # Individual patches cd ./all_apps/apps -git appy "$CURR_PWD/patches/apps/slack/env.d.ts.patch" +git apply "$CURR_PWD/patches/apps/slack/env.d.ts.patch" +echo "patched apps/slacks env.d.ts" cd "$CURR_PWD"