0.0.1-rc.2 • Published 2 years ago
@nitric/boxygen v0.0.1-rc.2
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
0.0.1-rc.11
2 years ago
0.0.1-rc.10
2 years ago
0.0.1-rc.9
2 years ago
0.0.1-rc.8
2 years ago
0.0.1-rc.7
2 years ago
0.0.1-rc.6
2 years ago
0.0.1-rc.5
3 years ago
0.0.1-rc.4
3 years ago
0.0.1-rc.3
3 years ago
0.0.1-rc.2
3 years ago