Skip to content

Commit

Permalink
Add git-archive-all
Browse files Browse the repository at this point in the history
Install it in Git's exec dir, so `git archive-all` will DTRT.

Also add `cmake` to the image.
  • Loading branch information
theory committed Jan 24, 2024
1 parent 1114aed commit 8d65e88
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ADD https://salsa.debian.org/postgresql/postgresql-common/-/raw/master/pgdg/apt.
RUN chmod +x /usr/local/bin/apt.postgresql.org.sh \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential clang llvm llvm-dev llvm-runtime \
build-essential clang llvm llvm-dev llvm-runtime cmake \
pgxnclient libtap-parser-sourcehandler-pgtap-perl sudo gosu \
ca-certificates gnupg2 zip unzip curl git libicu-dev libxml2 locales ssl-cert \
&& apt-get -y purge postgresql-client-common \
Expand All @@ -18,7 +18,12 @@ RUN chmod +x /usr/local/bin/apt.postgresql.org.sh \
&& perl -i -pe 's/\bALL$/NOPASSWD:ALL/g' /etc/sudoers \
&& echo 'postgres ALL=(ALL:ALL) NOPASSWD:ALL' >> /etc/sudoers \
# Ensure Git can do stuff in the working directory (issue #5).
&& git config --system --add safe.directory '*'
&& git config --system --add safe.directory '*' \
# Install git-archive-all
&& curl -O https://raw.githubusercontent.com/Kentzo/git-archive-all/1.23.1/git_archive_all.py \
&& perl -i -pe 's/python/python3/' git_archive_all.py \
&& install -m 0755 git_archive_all.py "$(git --exec-path)/git-archive-all" \
&& rm git_archive_all.py

COPY bin/* /usr/local/bin/

Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,7 @@ The image includes these packages; pass additional packages to
* [llvm](https://packages.debian.org/bookworm/llvm)
* [llvm-dev](https://packages.debian.org/bookworm/llvm-dev)
* [llvm-runtime](https://packages.debian.org/bookworm/llvm-runtime)
* [cmake](https://packages.debian.org/bookworm/cmake)
* [pgxnclient](https://packages.debian.org/bookworm/pgxnclient)
* [libtap-parser-sourcehandler-pgtap-perl](https://packages.debian.org/bookworm/libtap-parser-sourcehandler-pgtap-perl)
* [sudo](https://packages.debian.org/bookworm/sudo)
Expand All @@ -354,6 +355,7 @@ The image includes these packages; pass additional packages to
* [libxml2](https://packages.debian.org/bookworm/libxml2)
* [locales](https://packages.debian.org/bookworm/locales)
* [ssl-cert](https://packages.debian.org/bookworm/ssl-cert)
* [git-archive-all](https://github.com/Kentzo/git-archive-all) (run `git archive-all`)

Author
------
Expand Down

0 comments on commit 8d65e88

Please sign in to comment.