-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from ChefAustin/development
v.0.1.0
- Loading branch information
Showing
6 changed files
with
67 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# gem-jar/.gitignore | ||
*.DS_Store | ||
/db/* | ||
dive.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Use this file to configure the Overcommit hooks you wish to use. This will | ||
# extend the default configuration defined in: | ||
# https://github.com/brigade/overcommit/blob/master/config/default.yml | ||
# | ||
# At the topmost level of this YAML file is a key representing type of hook | ||
# being run (e.g. pre-commit, commit-msg, etc.). Within each type you can | ||
# customize each hook, such as whether to only run it on certain files (via | ||
# `include`), whether to only display output if it fails (via `quiet`), etc. | ||
# | ||
# For a complete list of hooks, see: | ||
# https://github.com/brigade/overcommit/tree/master/lib/overcommit/hook | ||
# | ||
# For a complete list of options that you can use to customize hooks, see: | ||
# https://github.com/brigade/overcommit#configuration | ||
# | ||
# Uncomment the following lines to make the configuration take effect. | ||
|
||
#PreCommit: | ||
# RuboCop: | ||
# enabled: true | ||
# on_warn: fail # Treat all warnings as failures | ||
# | ||
# TrailingWhitespace: | ||
# enabled: true | ||
# exclude: | ||
# - '**/db/structure.sql' # Ignore trailing whitespace in generated files | ||
# | ||
#PostCheckout: | ||
# ALL: # Special hook name that customizes all hooks of this type | ||
# quiet: true # Change all post-checkout hooks to only display output on failure | ||
# | ||
# IndexTags: | ||
# enabled: true # Generate a tags file with `ctags` each time HEAD changes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
FROM ruby:2.6.2 | ||
LABEL maintainer="[email protected]" | ||
|
||
COPY Gemfile / | ||
RUN bundle install --gemfile /Gemfile | ||
|
||
COPY config.yml / | ||
|
||
EXPOSE 9292 | ||
CMD ["bundle", "exec", "gemstash", "start", "--no-daemonize", "--config-file", "/config.yml"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
source 'https://rubygems.org' | ||
|
||
gem 'gemstash', '2.0.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,7 @@ | ||
# gem-jar | ||
Gemstash service thrown in a container and wrapped-up with a bow. | ||
No nonsense Gemstash instance thrown in a container, backed by sqlite3 and wrapped-up with a bow. Non-configurable by design; for those that just want a no frills, quickly deployable Gem caching service. | ||
|
||
## Getting started | ||
1. `git clone https://github.com/chefaustin/gem-jar.git` <= Clone this repo | ||
2. `cd gem-jar` <= Navigate into it | ||
3. `docker run --name gem-jar -p 9292:9292 -v $(pwd)/db:/root/.gemstash chefaustin/gem-jar:latest` <= Bring container up |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# /root/.gemstash/config.yml | ||
--- | ||
:base_path: "/root/.gemstash" | ||
:cache_type: memory | ||
:db_adapter: sqlite3 | ||
:rubygems_url: https://rubygems.org | ||
:puma_threads: 16 | ||
:bind: tcp://0.0.0.0:9292 | ||
:protected_fetch: false | ||
:fetch_timeout: 20 | ||
:log_file: gemstash_server.log |