- Add .gitignore: exclude compiled binaries, build artifacts, and Helm values files containing real secrets (authentik, prometheus) - Add all Kubernetes deployment manifests (deployment/) - Add services source code: ha-sync, device-inventory, games-console, paperclip, parts-inventory - Add Ansible orchestration: playbooks, roles, inventory, cloud-init - Add hardware specs, execution plans, scripts, HOMELAB.md - Add skills/homelab/SKILL.md + skills/install.sh to preserve Copilot skill - Remove previously-tracked inventory-cli binary from git index Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
15 lines
562 B
Text
15 lines
562 B
Text
FROM ubuntu:22.04 AS builder
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
cmake make g++ && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
WORKDIR /src
|
|
COPY . .
|
|
RUN rm -rf build && cmake -S . -B build -DCMAKE_BUILD_TYPE=Release && \
|
|
cmake --build build --parallel
|
|
|
|
FROM ubuntu:22.04
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
dmidecode iproute2 util-linux pciutils libstdc++6 && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
COPY --from=builder /src/build/device-inventory /usr/local/bin/
|
|
ENTRYPOINT ["device-inventory"]
|