adnichols / docker-spoon Goto Github PK
View Code? Open in Web Editor NEWGem to allow developers to spoon...erm, pair with each other using Docker and tmux
License: MIT License
Gem to allow developers to spoon...erm, pair with each other using Docker and tmux
License: MIT License
If you have an image with a name like "host.name:5000/image_name" then when you list images via spoon -l it will show 'host.name' as the image name. It should ideally show the full image name (or at least prefer the tag instead of the repository)
Idea here is to have a list of commands in your .spoonrc which are run after container creation, similar to the copy_on_create option.
Why Spoon? / Learn more about spoon video is not available to the public, leading to a page with the message. "This video is private."
It would be nice to have spoon configured to support multiple docker hosts. Initial implementation I think looks like a config that supports multiple hosts being listed but container names would need to be globally unique. Alternatively, or additionally having a default host that's used but an easy way to specify another host to use for a one-off connection. Allows teams to maintain a master .spoonrc but distribute teams across hosts.
Something like options["privileged"] = "true" in spoonrc should suffice.
I think it'd be useful to be able to commit a container to an image - save the state for later or allow you to export it and back it up.
Currently directories being copied into place are problematic when they don't exist on the spoon container. Need further investigation
This idea comes from knife-block in chef - I have a setup like this:
โฏ : ls -l .spoon*
lrwxr-xr-x 1 root staff 17 Nov 4 10:15 .spoonrc -> .spoonrc.fds-demo
-rw-r--r-- 1 anichols staff 125 Nov 4 10:18 .spoonrc.fds-demo
-rw-r--r-- 1 anichols staff 342 Nov 2 11:28 .spoonrc.formation
-rw-r--r-- 1 anichols staff 226 Nov 2 11:30 .spoonrc.local
Would like to be able to view this list and switch them easily using spoon rather than manually swapping configs. Maybe redundant w/ -c, but seems useful maybe.
If I run spoon w/ no .spoonrc:
/Users/anichols/.chefdk/gem/ruby/2.1.0/gems/docker-spoon-0.5.0/lib/spoon.rb:59:in `initialize': No such file or directory - /Users/anichols/.spoonrc (Errno::ENOENT)
from /Users/anichols/.chefdk/gem/ruby/2.1.0/gems/docker-spoon-0.5.0/lib/spoon.rb:59:in `open'
from /Users/anichols/.chefdk/gem/ruby/2.1.0/gems/docker-spoon-0.5.0/lib/spoon.rb:59:in `<module:Spoon>'
from /Users/anichols/.chefdk/gem/ruby/2.1.0/gems/docker-spoon-0.5.0/lib/spoon.rb:7:in `<top (required)>'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/anichols/.chefdk/gem/ruby/2.1.0/gems/docker-spoon-0.5.0/bin/spoon:5:in `<top (required)>'
from /usr/bin/spoon:23:in `load'
from /usr/bin/spoon:23:in `<main>'
My first thought is to just implement the docker cp
functionality to copy files from the container. Also maybe just a nice helper to use scp but make it simpler than having to lookup the port & IP of the host being used.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.