Skip to content

Latest commit

 

History

History

javascript

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Metaparticle/Package for JavaScript

Metaparticle/Package is a collection of libraries intended to make building and deploying containers a seamless and idiomatic experience for developers.

This is the implementation for JavaScript (NodeJS).

Introduction

Metaparticle/Package simplifies and centralizes the task of building and deploying a container image.

Here is a quick example.

Consider this simple JavaScript application:

console.log('hello world!');

To containerize this application, you need to use the @metaparticle/package library and the containerize wrapper function like this:

const mp = require('@metaparticle/package');

mp.containerize(
	{
		repository: 'brendanburns',
	},
	() => {
        console.log('hello world');
	}
);

You can then compile this application just as you have before. But now, when you run the application, instead of printing "Hello world", it first packages itself as a container, and then (optionally) deploys itself inside that container.

Tutorial

For a more complete exploration of the Metaparticle/Package for JavaScript, please see the in-depth tutorial.