Closed MPV closed 6 years ago
Leaving this here for reference:
runlike
seems to be able to do the same thing:
https://github.com/lavie/runlike#run-without-installing
@MPV Wow, thanks for the detailed suggestion/contribution! I think this is a great idea. I should have some time later today to dive into this and provide feedback. Thanks again!
@MPV Hi, sorry it has taken me a few days to look into this.
Instead of building from the docker
image and installing node/npm, what do you think about building from mhart/alpine-node
instead and then running/using it this way?
$ docker run --rm -it -v /var/run/docker.sock:/var/run/docker.sock -v $(which docker):/usr/bin/docker nexdrew/rekcod:2.1.0 <name_of_container>
This would use the docker bin from the host OS (instead of requiring the docker bin to be baked into the image) and would allow the image to be smaller (67.5MB instead of 177MB).
If you don't like that idea, we could also publish both versions under different tags or versions, so folks could choose which one they want.
Once we decide, we should add something to the README that describes the zero-install usage of rekcod. 😃
Sorry to let this stall, I'm happy with this contribution. What I plan to do is merge this, follow it up with a readme update, and then I'll publish to Docker Hub.
Thanks for contributing!
@MPV Thanks to your contribution, rekcod has been published to Docker Hub and can now be run without Node installed: https://hub.docker.com/r/nexdrew/rekcod/
Thanks again for your valuable contribution!
Hi @nexdrew, Thanks for creating this awesome project!
I've added a
Dockerfile
that makes it possible to run this as a Docker container.How to use it:
Build docker image:
docker build -t rekcod .
Example:
Run docker container:
docker run -it -v /var/run/docker.sock:/var/run/docker.sock rekcod name-of-container-to-inspect-here
Example:
Next steps:
@nexdrew: Would you be open to adding the image from this repo to Docker Hub (after merging the PR?)?
Here's how to manually publish to Docker Hub: https://docs.docker.com/docker-cloud/builds/push-images/
Here is a guide how to auto-publish from GitHub to Docker Hub: https://docs.docker.com/docker-hub/github/