Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DOCKER] Update github-changelog-generator #75

Merged
merged 1 commit into from
Dec 3, 2021
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
25 changes: 13 additions & 12 deletions docker/github-changelog-generator/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
FROM ruby:3.0.0-alpine3.13

# Create user
RUN addgroup --gid 11111 -S app
RUN adduser -s /bin/false -u 11111 -G app -S app

# Setup workdir
RUN mkdir -p /src
WORKDIR /src
RUN chown -R app:app /src

# Install dependencies
RUN apk add --no-cache git

# Install Gems
COPY docker/github-changelog-generator/Gemfile Gemfile
RUN gem install bundler --version $(cat Gemfile | grep bundler | awk -F "'" '{print $4}') \
&& bundle install --system \
&& gem uninstall bundler
RUN bundle install

ENV SRC_PATH /src
RUN mkdir -p $SRC_PATH
VOLUME [ "$SRC_PATH" ]
WORKDIR $SRC_PATH

RUN addgroup --gid 11111 -S app
RUN adduser -s /bin/false -u 11111 -G app -S app
RUN chown -R app:app /src
# Run app
USER app

CMD ["--help"]
ENTRYPOINT ["github_changelog_generator"]
70 changes: 70 additions & 0 deletions docker/github-changelog-generator/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
GEM
remote: https://rubygems.org/
specs:
activesupport (6.1.4.1)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 1.6, < 2)
minitest (>= 5.1)
tzinfo (~> 2.0)
zeitwerk (~> 2.3)
addressable (2.8.0)
public_suffix (>= 2.0.2, < 5.0)
concurrent-ruby (1.1.9)
faraday (1.8.0)
faraday-em_http (~> 1.0)
faraday-em_synchrony (~> 1.0)
faraday-excon (~> 1.1)
faraday-httpclient (~> 1.0.1)
faraday-net_http (~> 1.0)
faraday-net_http_persistent (~> 1.1)
faraday-patron (~> 1.0)
faraday-rack (~> 1.0)
multipart-post (>= 1.2, < 3)
ruby2_keywords (>= 0.0.4)
faraday-em_http (1.0.0)
faraday-em_synchrony (1.0.0)
faraday-excon (1.1.0)
faraday-http-cache (2.2.0)
faraday (>= 0.8)
faraday-httpclient (1.0.1)
faraday-net_http (1.0.1)
faraday-net_http_persistent (1.2.0)
faraday-patron (1.0.0)
faraday-rack (1.0.0)
github_changelog_generator (1.15.2)
activesupport
faraday-http-cache
multi_json
octokit (~> 4.6)
rainbow (>= 2.2.1)
rake (>= 10.0)
retriable (~> 3.0)
i18n (1.8.11)
concurrent-ruby (~> 1.0)
minitest (5.14.4)
multi_json (1.15.0)
multipart-post (2.1.1)
octokit (4.21.0)
faraday (>= 0.9)
sawyer (~> 0.8.0, >= 0.5.3)
public_suffix (4.0.6)
rainbow (3.0.0)
rake (13.0.6)
retriable (3.1.2)
ruby2_keywords (0.0.5)
sawyer (0.8.2)
addressable (>= 2.3.5)
faraday (> 0.8, < 2.0)
tzinfo (2.0.4)
concurrent-ruby (~> 1.0)
zeitwerk (2.5.1)

PLATFORMS
x86_64-linux-musl

DEPENDENCIES
bundler (= 2.2.3)!
github_changelog_generator (= 1.15.2)!

BUNDLED WITH
2.2.3
6 changes: 4 additions & 2 deletions docker/github-changelog-generator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ Docker image for [github-changelog-generator](https://github.com/github-changelo

## Usage
```bash
$ docker run --rm -it -v $(pwd):/src \
ghcr.io/marco-lancini/github-changelog-generator:latest -t $CHANGELOG_GITHUB_TOKEN
$ docker run --rm -it -v $(pwd):/src \
ghcr.io/marco-lancini/github-changelog-generator:latest \
--user <user> --project <project> \
-t $CHANGELOG_GITHUB_TOKEN \
```
2 changes: 1 addition & 1 deletion docker/github-changelog-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1
1.1