Sign inSign up

hieuhidro/shopify

By hieuhidro

Updated over 1 year ago

Shopify-CLI tool as a docker image.

Image
Developer tools
0

1.9K

hieuhidro/shopify repository overview

Shopify-CLI Tool package

Shopify CLI is a command-line interface tool that helps you build Shopify apps and themes. It quickly generates Node.js, Ruby on Rails, and PHP apps, app extensions, and Shopify themes. You can also use it to automate many common development tasks.

Theme Kit is a cross-platform command line tool that you can use to build Shopify themes.

How to use this image

DOCKER
docker run --rm -p 3456:3456 -v local_folder:/shopify hieuhidro/shopify:cli-2.33 login
DOCKER COMPOSE
  • docker-compose.yml:
version: '2.2'

services:
  shopify:
    image: hieuhidro/shopify:cli-2.33
    volumes:
      - ./${THEME_FOLDER}:/shopify
      - ./.config/${THEME_FOLDER}:/root/.config
      - ./.cache/${THEME_FOLDER}:/root/.cache
      - ./.bundle/${THEME_FOLDER}:/root/.bundle
      - ./.ngrok/${THEME_FOLDER}:/root/.ngrok
    environment: 
# For shopify v3 only
      - SHOPIFY_CLI_NO_ANALYTICS=[1|0]
      - SHOPIFY_CLI_THEME_TOKEN=[Your theme password (https://apps.shopify.com/theme-access)]
      - SHOPIFY_CLI_TTY=0
      - SHOPIFY_CLI_DEVICE_AUTH=[1|0]
      - SHOPIFY_FLAG_STORE=[Your Store URL]
# For nginx-proxy 
      - VIRTUAL_HOST=local-domain
      - VIRTUAL_PORT=9292
      - SERVER_HOST_IP=[Host IP:0.0.0.0]
      - CERT_NAME=default
      - HTTPS_METHOD=[noredirect|redirect]
# For nginx-proxy 
    ports:
      - '3456:3456'
      - '9292:9292'
      - '8081:8081'

networks:
  proxy:
    external: true
# For nginx-proxy 
  • docker-compose
docker-compose run --rm --service-ports [shopify] help
  • Starting development a theme
docker-compose run --rm --service-ports shopify theme dev
Access to the container
docker run --rm -it hieuhidro/shopify:cli-3.30 bash

or

docker-compose run --rm --service-ports shopify bash

NGINX-PROXY (Check the docker-compose.yml)

Running the shopify theme development under nginx-proxy

themekit:

shopify-cli v2:

shopify-cli v3

Specifications

Tag summary

Content type

Image

Digest

sha256:1964148aa

Size

273.4 MB

Last updated

over 1 year ago

docker pull hieuhidro/shopify