Skip to content

Commit 6bf18e9

Browse files
Merge pull request #7 from Intellection/use_config_file
Always specify config file in command and always run as gemstash user.
2 parents 283daef + c2df0e9 commit 6bf18e9

File tree

3 files changed

+8
-21
lines changed

3 files changed

+8
-21
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 1.4.0
4+
5+
* Always specify the config file in the command and always run as gemstash user.
6+
37
## 1.3.0
48

59
* Add `GEMSTASH_PROTECTED_FETCH` configuration option to enable protected

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ RUN apk --update add \
99
su-exec \
1010
tini && \
1111
gem update --system && \
12-
gem update bundler && \
12+
gem install bundler:1.17.2 && \
1313
rm -rf /var/cache/apk/*
1414

1515
# Create gemstash user
@@ -27,6 +27,6 @@ RUN bundle install --jobs 4 --retry 3
2727
VOLUME "${GEMSTASH_HOME}/data"
2828

2929
EXPOSE 9292
30-
COPY entrypoint.sh /
31-
ENTRYPOINT ["/entrypoint.sh"]
32-
CMD ["bundle", "exec", "gemstash", "start", "--no-daemonize"]
30+
USER ${GEMSTASH_USER}:${GEMSTASH_USER}
31+
ENTRYPOINT ["tini", "--"]
32+
CMD ["bundle", "exec", "gemstash", "start", "--no-daemonize", "--config-file=config.yml.erb"]

entrypoint.sh

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)