jfxs/wrangler

By jfxs

Updated 3 days ago

An up-to-date Node.js image with Cloudflare Wrangler

Image
Integration & delivery
0

10K+

jfxs/wrangler repository overview

Wrangler

Software License Pipeline Status

A Node.js Docker image with Cloudflare Wrangler:

  • lightweight image based on a debian-slim,
  • multiarch with support of amd64 and arm64,
  • automatically updated by comparing software bill of materials (SBOM) changes,
  • image signed with Cosign,
  • a software bill of materials (SBOM) attestation added using Syft,
  • available on Docker Hub and Quay.io.

GitLab The main repository.

Docker Hub The Docker Hub registry.

Quay.io The Quay.io registry.

Running Wrangler in local

docker run -t --rm -v $(pwd):/data jfxs/wrangler /bin/sh -c "export WRANGLER_SEND_METRICS=false && export CLOUDFLARE_ACCOUNT_ID=<account_id> && export CLOUDFLARE_API_TOKEN=<api_token> && npx wrangler pages deploy /data/public --project-name my-project"

Running Wrangler in Gitlab-CI

Example of usage with Gitlab-CI:

CI/CD Protected/Masked VariablesDescriptionType
CLOUDFLARE_ACCOUNT_IDCloudflare account IDVariable
CLOUDFLARE_API_TOKENCloudflare API tokenVariable
 ...
cloudflare-publish:
  image: jfxs/wrangler:latest
  stage: publish
  variables:
    WRANGLER_SEND_METRICS: "false"
  script:
    - if [ -z "$CLOUDFLARE_ACCOUNT_ID"]; then echo "CLOUDFLARE_ACCOUNT_ID is empty!" && exit 1; fi
    - if [ -z "$CLOUDFLARE_API_TOKEN"]; then echo "CLOUDFLARE_API_TOKEN is empty!" && exit 1; fi
    - npx wrangler pages deploy /data/public --project-name my-project
  rules:
    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH

Built with

Docker latest tag is 4.112.0-001, 4.112, 4 and has:

NameVersionType
ca-certificates20230311+deb12u1deb
curl7.88.1-10+deb12u15deb
git1:2.39.5-0+deb12u3deb
github.com/go-task/task/v3v3.52.0go-module
node24.18.0UnknownPackage
npm11.16.0npm
wrangler4.112.0npm

Dockerhub Overview page has the details of the last published image.

Versioning

Docker tag definition:

  • the Wrangler version used,
  • a dash
  • an increment to differentiate build with the same version starting at 001
<wrangler_version>-<increment>

Example: 3.51.2-001

Signature and attestation

Cosign public key:

-----BEGIN PUBLIC KEY-----
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEa3yV6+yd/l4zh/tfT6Tx+zn0dhy3
BhFqSad1norLeKSCN2MILv4fZ9GA6ODOlJOw+7vzUvzZVr9IXnxEdjoWJw==
-----END PUBLIC KEY-----

The public key is also available online: https://gitlab.com/op_so/docker/cosign-public-key/-/raw/main/cosign.pub.

To verify an image:

cosign verify --key cosign.pub $IMAGE_URI

To verify and get the software bill of materials (SBOM) attestation:

cosign verify-attestation --key cosign.pub --type spdxjson $IMAGE_URI | jq '.payload | @base64d | fromjson | .predicate'

Authors

License

This program is free software: you can redistribute it and/or modify it under the terms of the MIT License (MIT). See the LICENSE for details.

Tag summary

Content type

Image

Digest

sha256:6d7012b07

Size

182.1 MB

Last updated

3 days ago

docker pull jfxs/wrangler