reproducible
v0.0.9
Published
A library for creating simple, reproducible environments with docker. Build artifacts reproducibly using the docker build system!
Downloads
20
Readme
Reproducible
A library for creating simple, reproducible environments with docker. Build artifacts reproducibly using the docker build system!
Installation
npm install reproducible
Usage
Check out the full go-hello-world
reproducible build example in the examples folder;
Example Build File
FROM golang:buster
WORKDIR /opt/build
COPY ./ ./
RUN go build -o ./dist/main src/main.go
Example Run Script
import reproducible from 'reproducible';
(async () => {
// Generate a DockerFile for Build Pipeline
reproducible.generateDockerfile('golang:buster', './', 'go build -o ./dist/main src/main.go');
// Build artifacts using docker build system and export as image
await reproducible.createBuild('valist-build');
// Export build artifacts from image
await reproducible.exportBuild('valist-build','dist/main');
})();
Building the Package
npm run build
Maintainers
License
Reproducible is licensed under the Mozilla Public License Version 2.0