Comments (1)
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)
- AttributeError: 'module' object has no attribute 'Frame' HOT 4
- Drop current call syntax in favor of double dashed options/arguments separator HOT 3
- Double-quoted command won't work on Windows HOT 1
- Red color control characters aren't being interpreted in Windows Command Prompt HOT 2
- Dose crashes on OSError raised by watchdog
- Disable colors option HOT 1
- requirements.txt HOT 4
- Add a timer component HOT 8
- Pattern for files to ignore? HOT 1
- CLI arguments (sys.argv parsing)
- CLI-GUI option; Optional GUI
- Color customization and "Preferences" dialog
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dose.