Tangled Scaleway Instances#
Packer configuration for building Tangled VM images (knot and spindle) on Scaleway.
Tangled binaries are built by mise, and are uploaded to the VM images when building them with packer.
VMs use Caddy to expose the Tangled services with HTTPS.
Setup#
mise install
Mise Tasks#
Set up the required Packer variables (create variables.auto.pkrvars.hcl):
cat > variables.auto.pkrvars.hcl << EOF
spindle_server_hostname = "your-hostname.example.com"
spindle_server_owner = "did:plc:your-did"
EOF
Build all binaries and the image:
mise build
Build a specific version of the tangled binaries and the image:
mise build v1.14.0-alpha
Running the Image#
Get the image ID:
SPINDLE_IMAGE_ID=$(scw instance image list name=tangled-spindle -o json | jq -r '.[].id')
Run the instance:
scw instance server create name=tangled-spindle type=DEV1-S image=$SPINDLE_IMAGE_ID zone=fr-par-1