Giter Club home page Giter Club logo

docker-rpmbuild's People

Contributors

bahadir avatar blalor avatar norrs avatar shawnsi avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

docker-rpmbuild's Issues

Missing LICENSE

I have another additional commit I would like to pull in if you want it, but you should probably agree on some kind of license.

BSD, MIT or something painless is my suggestion. :-)

Parse docker stdout/stderr properly

{u'status': u'Pulling repository docker.example.net:5000/centos'}
{u'errorDetail': {u'message': u'Error: image centos not found'}, u'error': u'Error: image centos not found'}

Should throw an PackagerException if error is found.

Revert using real file in test

You want to revert 631c073, you don't want to involve real files in a unit test (NamedTemporaryFile) .
Make integration tests incase you want that. (that's why we only assert that the mock is called once with the same argument given in --config.

SCL Support

Currently scl builds are only partially supported. Any scl build dependencies fail as yum-builddep does not properly parse the spec file with the defined variables required for collection support.

Unit Test Coverage (Tox)

@norrs has been kind enough to write unit tests for his contributions. I'll get tox setup and start working on covering the rest of the package.

The `--output` command does nothing on sucessful build; no files are written

After a successful build, no rpm files are copied to the output directory. The documentation says that the default output dir is ., but no files are written to the local directory, nor does a custom option like --output=/tmp work either.

This is what I see at the end of a build for collectd:

Processing files: collectd-debuginfo-5.5.0-1.el6.x86_64
Checking for unpackaged file(s): /usr/lib/rpm/check-files /root/rpmbuild/BUILDROOT/collectd-5.5.0-1.el6.x86_64
Wrote: /root/rpmbuild/SRPMS/collectd-5.5.0-1.el6.src.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/collectd-5.5.0-1.el6.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/collectd-amqp-5.5.0-1.el6.x86_64.rpm
... skipped package lines ...
Wrote: /root/rpmbuild/RPMS/x86_64/collectd-utils-5.5.0-1.el6.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/collectd-debuginfo-5.5.0-1.el6.x86_64.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.0rwcNF
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd collectd-5.5.0
+ rm -rf /root/rpmbuild/BUILDROOT/collectd-5.5.0-1.el6.x86_64
+ exit 0

docker-rpmbuild usage documentation

If you don't mind, I'll start on writing some documentation with sphinx on using docker-rpmbuild, with examples with both using config and overriding config values with provided command line arguments etc.

Error while trying to build RPM from .gem and .spec

Step 9 : CMD rpmbuild  -ba /rpmbuild/SPECS/reedb.spec
---> Running in b635aea4c815
---> f89702171758
Successfully built f89702171758
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.nxLE2X
+ umask 022
+ cd /root/rpmbuild/BUILD
+ gem unpack /root/rpmbuild/SOURCES/reedb-0.11.gem
ERROR:  While executing gem ... (Gem::Package::FormatError)
    No such file or directory @ rb_sysopen - /root/rpmbuild/SOURCES/reedb-0.11.gem

RPM build errors:

I created a tarball with a .gem file in it which is called "reedb-0.11.gem" and it seems to be unpacking it correctly.
What I don't understand is how it finds the .spec but doesn't correctly copy the .gem to the directory it needs to be in.

Not sure if this is a bug with your code. But maybe you can help me? Thanks

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.