Create stack for laconic shopify
This commit is contained in:
parent
d92a1febed
commit
41437647b0
@ -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:
|
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"10 webapp deployments": "100000",
|
||||||
|
"100 webapp deployments": "1000000",
|
||||||
|
"500 webapp deployments": "5000000",
|
||||||
|
"1000 webapp deployments": "10000000"
|
||||||
|
}
|
19
stack-orchestrator/config/laconic-shopify/start-shopify.sh
Executable file
19
stack-orchestrator/config/laconic-shopify/start-shopify.sh
Executable 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
|
@ -0,0 +1,9 @@
|
|||||||
|
FROM node:20-bullseye
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
RUN yarn install
|
||||||
|
|
||||||
|
CMD ["yarn", "start"]
|
5
stack-orchestrator/container-build/cerc-laconic-shopify/build.sh
Executable file
5
stack-orchestrator/container-build/cerc-laconic-shopify/build.sh
Executable 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
|
1
stack-orchestrator/stacks/laconic-shopify/README.md
Normal file
1
stack-orchestrator/stacks/laconic-shopify/README.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
# laconic-shopify
|
9
stack-orchestrator/stacks/laconic-shopify/stack.yml
Normal file
9
stack-orchestrator/stacks/laconic-shopify/stack.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user