Sign inSign up

longnguyen58445/offload-kit

By longnguyen58445

•Updated 6 days ago

Sandbox Kit
0

277

longnguyen58445/offload-kit repository overview

Digest

sha256:2bee7c7ee477…

Size

2 Bytes

Schema

v2

Pushed

6 days ago

Specificationspec.yaml

MIXIN
REQUIRES SECRETS

Installs the Docker Offload CLI plugin (v0.6.85, linux amd64 and arm64, from a plugin image) set to the Cloud Sandboxes engine (Offload v2), so agents can run Docker workloads on a remote engine through the docker-cloud context. Signs in with a Docker personal access token bound on the host.


Arguments
NameRequiredDefaultDescription
pluginImageOptionallongnguyen58445/offload-plugin:0.6.85

Image holding the docker-offload plugin at /docker-offload (built from kits/offload-plugin). Its binary must match the checksums pinned in the startup script.

stageOptional

Set to 1 to use Docker's staging environment (needs a staging PAT). Empty is production.

usernameOptional

Docker ID the personal access token belongs to. Leave empty to sign in by hand with docker login.


Credentials
NameServiceRequiredDescription
DOCKER_OFFLOAD_PATdocker-offloadOptionalDocker personal access token for the account that has Cloud Sandboxes access. The startup script signs in with it, so it is present in the sandbox (and in ~/.docker/config.json); scope it narrowly.

Network Egress

hub.docker.com:443

login.docker.com:443

index.docker.io:443

auth.docker.io:443

registry-1.docker.io:443

production.cloudfront.docker.com:443

production.cloudflare.docker.com:443

api.sandboxes-cloud.docker.com:443

ssh.sandboxes-cloud.docker.com:22

100.22.208.130:22

52.39.3.133:22

54.212.241.121:22

api.offload.docker.com:443

hub-stage.docker.com:443

login-stage.docker.com:443

index-stage.docker.io:443

api.sandboxes-cloud-stage.docker.com:443

Apply this mixin to a sandbox

sbx run <agent> --kit longnguyen58445/offload-kit:0.2.4

Make sure you have docker sbx installed

Run the following command to install sbx on your machine.

macOS
brew install docker/tap/sbx
Windows
winget install Docker.sbx
Learn more about docker sbx⁠
No overview available
This repository doesn't have an overview