remove xdiff/diffy/rb-bsdiff

This commit is contained in:
Dylan Knutson
2025-07-21 21:19:28 +00:00
parent 538d3919d9
commit fd61616c03
73 changed files with 6 additions and 10874 deletions

View File

@@ -1,23 +1,3 @@
FROM ruby:3.2 AS native-gems
RUN rm -f /etc/apt/apt.conf.d/docker-clean; \
echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' > /etc/apt/apt.conf.d/keep-cache
RUN \
--mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt,sharing=locked \
apt-get update && \
apt-get install --no-install-recommends --no-install-suggests -y \
cmake
WORKDIR /usr/src/app
RUN gem install bundler -v '2.4.5'
COPY gems gems
WORKDIR /usr/src/app/gems/xdiff-rb
RUN bundle install
RUN rake compile
WORKDIR /usr/src/app/gems/rb-bsdiff
RUN bundle install
RUN rake compile
# Primary image
FROM mcr.microsoft.com/devcontainers/ruby:1-3.2-bookworm
@@ -75,15 +55,13 @@ RUN wget -O- https://github.com/dandavison/delta/releases/download/0.18.2/git-de
RUN git config --system core.pager "delta" && \
git config --system interactive.diffFilter "delta --color-only" && \
git config --system delta.navigate true && \
git config --system delta.dark true && \
git config --system delta.side-by-side true && \
git config --system delta.navigate "true" && \
git config --system delta.dark "true" && \
git config --system delta.side-by-side "true" && \
git config --system merge.conflictstyle "zdiff3" && \
git config --system core.editor "cursor --wait"
# Install native gems
COPY --from=native-gems /usr/src/app/gems/xdiff-rb /gems/xdiff-rb
COPY --from=native-gems /usr/src/app/gems/rb-bsdiff /gems/rb-bsdiff
git config --system core.editor "cursor --wait" && \
git config --system diff.algorithm "histogram" && \
git config --system diff.colorMoved "default"
ENV RAILS_ENV development