mirror of
https://github.com/cjfranko/NTP-Timeturner.git
synced 2025-11-08 18:32:02 +00:00
refactor: switch PTP daemon to linuxptp/ptp4l; remove statime
Co-authored-by: aider (openai/gpt-5) <aider@aider.chat>
This commit is contained in:
parent
21e65d6125
commit
90cc95be21
2 changed files with 12 additions and 8 deletions
|
|
@ -20,7 +20,7 @@ RUN rm -rf src
|
|||
|
||||
# Copy full source and build project
|
||||
COPY . .
|
||||
RUN cargo build --release && cargo install --locked statime
|
||||
RUN cargo build --release
|
||||
|
||||
# (Statime installation removed; container runs only haci)
|
||||
|
||||
|
|
@ -32,12 +32,13 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||
ca-certificates \
|
||||
tzdata \
|
||||
socat \
|
||||
linuxptp \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=builder /app/target/release/get-haci /usr/local/bin/get-haci
|
||||
COPY --from=builder /usr/local/cargo/bin/statime /usr/local/bin/statime
|
||||
# Using linuxptp (ptp4l) provided by apt; no statime binary copied
|
||||
COPY static ./static
|
||||
COPY scripts/entrypoint.sh /usr/local/bin/entrypoint.sh
|
||||
COPY scripts/ltc_gen.sh /usr/local/bin/ltc-gen.sh
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue