Skip to content

Commit

Permalink
push: implement a simple tool in bun that serves as a workaround for …
Browse files Browse the repository at this point in the history
…request body limits
  • Loading branch information
gabivlj committed Sep 26, 2024
1 parent e5e6de8 commit 38e065a
Show file tree
Hide file tree
Showing 11 changed files with 1,138 additions and 336 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9.9
version: 9.9.0
- name: Use Node
uses: actions/setup-node@v4
with:
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ the target registry and setup the credentials.
Right now there is some limitations with this container registry.

- Pushing with docker is limited to images that have layers of maximum size 500MB. Refer to maximum request body sizes in your Workers plan.
- To circumvent that limitation, you can manually add the layer and the manifest into the R2 bucket or use a client that is able to chunk uploads in sizes less than 500MB (or the limit that you have in your Workers plan).
- To circumvent that limitation, you can either manually interact with the R2 bucket to upload the layer or take a
peek at the `./push` folder for some inspiration on how can you push big layers.
- If you use `npx wrangler dev` and push to the R2 registry with docker, the R2 registry will have to buffer the request on the Worker.

## License
Expand Down
Loading

0 comments on commit 38e065a

Please sign in to comment.