Coder Social home page Coder Social logo

Comments (1)

danilobellini avatar danilobellini commented on June 28, 2024

I remember that as well. =)

I'm aware that would be a major enhancement for this project.

As it seems, based on the link you sent, it'll need a specific configuration file (Dockerfile), a "build/install/configure" call and a "run" call (script(s)).

The dose script is already a shell script that calls the main() in dose.py, but it's generated by setup.py on installing the package:

metadata["entry_points"] = {"console_scripts": ["dose=dose:main"]}

http://python-packaging.readthedocs.org/en/latest/command-line-scripts.html

For that enhancement, dose would need new scripts for Vagrant/Docker (a call to dose_vagrant, dose_docker, etc.), or a changed dose shell script with a "first parameter" like --vagrant or --docker when using these (and perhaps a --vagrant-build and a --docker-build, if needed).

dose --docker-build # Don't open dose, just build whatever needed
dose --docker <call_command_and_parameters>

There's another issue concerning the directory to be given to the watchdog and to call the given command. Perhaps the --*-build should have extra configuration parameters to be saved on .dose.conf... and probably there are several other problems concerning distro specificities. Perhaps the call command should be part of the build line (to create a configuration file ending with CMD dose <call_command_and_parameters>)... maybe there's no need for calling dose twice, I'm not really sure about that (but I think waiting an apt-get update all the time wouldn't be fair).

If you wish, feel free to enhance dose this way, I'll be waiting the pull request. =) Probably there would be no extra dependency for that, just a new dose shell script and a "boilerplate" configuration file for each VM/container, besides minimum changes in setup.py for using the new dose script file... unless I'm missing something... what do you think?

After a first version that actually works, distro/install/VM generalization comes, that shouldn't worry anyone by now unless you've already thought on such and want to introduce that here. =)

from dose.

Related Issues (13)

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.