From 028717126fe128cb3c4e6212f5a6d6c2a36c491f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Djk=C3=A1=C5=A5o?= Date: Tue, 14 May 2024 18:20:36 +0200 Subject: [PATCH] plz gimme money c: --- FUNDING.yml | 1 + Makefile.toml | 1 + README.md | 41 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 43 insertions(+) create mode 100644 FUNDING.yml create mode 100644 README.md diff --git a/FUNDING.yml b/FUNDING.yml new file mode 100644 index 0000000..6962ed9 --- /dev/null +++ b/FUNDING.yml @@ -0,0 +1 @@ +ko_fi: djkato diff --git a/Makefile.toml b/Makefile.toml index 357b49d..0cb3a8b 100644 --- a/Makefile.toml +++ b/Makefile.toml @@ -69,6 +69,7 @@ done # HAVE TO DEFINE APP ENV VAR IN CALL, EG: `APP=avatax cargo make push` [tasks.push] +condition = { env_set = ["APP"] } workspace = false script = ''' docker push ${CONTAINER_PUSH_URL}/saleor-app-${APP} diff --git a/README.md b/README.md new file mode 100644 index 0000000..079ab8c --- /dev/null +++ b/README.md @@ -0,0 +1,41 @@ +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 + - crm + - data-importer + - emails-and-messages + - invoices + - klaviyo + - products-feed + - search + - segment + - slack + - smtp + - taxjar +- saelor/abandoned-checkouts +- saelor/payment-stripe +- saelor/payment-klarna +- saelor/payment-authorize.net + +## How to use +- `./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)!