@nitric/boxygen
TypeScript icon, indicating that this package has built-in type declarations

0.0.1-rc.2 • Public • Published

Boxygen Node.js SDK

Build container images with Javascript and Typescript!

import { Workspace } from "@nitric/boxygen";

// Start a new workspace
Workspace.start(async (workspace) => {
	// Build a hello world image
	await workspace
		// start FROM alpine
		.image('alpine')
		// Set entrypoint and command
		.config({
			entrypoint: ['echo'],
			cmd: ['hello world!']
		})
		// Commit out image with a tag of hello-world
		.commit('hello-world');
});

Prerequisites

  • Node.js 12+
  • Docker (support for podman is definetely possible)

Examples

Readme

Keywords

none

Package Sidebar

Install

npm i @nitric/boxygen

Weekly Downloads

0

Version

0.0.1-rc.2

License

MIT

Unpacked Size

23.8 kB

Total Files

17

Last publish

Collaborators

  • jcusch
  • tjholm
  • medgar-nitric
  • davemooreuws
  • ryancartwright