Skip to content

Commit

Permalink
Update Dockerfile and GitHub Actions for safe directory config
Browse files Browse the repository at this point in the history
  • Loading branch information
oleander committed Nov 8, 2024
1 parent d6910f3 commit e381ccd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ RUN groupadd -g $GROUP_ID -o user && \
ENV BUNDLE_PATH=/cache/bundle

RUN apt-get update && \
apt-get install -y cmake && \
apt-get install -y cmake git && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

RUN git config --global --add safe.directory *
RUN gem install solargraph bundler:2.3.3

COPY Gemfile Gemfile.lock git_fame.gemspec ./
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,4 @@ jobs:
run: docker build -t git-fame -f .devcontainer/Dockerfile --build-arg USER_ID=$(id -u) --build-arg GROUP_ID=$(id -g) .

- name: Run tests in Docker container
run: docker run --rm -v $(pwd):/workspace git-fame bundle exec rspec
run: docker run --rm -v $(pwd):/workspace --user $(id -u):$(id -g) git-fame bundle exec rspec

0 comments on commit e381ccd

Please sign in to comment.