Skip to content

A simple zsh tool that validates a development environment, builds any Microcosm service or frontend, and deploys it either locally to Docker or remotely to a serverless GCP target in one go.

Notifications You must be signed in to change notification settings

wejafoo/bin-zsh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bin-zsh

A set of zsh scripts that standardize build and deployment across a growing list of application frameworks and languages.


Supported Environments

Build targets:

  • Angular
  • Docker
  • Python
  • Nodejs(Typescript)
  • Go

Deploy targets:

  • Local/Remote Docker
  • GCP

Developer Install

Clone the git repository and link project root to your path.

$ cd <code root> && git@github.com:wejafoo/bin-zsh.git

$ cd bin-zsh && ln -s ~/bin .

$ echo 'export PATH=~/bin:${PATH}' >> ~/.zshrc


Local/Docker

From one of the aforementioned build targets project root, run the following(assumes Docker is installed locally and working):

$ <env> pu.sh --local


Remote/Cloud

From one of the aforementioned build targets project root, run the following(assumes 'gcloud' is installed locally and able to connect to the targeted cloud project):

$ <env> pu.sh --remote=stage


Housekeeping

Periodically, run this to ensure local Docker container/image residue is not accumulating. There are several circumstances that can be responsible for this that these scripts may not otherwise be able to address.

$ docker-clean.sh

Running the above command with no arguments will prune the following Docker artifacts:

  • Stopped containers
  • Unused images
  • Unused networks
  • Unused volumes

Todos

  1. Todo: Add documentation here that explains the default config file(s) and how they should be modified

  2. Todo: Add automated test cases that build and deploy all project types following a commit to this repo

About

A simple zsh tool that validates a development environment, builds any Microcosm service or frontend, and deploys it either locally to Docker or remotely to a serverless GCP target in one go.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages