https://github.com/nitrictech/boxygen-node
Node SDK for boxygen
https://github.com/nitrictech/boxygen-node
Last synced: 12 months ago
JSON representation
Node SDK for boxygen
- Host: GitHub
- URL: https://github.com/nitrictech/boxygen-node
- Owner: nitrictech
- Created: 2021-11-10T01:47:07.000Z (over 4 years ago)
- Default Branch: develop
- Last Pushed: 2021-11-30T21:57:18.000Z (over 4 years ago)
- Last Synced: 2025-06-26T18:01:02.413Z (about 1 year ago)
- Language: TypeScript
- Size: 795 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Boxygen Node.js SDK
Build container images with Javascript and Typescript!
```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
##