Create stack for laconic shopify

This commit is contained in:
Neeraj 2024-10-25 12:21:19 +05:30
parent d92a1febed
commit 41437647b0
7 changed files with 69 additions and 0 deletions

View File

@ -0,0 +1,20 @@
services:
shopify:
restart: unless-stopped
image: cerc/laconic-shopify:local
command: ["bash", "-c", "./start-faucet.sh"]
environment:
CERC_SCRIPT_DEBUG: ${CERC_SCRIPT_DEBUG}
CERC_SHOPIFY_SHOP_NAME: ${CERC_SHOPIFY_SHOP_NAME}
CERC_SHOPIFY_ACCESS_TOKEN: ${CERC_SHOPIFY_ACCESS_TOKEN}
CERC_FETCH_ORDER_DELAY: ${CERC_FETCH_ORDER_DELAY}
CERC_FAUCET_URL: ${CERC_FAUCET_URL}
volumes:
- shopify-data:/app/data
- ../config/laconic-shopify/start-shopify.sh:/app/start-faucet.sh
- ../config/laconic-shopify/product_pricings.json:/app/config/product_pricings.json
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
shopify-data:

View File

@ -0,0 +1,6 @@
{
"10 webapp deployments": "100000",
"100 webapp deployments": "1000000",
"500 webapp deployments": "5000000",
"1000 webapp deployments": "10000000"
}

View File

@ -0,0 +1,19 @@
#!/bin/bash
set -e
set -u
if [ -n "$CERC_SCRIPT_DEBUG" ]; then
set -x
fi
echo "Shopify shop name: $CERC_SHOPIFY_SHOP_NAME"
echo "Shopify access token: $CERC_SHOPIFY_ACCESS_TOKEN"
echo "Fetch order delay: $CERC_FETCH_ORDER_DELAY"
echo "Faucet URL: $CERC_FAUCET_URL"
export SHOPIFY_SHOP_NAME=$CERC_SHOPIFY_SHOP_NAME
export SHOPIFY_ACCESS_TOKEN=$CERC_SHOPIFY_ACCESS_TOKEN
export FETCH_ORDER_DELAY=$CERC_FETCH_ORDER_DELAY
export FAUCET_URL=$CERC_FAUCET_URL
yarn start

View File

@ -0,0 +1,9 @@
FROM node:20-bullseye
WORKDIR /app
COPY . .
RUN yarn install
CMD ["yarn", "start"]

View File

@ -0,0 +1,5 @@
#!/usr/bin/env bash
# Build cerc/laconic-faucet
source ${CERC_CONTAINER_BASE_DIR}/build-base.sh
docker build -t cerc/laconic-shopify:local ${build_command_args} ${CERC_REPO_BASE_DIR}/laconic-shopify

View File

@ -0,0 +1 @@
# laconic-shopify

View File

@ -0,0 +1,9 @@
version: "1.0"
name: laconic-shopify
description: "Service that integrates a Shopify app with the Laconic wallet."
repos:
- git.vdb.to/cerc-io/laconic-shopify
containers:
- cerc/laconic-shopify
pods:
- laconic-shopify