Improve Dockerfile, entrypoint and README #2
Loading…
Reference in a new issue
No description provided.
Delete branch ":improve/dockerfile-readme"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi! This PR cleans up the existing image in three places (Dockerfile, entrypoint, README) without changing what the image actually does — it still runs systemd, still installs
proxmox-datacenter-managerfrom the same trixie mirror, and still SSHs in via thePASSWORDenv var.Dockerfile
ARG DEBIAN_FRONTEND=noninteractive→ENVso the non-interactive flag stays set at runtime, not only during build.ENV TERM="xterm-256color".set -euxinside the heavyaptlayer so transient failures abort the build instead of leaving a half-installed image.gnupgalongsidecurlsoproxmox-datacenter-managerpackages verify cleanly against the keyring.curl -kfsSfor fail-fast probing, and--start-periodis bumped to 120s because the PDM API daemon reliably takes >60s to bind on first boot in this base image.org.opencontainers.image.source,image.url,image.licenses, andimage.title. These surface in registries and tools that respect the image-spec annotations.scripts/entrypoint.shset -eat the top. The twomountcalls are still individually guarded with|| truebecause cgroup v2 hosts don't expose/sys/fs/cgroup, but anything else now aborts before we hand off to systemd.PASSWORDis set but/etc/machine-idalready exists, so users changing the env var at restart don't silently get the existing password.chpasswdas defence in depth.README
linux/amd64-only constraint (PDM upstream has no arm64 packages).docker runexample alongside the compose one.SYS_ADMIN/NET_ADMINandseccomp/apparmorunconfined, and that root SSH login is enabled by default..dockerignore(new)Exclude
.git,.woodpecker/, docs, and IDE config from the build context.Verification
Local
docker buildsucceeds, the container boots systemd cleanly,proxmox-datacenter-api.servicereportsactive (running), the HEALTHCHECK settles onhealthy, and the entrypoint was tested across all threePASSWORD×/etc/machine-idpermutations:PASSWORD/etc/machine-id—
This PR was prepared by an AI agent on behalf of the maintainer.
- Fix the typos ("Describtion", "in an simple" in the description; missing grammar in ENVs section). - Document the amd64-only architecture constraint, since PDM upstream has no arm64 packages. - Add explicit volumes, ports, and tag tables so users know what to mount and which tag to pin. - Add a `docker run` example alongside compose — not every operator uses compose. - Add a security section calling out the privileged sandbox so users don't expose the container blindly. - Add a "Building locally" section so the README doubles as a contributor doc. - Strip the bottom-up description sentence so the intro flows.