Skip to content

About

bitmachine's public development fixture: a source repository its tests and demonstration pin and start

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bitmachine-fixture

The public development fixture of bitmachine, a self-hosted hosting platform. bitmachine's tests and demonstration register this repository as a source, pin a commit of it, and start what it declares.

It holds only what bitmachine's first milestone exercises:

  • bitmachine.json, the component manifest: one service, web, that runs a digest-pinned public busybox image and serves a static page on port 8080 as an unprivileged, bounded process.
  • build/, the same service built from source: its bitmachine.json builds the image build/Dockerfile describes, from a digest-pinned public node:22-alpine base and the package set build/package-lock.json pins (one dependency, ms), and runs it as web. Its page carries a value computed by that dependency, so serving it shows the package set was the one installed; its log ticks once a second. The build runs with no network: the base image reaches it from bitmachine's own server, and the package set is vendored in the tree.
  • build/npm-cache/, that package set as npm's content cache: each tarball the lockfile pins, at _cacache/content-v2/sha512/<hex[0:2]>/<hex[2:4]>/<hex[4:]>, where hex is the lockfile's integrity in hexadecimal. The Dockerfile mounts it from the build context and installs with npm ci --offline, so the uploaded build/ tree is the build's whole source.

Pinned use. bitmachine's tests resolve refs/heads/main and assert the commit they get against one pinned in bitmachine's own repository. A change here therefore means updating that pin in the same bitmachine change. main is protected against force-pushes and deletion.

It contains no secrets, credentials or real host names, and nothing derived from private code.

Licensed under the Apache License, Version 2.0: see LICENSE and NOTICE.

About

bitmachine's public development fixture: a source repository its tests and demonstration pin and start

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages