Add the package to your workspace:
yarn add @rxap/plugin-docker
Install peer dependencies:
yarn add @nx/devkit@^16.10.0 @rxap/node-utilities@^1.2.0 @rxap/plugin-gitlab-ci@^16.2.0 @rxap/plugin-utilities@^16.3.0-dev.1 @rxap/workspace-utilities@^16.1.0 tslib@2.6.2
Execute the config generator to use the package with a project:
yarn nx g @rxap/plugin-docker:config [project]
Add the executor 'docker' to the selected project and add generic depend on rules to nx.json
yarn nx g @rxap/plugin-docker:config
gitlab-ci generator
yarn nx g @rxap/plugin-docker:gitlab-ci
Add the executor 'docker' to the selected project and add generic depend on rules to nx.json
yarn nx g @rxap/plugin-docker:config
gitlab-ci generator
yarn nx g @rxap/plugin-docker:gitlab-ci
Executes the docker build command with the context set to the build output folder
project.json
{
"targets": {
"build": {
"executor": "@rxap/plugin-docker:build"
}
}
}
Executes the docker save command for the latest image created with the build command
project.json
{
"targets": {
"save": {
"executor": "@rxap/plugin-docker:save"
}
}
}