Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@nx-tools/nx-container
Advanced tools
The Nx Plugin for Containers contains executors, generators, and utilities for build and push containers images from your applications. It provides:
@nx-tools/nx-container
The Nx Plugin for Containers contains executors, generators, and utilities for build and push containers images from your applications. It provides:
@nx-tools/nx-docker
api.This executor not handle registry login steps, so if you wanna push your container images to a remote registry, please setup the credentials using the docker login
or podman login
. For kaniko engine, you need to create the /kaniko/.docker/config.json
according to this documentation.
This is the succesor of
@nx-tools/nx-docker
. For docs about nx-docker please go check this
Adding the Container plugin to an existing Nx workspace can be done with the following:
nx add @nx-tools/nx-container
It's straightforward to setup your application:
It's straightforward to setup your application with 2 simple steps
nx g @nx-tools/nx-container:init
or add nx-container manually to the plugins array in your nx.json
file, like is showed below: {
"plugin": "@nx-tools/nx-container",
"options": {
"defaultEngine": "docker",
"defaultRegistry": "docker.io"
}
}
Dockerfile
to your applicationNote: This requires
@nx-tools/nx-container
verion6.2.0
or above.
To setup a container
task, or override inferred task, you can use this command:
nx g @nx-tools/nx-container:configuration appName
By default, the application will be configured with:
We can then build our application with the following command:
nx container appName
To use a different engine, you need to update the options.engine
property of your project target or use the INPUT_ENGINE environment variable. All possible values are docker
(the default), podman
and kaniko
Tip: You can set docker or podman engine in your project.json targets to use in your dev machine, and use INPUT_ENGINE env variable to use kaniko in your CI/CD pipelines.
Just change @nx-tools/nx-docker:build
to @nx-tools/nx-container:build
in your project targets and you will continue building images using the docker/buildx engine.
"docker": {
"executor": "@nx-tools/nx-container:build",
"options": {
...
}
}
Advanced usage:
Customizing
Usage with CI
Here is a list of all the executors and generators available from this package:
FAQs
The Nx Plugin for Containers contains executors, generators, and utilities for build and push containers images from your applications. It provides:
We found that @nx-tools/nx-container demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.