Skip to content

gocreating/cubee-frontend-server

Repository files navigation

Cubee Frontend Server

CircleCI

Launch in different environments

(Recommended) dev/stg in container

$ docker-compose up [-d]

If you are using docker for windows, and you also want to live reload the app inside container when local file changes, please run the following tool after the container is running. It will inspect all running containers and start notifying containers about changes in mounted directories.

$ pip install docker-windows-volume-watcher
$ docker-volume-watcher

This tool is originally found in the post File system watch does not work with mounted volumes. The author also write a blog post to explain: Docker for Windows: Watch Bindings

prod in container

$ docker-compose -f ./docker-compose-prod.yaml up --build

dev/stg in host os

$ CONFIG_PATH="./config-stg.json" CUBEE_ENV="staging" yarn start
$ yarn run build
$ CONFIG_PATH="./config-stg.json" CUBEE_ENV="production" NODE_ENV=production node build/server.js

Encryption/Decryption Sensitive File with Ansible-Vault

$ docker run -it --rm -v c:/projects/cubee/cubee-frontend-server/helm-chart/cubee-frontend-server:/ansible gocreating/ansible-vault encrypt ./configMap-prod.yaml
$ docker run -it --rm -v c:/projects/cubee/cubee-frontend-server/helm-chart/cubee-frontend-server:/ansible gocreating/ansible-vault encrypt ./configMap-stg.yaml
$ docker run -it --rm -v c:/projects/cubee/cubee-frontend-server/helm-chart/cubee-frontend-server:/ansible gocreating/ansible-vault decrypt ./configMap-prod.yaml
$ docker run -it --rm -v c:/projects/cubee/cubee-frontend-server/helm-chart/cubee-frontend-server:/ansible gocreating/ansible-vault decrypt ./configMap-stg.yaml

Helper

$ docker system prune

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published