Giter VIP home page Giter VIP logo

reproducible's Introduction

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

@awantoch

@jiyuu-jin

@nasdf

License

Reproducible is licensed under the Mozilla Public License Version 2.0

reproducible's People

Contributors

awantoch avatar jiyuu-jin avatar nasdf avatar zpelkeyhu avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

reproducible's Issues

Add contents of .*ignore to .dockerignore

We'll need to respect the existing ignore files, like .gitignore, .npmignore, etc to the .dockerignore file before building the image.

This both helps with reproducibility (not copying in dependencies built on the host) as well as security (not accidentally copying in secrets to an image that could potentially be published later)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.