Giter Club home page Giter Club logo

thrifty-builder's People

Contributors

colin-nolan avatar colinsheppard10 avatar jrandall avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

thrifty-builder's Issues

support for build-args (and ARG)?

I think there is currently no way to pass build arguments to the build (as is done with docker build --build-arg FOO=bar). The main use case I have for this is to build FROM a base image that has the same build version as the one I am currently building.

E.g. a dockerfile starting with:

ARG  VERSION=latest
FROM base:${VERSION}

In order to support this, a new build config field would need to support passing of build args, and they'd have to be passed to docker build as well as handled in Dockerfile ARG lines.

Associate Docker image SHA with build checksum

If a checksum exists in the store, the tool currently dangeously assumes that it is uploaded to all registries. It would be good to verify this fact by associating the build SHA with the context checksum.

stderr/stdout not shown for failed RUN commands

when a RUN step fails, only the command line and exit code are shown, but not any of the stderr/stdout from the failed task. this makes it very difficult to diagnose problems.

Building all...
Building Docker image: foo/bar
Traceback (most recent call last):
  File "/usr/local/bin/thrifty", line 10, in <module>
    sys.exit(entrypoint())
  File "/usr/local/lib/python3.6/site-packages/thriftybuilder/cli.py", line 156, in entrypoint
    main(sys.argv[1:], None if sys.stdin.isatty() else sys.stdin.read())
  File "/usr/local/lib/python3.6/site-packages/thriftybuilder/cli.py", line 99, in main
    build_results = docker_builder.build_all()
  File "/usr/local/lib/python3.6/site-packages/thriftybuilder/builders.py", line 188, in build_all
    build_results = self.build(build_configuration, left_to_build, _checksum_storage=checksum_storage)
  File "/usr/local/lib/python3.6/site-packages/thriftybuilder/builders.py", line 164, in build
    build_result = self._build(build_configuration)
  File "/usr/local/lib/python3.6/site-packages/thriftybuilder/builders.py", line 259, in _build
    raise BuildStepError(build_configuration.name, error_details["message"], error_details.get("code"))
thriftybuilder.builders.BuildStepError: Build for foo/bar failed with exit code 127: The command '/bin/sh -c ./setup-dev-env.sh' returned a non-zero code: 127

Directory structure is important

Currently, the directory structure is not considered in the hash.

It is therefore possible to change paths without triggering a rebuild.

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.