
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
deploy-node-app
Advanced tools
Easily deploy Node.js applications to Kubernetes or Docker, with one command
Deploy your node.js app to Kubernetes or Docker with a single command. No config required.
Supports any Kubernetes cluster, including the following:
Just run npx deploy-node-app
in your node project.
npx
utility needed to run this package without being installedAfter answering a few questions about your app, this tool can:
Usage: deploy-node-app [env]
Options:
-V, --version output the version number
-n, --no-build Don't build and push docker container
-d, --no-deploy Don't deploy to kubernetes
-O, --overwrite Overwrite local files
-s, --skip [metamodule] name of metamodule to skip
-f, --format [type] Output config format [k8s|compose] (default: "compose")
-o, --output [filename] File for config output. "-" will write to stdout. Default is docker-compose.yaml or deployment.yaml depending on format
--generate-default-env Generates default environment variables, like database passwords
--generate-local-ports-env Generates environment variables for connecting to docker-compose services
-h, --help output usage information
By default, deploy-node-app
will write a few files to your directory, depending on the chosen output. You will be prompted if any files need to be updated or overwritten (use --overwrite to ignore prompts).
Simply run npx deploy-node-app
in your Node.js repository. The tool will attempt to prompt you when it needs answers to questions, but should happily support almost all Node.js applications, including static front-end's created by create-react-app
.
deploy-node-app
can deploy to either a Docker or Kubernetes installation locally:
Deploying to local docker-compose:
deploy-node-app local -f compose
docker-compose up ...
deploy-node-app local -f k8s
kubectl apply -k ...
Metamodules are NPM modules with a bit of metadata which allows deploy-node-app
to properly provision backend services. For example, installing @metamodules/postgres
github installs both the Node.js pg
driver and a Docker/Kubernetes powered Postgres instance! It also helps bind and auto-generate environment variables - for example, the Postgres metamodule automatically generates and saves a random database password on installation! We consider metamodules the next logical step for npm modules - they do not define just the drivers your app needs, but also the services that those drivers connect to.
Deploy-node-app will automatically write Kubernetes or Compose configuration based on installed metamodules. Try npm install @nodeapp/redis
and then re-run deploy-node-app
! A local redis container will be started for you with a pre-configured driver!
Read more about metamodules here
deploy-node-app
aims to be able to deploy almost anything written in JavaScript, including back-ends, static-sites (like those created by create-react-app
), and code-bases that do both. However, in order to get started even faster, we've also created create-node-app - which we consider a first-class citizen of DNA. create-node-app
combines create-react-app
and a solid Node.js backend boiler plate, along with everything required for deploy-node-app
to just work. This tool is in beta, and we would greatly appreciate any feedback!
deploy-node-app is maintained by
KubeSail - as easy as Heroku, as powerful as Kubernetes
If you feel that this tool can be improved in any way, feel free to open an issue or pull request! We'd absolutely love to add additional metamodules as well - so let us know what services you use with Node.js and we'll build you a metamodule!
FAQs
Develop and deploy Node.js apps with Kubernetes, with zero config!
The npm package deploy-node-app receives a total of 82 weekly downloads. As such, deploy-node-app popularity was classified as not popular.
We found that deploy-node-app demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.