Dockerize wrangler
See original GitHub issueSuggestion
- It would be great to have a dockerized version of this program that is self-contained
- include an option to for build-required files (i.e. cache the template requirements in the image so they don’t have to be downloaded everytime you call
build
- include node version option
Issue Analytics
- State:
- Created 4 years ago
- Reactions:26
- Comments:22 (2 by maintainers)
Top Results From Across the Web
avatarnewyork/wrangler - Docker Image
wrangler is a CLI tool designed for folks who are interested in using Cloudflare Workers. Wrangler Demo. Docker. Configuration. create a directory if...
Read more >Use Docker for Cloudflare Pages and Workers development
Cloudflare has a Wrangler tool that allows us to develop Pages and Workers locally. We can test our build SPA (i.e., the code...
Read more >16 - EMR & Docker - AWS Data Wrangler - Read the Docs
%%bash docker build -t 'local/emr-wrangler' . aws ecr create-repository --repository-name emr-wrangler docker tag local/emr-wrangler ...
Read more >Prebuilt SageMaker Docker Images for Deep Learning
Amazon SageMaker provides prebuilt Docker images that include deep learning frameworks and other dependencies needed for training and inference.
Read more >docker | Network Wrangler – Tech Blog - Power Admin
Articles tagged with 'Docker' at Network Wrangler - Tech Blog.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I still think that this ticket is very important!
Hi @gabbifish - thanks for considering. See inline below
Doesn’t rely on npm/node (or knowledge on using node/npm), os libraries, software updates, etc. You just need docker - that’s it. This makes “installing” easy (i.e. I can use this program even though I don’t have node/npm on my laptop). It always makes updates easier and doesn’t rely on 3rd party libraries / software other than docker (i.e. no conflicts / issues with updates). it’s fully self contained. Docker is well established platform and most CLI’s and services have an official docker version. This would help wrangler become more widely accepted and provide greater availability / visibility.
Suggested workflow is documented here: https://github.com/cloudflare/wrangler/pull/338
This is of course how I’m using it and others may have better suggestions / improvements to this.
I would suggest providing both methods (as keeping with docker best practices and standards). If you take a look at my PR, it’s just adding 2 files: Dockerfile, .dockerignore to the repo. That allows other to build the image as they see fit as well as provide an docker image via docker registry like I’m currently doing via our company repo:
https://hub.docker.com/r/avatarnewyork/wrangler
I would suggest having an official wrangler docker repo (or maybe under cloudflare’s docker repo)? Of course it’s not required but would give it more visibility to the community and make it easier to find / use. In regards to image builds/maint, I would suggest integrating the build within your existing CI workflow (or, if that is too much of a pain, a less ideal option would be to kick off an automated build on the docker registry. This of course, wouldn’t allow you to run any tests though, which could be done as part of your CI process). If you prefer NOT to host your own binary / image, you could just provide the dockerfile to allow others to build, but won’t have the same impact.