5.0.0 • Published 3 years ago
angelscripts-dockerbuild v5.0.0
angelscripts-dockerbuild
organic-angel scripts for dockerizing organic-stem-cells respecting organic-stem-skeleton v2.1
setup
npm install angelscripts-dockerbuild --savecommands
angel build :mode :tag -- :runCmd
Builds a container.
Arguments:
mode- eitherproduction||development, used fornpm installtag- value representing the build container tagged locally, usuallypackagejson.name:packagejson.version.runCmd- value representing a command to be run on container start, usuallynpm run startor similar.
Controlling points:
- if
{cwd}/Dockerfile.{mode}is present it will be used instead to build the container
angel docker :mode -- :runCmd
Outputs a Dockerfile contents when executed within a cell working directory.
Arguments:
mode- eitherproduction||development, used fornpm installrunCmd- value representing a command to be run on container start, usuallynpm run startor similar.
Controlling points:
packagejson.common_dependenciesArray of repo relative paths to benpm install-edpackagejson.engines.nodeString indicating node version to be used, defaults to11.0.1cellDNA.cellKindequal towebcellwill render nginx:latest based Dockerfile
angel publish
Publishes already build container to cell's registry.
Data points:
cellDNA.registryString having value of registry to be published at
angel cp :src :dest
Does an recursive file and directory copy from src to dest by honoring .gitignore files and rules. It uses for cwd the stem skeleton repo's root, so src should be relative to that folder.
:warning: current implementation is lacking behind actual requirements and works only on git added files.