Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM ruby:4.0-alpine

RUN apk add --no-cache \
build-base \
git \
libgit2-dev \
cmake

RUN gem install git-pkgs

# The git repository (the mounted directory) has different ownership that the root user of the container.
# Due to an update in git, a different user cannot perform git operations on the mounted directory.
# This command allows the any user to perform git operations on the mounted directory.
RUN git config --system --add safe.directory /mnt

WORKDIR /mnt

ENTRYPOINT ["git", "pkgs"]
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ Or with RubyGems:
gem install git-pkgs
```

Or using Docker:

```bash
docker build -t git-pkgs .
docker run -it --rm -v $(pwd):/mnt git-pkgs <subcommand>
```

## Quick start

```bash
Expand Down