JSPM

@rxap/plugin-docker

20.0.1-dev.17
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 210
  • Score
    100M100P100Q85606F
  • License GPL-3.0-or-later

This plugin provides executors and generators for building and saving Docker images within an Nx workspace. It simplifies the process of creating Dockerfiles, building images, and pushing them to registries, as well as saving images to archives. It also includes generators for configuring projects and generating GitLab CI pipelines for Docker-based applications.

Package Exports

  • @rxap/plugin-docker
  • @rxap/plugin-docker/package.json
  • @rxap/plugin-docker/plugin

Readme

@rxap/plugin-docker

npm version commitizen friendly styled with prettier Libraries.io dependency status for latest release, scoped npm package npm NPM

Installation

Add the package to your workspace:

yarn add @rxap/plugin-docker

Execute the init generator:

yarn nx g @rxap/plugin-docker:init

Execute the config generator to use the package with a project:

yarn nx g @rxap/plugin-docker:config [project]

Generators

config

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

gitlab-ci generator

yarn nx g @rxap/plugin-docker:gitlab-ci

init

Initialize the package in the workspace

yarn nx g @rxap/plugin-docker:init

config

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

gitlab-ci generator

yarn nx g @rxap/plugin-docker:gitlab-ci

init

Initialize the package in the workspace

yarn nx g @rxap/plugin-docker:init

Executors

build

Executes the docker build command with the context set to the build output folder

project.json

{
  "targets": {
    "build": {
      "executor": "@rxap/plugin-docker:build"
    }
  }
}

save

Executes the docker save command for the latest image created with the build command

project.json

{
  "targets": {
    "save": {
      "executor": "@rxap/plugin-docker:save"
    }
  }
}