GitXplorerGitXplorer
s

saleor-platform-k8s-kustomize

public
12 stars
3 forks
0 issues

Commits

List of commits on branch main.
Verified
630cf36485f77f9f2a4e8b7d8dd448e09bcc3d51

Merge pull request #2 from skymoore/dev

sskymoore committed 2 years ago
Verified
018bef42302d692783d96e7b8e7e36afd06ba2ff

mailhog development

sskymoore committed 2 years ago
Verified
7a99f38a0995d5cc106b731ac053344abdd479b5

Merge pull request #1 from skymoore/dev

sskymoore committed 2 years ago
Verified
e80a255fff65e64ba4f2d45d995a0dcdcd10d026

mailhog development

sskymoore committed 2 years ago
Verified
f07c9c9869103dd95fd526deb1d47e1db46f37da

feat: nginx reverse proxy with basic auth for jaeger and mailhog ui in base

sskymoore committed 2 years ago
Verified
4d40abe7f7283799cc1706af673e6e3b10df6a62

comment out checkout from ingress

sskymoore committed 2 years ago

README

The README file for this repository.

Saleor Platform Kubernetes Kustomize Deployment Manifests

Docker Images

See slr.rwx.dev kustomization for example use of images.

Build Images

saleor example

# repo setup
git clone git@github.com:saleor/saleor.git
cd saleor
git checkout $DESIRED_RELEASE_TAG
# build
docker build . \
-t $YOUR_DOCKER_USER/saleor:$DESIRED_RELEASE_TAG

saleor-storefront example

# repo setup
git clone git@github.com:saleor/react-storefront.git
cd react-storefront
git checkout $DESIRED_RELEASE_TAG
# build
docker build . \
-f Dockerfile.base \
-t $YOUR_DOCKER_USER/saleor-storefront:$DESIRED_RELEASE_TAG \
--build-arg SALEOR_API_URL=https://api.slr.rwx.dev/graphql/ \
--build-arg STOREFRONT_URL=https://store.slr.rwx.dev \
--build-arg CHECKOUT_APP_URL=https://co.slr.rwx.dev \
--build-arg CHECKOUT_STOREFRONT_URL=https://co.slr.rwx.dev/checkout-spa/ \
--build-arg CLOUD_DEPLOYMENT_URL=

saleor-dashboard example

# repo setup
git clone git@github.com:saleor/saleor-dashboard.git
cd saleor-dashboard
git checkout $DESIRED_RELEASE_TAG
# build
docker build . \
-f Dockerfile \
-t $YOUR_DOCKER_USER/saleor-dashboard:$DESIRED_RELEASE_TAG \
--build-arg API_URI=https://api.slr.rwx.dev/graphql/ \
--build-arg APP_MOUNT_URI=/ \
--build-arg STATIC_URL=/ \
--build-arg MARKETPLACE_URL=https://apps.saleor.io/ \
--build-arg SALEOR_APPS_ENDPOINT=https://apps.saleor.io/api/saleor-apps \
--build-arg IS_CLOUD_INSTANCE=false

Kubernetes Manifests

See Makefile for full commands.

Create Manifest

make:

# build yaml manifest
make build

Deploy Manifest

make:

# preview
make dry-apply
# deploy
make apply

Diff Manifest

make:

make diff

Delete Resources

make:

# preview
make dry-delete
# delete
make delete

Setup

See Makefile for full commands.

Create SuperUser

make:

make superuser

Update Site Domain

export TOKEN="someReallyLongTokenGoesHere"
# set the name and domain in the mutation
curl 'https://api.slr.rwx.dev/graphql/' \
    -X POST \
	-H 'Content-Type: application/json' \
	-H "authorization-bearer: $TOKEN" \
    --data-raw '{"operationName":"ShopDomainUpdate","variables":{"input":{"name":"saleor","domain":"api.slr.rwx.dev"}},"query":"mutation ShopDomainUpdate($input:SiteDomainInput!){shopDomainUpdate(input:$input){__typename}}"}'

Create mailhog-auth file content

# htpasswd -nbB user pass
htpasswd -nbB admin admin