@ekingdom/envs

1.5.1 • Public • Published

dev-stacks

Docker-compose configuration files for development of Skinholdings projects in Test environment

Environments

Project Dev hostname Live
Skinscasino dev.skins.testenv.io skins.casino
Drakemall.com dev.drakemall.com drakemall.com
Drakemall.io drakemall.io
Dragon dev.drakemall.xyz
Drakecase dev.drakecase.ru drakecase.ru

Example of initial setup and deploy commands

git clone https://github.com/skinholdings/dev-stacks
cd dev-stacks

npm link

docker network create -d overlay --attachable global

dep-stack misc-deps
dep-stack drakemall

Shell variables:

  • DOCKER_DIR if set, shall be used to locate docker-compose.yml files (default: dev)
  • DOCKER_HOST if set, shall be used to define the machine where docker commands will be executed (default: localhost). This variable has to be set if you plan to deploy to testenv, ex:
    export DOCKER_HOST=dev.drakemall.testenv.io
    

Scripts

(Run npm link from the root of the project, before using scripts)

  • dep-stack - deploys selected .yml file to DOCKER_HOST (default: localhost), ex:
    dep-stack misc-deps
    dep-stack drakemall
    
  • images-from - prints names of all images used in selected .yml file, ex:
    images-from drakemall
    
  • rm-stacks - removes all currently running stacks, ex:
    rm-stacks
    
  • pull-images-from - pulls all images one by one to hard drive from selected .yml file, ex:
    pull-images-from misc-deps
    
  • docker-clean - removes dangling images and exited containers, ex:
    docker-clean
    

Docker

After stack is deployed, use these commands to your convenience:

docker service ls
docker service logs <service_id>
docker service logs <service_id> --follow
docker exec -it <container_id> <command>

Readme

Keywords

none

Package Sidebar

Install

npm i @ekingdom/envs

Weekly Downloads

0

Version

1.5.1

License

UNLICENSED

Unpacked Size

2.42 MB

Total Files

268

Last publish

Collaborators

  • drakemall
  • ektech
  • ipirius
  • deniskublitskiy
  • ihor_opansenko