You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The build script runs Docker Buildx once to generate a multi-architecture manifest for both `linux/amd64` and `linux/arm64`.
30
+
31
+
```bash
32
+
./docker/build.sh 0.1.0
33
+
```
34
+
35
+
By default the manifest is pushed to GitHub Container Registry. Switch to a local OCI archive by setting `OUTPUT_MODE=oci` (the archive is written to `docker/dist/bioscript-<version>.oci.tar` unless `OUTPUT_DEST` is provided):
36
+
37
+
```bash
38
+
OUTPUT_MODE=oci ./docker/build.sh 0.1.0
39
+
```
40
+
41
+
After building you can inspect the manifest to confirm both platforms are present:
-`OUTPUT_DEST=path/to/archive.tar` when `OUTPUT_MODE=oci`
51
+
-`LOAD_PLATFORM=linux/amd64|linux/arm64|none` (default `auto`, meaning match the host). The script always executes the multi-arch build first, then optionally loads one platform locally for quick testing.
52
+
53
+
> **Note:** Run `docker login ghcr.io` before using `OUTPUT_MODE=push`.
54
+
55
+
### Local architecture-specific tests
56
+
57
+
To build and exercise the container for a single architecture without pushing to GHCR, use the helper scripts in the repository root:
58
+
59
+
```bash
60
+
# On x86_64 hosts
61
+
./test_docker_amd64.sh
62
+
63
+
# On arm64 hosts (including Apple Silicon)
64
+
./test_docker_arm64.sh
65
+
```
66
+
67
+
These scripts perform the multi-arch build, load the host architecture locally, and exercise the classifier with `docker run --platform=<arch> ...`.
0 commit comments