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 install
-
tag
- value representing the build container tagged locally, usuallypackagejson.name:packagejson.version
. -
runCmd
- value representing a command to be run on container start, usuallynpm run start
or 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 install
-
runCmd
- value representing a command to be run on container start, usuallynpm run start
or similar.
Controlling points:
-
packagejson.common_dependencies
Array of repo relative paths to benpm install
-ed -
packagejson.engines.node
String indicating node version to be used, defaults to11.0.1
-
cellDNA.cellKind
equal towebcell
will render nginx:latest based Dockerfile
Publishes already build container to cell's registry.
Data points:
-
cellDNA.registry
String 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.