Giter VIP home page Giter VIP logo

bork's People

Contributors

jbonnett avatar joncotton avatar shacker avatar

Stargazers

 avatar  avatar  avatar

Watchers

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

Forkers

jbonnett

bork's Issues

NetworkUpReq

Ensure that the network is up and running, should accept reasonable configuration options

PipReq and VirtualenvReq need to fail if their package installation fails

If the installation of packages fails for any reason, the Req needs to fail also. Here what happens currently on a timeout while trying to download a package:

File "/usr/lib/python2.7/socket.py", line 447, in readline
     data = self._sock.recv(self._rbufsize)
timeout: timed out
Storing complete log in /home/ubuntu/.pip/pip.log
[OK]

The Req returns that [OK] and continues on.

Bork assumes standard python packages in Ubuntu

Bork should install its dependencies. At the moment it assumes whatever is available in the standard system python environment. So running bork in a virtualenv means you've got to build the env with something like virtualenv --distribute --system-site-packages myenv

add ConditionalReq

Conditional req takes a conditional function as a arguement and if it returns true it continues and satisfies its dependancies.
For instance

ConditionalReq(condition=lambda: return True, deps=[
    AptReq(packages=["buildessentials"])

] )

Could be very useful with FactReq

Global Machine Facts.

Think facter but simpler

FactReq(name="buildnumber", finder=lamda : int(time.time()))

And then retrive via 
FactGet(name="name") 
which will either get the required value or call the function required to get it. 

AptUpgrade() TypeError

example.py fails with a TypeError

[OK]
checking: CommandReq grep -q "deb http://download.virtualbox.org/virtualbox/debian precise non-free contrib" /etc/apt/sources.list||
echo "deb http://download.virtualbox.org/virtualbox/debian precise non-free contrib" >> /etc/apt/sources.list
executing command: grep -q "deb http://download.virtualbox.org/virtualbox/debian precise non-free contrib" /etc/apt/sources.list||
echo "deb http://download.virtualbox.org/virtualbox/debian precise non-free contrib" >> /etc/apt/sources.list
[OK]
Traceback (most recent call last):
File "example.py", line 39, in
AptUpgrade(),
File "/home/jobrien/Development/bork/bork/base_req.py", line 44, in satisfy
satisfy_deps(self.deps, make_satisfied=True)
File "/home/jobrien/Development/bork/bork/base_req.py", line 5, in satisfy_deps
print 'checking: %s' % dep
File "/home/jobrien/Development/bork/bork/apt_reqs.py", line 64, in str
return "AptReq with packages %s " % ', '.join(self.packages) + self.deps_str()
TypeError

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.