slack, smtp builds

This commit is contained in:
Djkáťo 2024-05-15 16:14:42 +02:00
parent 03bc3570cc
commit eca327af9e
3 changed files with 15 additions and 9 deletions

View file

@ -32,7 +32,7 @@ alias = "build-all"
[tasks.build-all] [tasks.build-all]
workspace = false workspace = false
dependencies = [ dependencies = [
"delete-images", # "delete-images",
"build-abandoned-checkouts", "build-abandoned-checkouts",
"build-stripe", "build-stripe",
"build-klarna", "build-klarna",
@ -47,8 +47,8 @@ dependencies = [
"build-products-feed", "build-products-feed",
"build-search", "build-search",
# "build-segment", -- Error: Unable to find 'schema-ast' # "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-slack",
# "build-smtp", -- 8.542 smtp:build: Type error: Cannot find module './redis_apl' or its corresponding type declarations. "build-smtp",
"build-taxjar", "build-taxjar",
] ]

View file

@ -1,9 +1,11 @@
<a href='https://ko-fi.com/A0A8Q3SVZ' target='_blank'><img height='36' style='border:0px;height:36px;' src='https://storage.ko-fi.com/cdn/kofi4.png?v=3' border='0' alt='Buy Me a Coffee at ko-fi.com' /></a> <a href='https://ko-fi.com/A0A8Q3SVZ' target='_blank'><img height='36' style='border:0px;height:36px;' src='https://storage.ko-fi.com/cdn/kofi4.png?v=3' border='0' alt='Buy Me a Coffee at ko-fi.com' /></a>
# Automatic Dockerization of official Saleor app # 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. 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: Current apps in repo:
- saleor/apps - saleor/apps
- avatax - avatax
- cms-v2¹ - cms-v2¹
@ -15,8 +17,8 @@ Current apps in repo:
- products-feed - products-feed
- search - search
- segment¹ - segment¹
- slack¹ - slack
- smtp¹ - smtp
- taxjar - taxjar
- saelor/abandoned-checkouts - saelor/abandoned-checkouts
- saelor/payment-stripe - 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 # 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: For example:
```yml ```yml
@ -72,19 +74,22 @@ networks:
driver: bridge 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. - `./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-<Chosen app>` - `cargo make build-all` or `cargo make build-<Chosen app>`
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". 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 Then you can do
- `cargo make push-all` or `APP=<Chosen app> cargo make push` - `cargo make push-all` or `APP=<Chosen app> cargo make push`
## Prerequisites ## Prerequisites
- cargo - cargo
- cargo-make - cargo-make
- linux shell (bash) - linux shell (bash)
- rust stuff - rust stuff
- git - 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)!

View file

@ -105,5 +105,6 @@ done
# Individual patches # Individual patches
cd ./all_apps/apps 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" cd "$CURR_PWD"