organic-angel scripts for dockerizing organic-stem-cells respecting organic-stem-skeleton v2.1
npm install angelscripts-dockerbuild --save
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
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
Publishes already build container to cell's registry.
Data points:
cellDNA.registryString having value of registry to be published at
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.