Introduce a multi-stage Alpine Dockerfile that cross-compiles via buildx ($BUILDPLATFORM -> $TARGETARCH) so a single invocation produces both linux/amd64 and linux/arm64 images without a qemu-emulated builder. `make docker` loads the native-arch image locally for smoke tests; `make docker-push` publishes a multi-arch manifest. Ship a docker-compose.yaml with opt-in profiles for maglevd/frontend and a .env.example template so operators can mirror /etc/default/vpp-maglev muscle memory into containers.
21 lines
595 B
Plaintext
21 lines
595 B
Plaintext
build/
|
|
/*.yaml
|
|
# docker-compose.yaml is an exception to the /*.yaml rule above; it's
|
|
# tracked as part of the container deployment.
|
|
!/docker-compose.yaml
|
|
# .env holds (potentially secret) docker-compose runtime settings and
|
|
# must never be committed. .env.example is the tracked template.
|
|
.env
|
|
docs/implementation/
|
|
tests/out/
|
|
tests/.venv/
|
|
tests/**/maglevd.log
|
|
tests/**/clab-*/
|
|
cmd/frontend/web/node_modules/
|
|
# Binaries built at the repo root via `go build ./cmd/<name>/` (no -o).
|
|
# Anchored with a leading slash so they don't also match the source
|
|
# dirs under cmd/.
|
|
/frontend
|
|
/maglevc
|
|
/maglevd
|