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

[SRE-2420] Upgrade Gemstash to v2.1.0 #13

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
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
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# Changelog

## 1.5.0

* Upgrade Ruby to v3.1.2.
* Upgrade Bundler to v2.3.13.
* Upgrade Gemstash to v2.1.0.
* Bump activesupport from 5.2.4.4 to 5.2.8.
* Bump concurrent-ruby from 1.1.7 to 1.1.10.
* Bump dalli from 2.7.10 to 2.7.11.
* Bump faraday from 0.15.4 to 0.17.5.
* Bump faraday_middleware from 0.13.1 to 0.14.0.
* Bump i18n from 1.8.5 to 1.10.0.
* Bump minitest from 5.14.2 to 5.15.0.
* Bump multipart-post from 2.0.0 to 2.1.1.
* Bump mysql2 from 0.5.2 to 0.5.4.
* Bump pg from 0.18.4 to 1.3.5.
* Bump puma from 3.12.6 to 4.3.12.
* Bump sequel from 5.19.0 to 5.56.0.
* Bump sinatra from 2.0.5 to 2.2.0.
* Bump sqlite3 from 1.4.1 to 1.4.2.
* Bump tzinfo from 1.2.7 to 1.2.9.

## 1.4.1

* Bump puma from 3.12.1 to 3.12.6.
Expand Down
2 changes: 1 addition & 1 deletion CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @Intellection/devops
* @Intellection/SRE
10 changes: 6 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ruby:2.6.3-alpine
FROM ruby:3.1.2-alpine

# Install system dependencies
RUN apk --update add \
Expand All @@ -9,7 +9,7 @@ RUN apk --update add \
su-exec \
tini && \
gem update --system && \
gem install bundler:1.17.2 && \
gem install bundler:2.3.13 && \
rm -rf /var/cache/apk/*

# Create gemstash user
Expand All @@ -24,9 +24,11 @@ WORKDIR "${GEMSTASH_HOME}/app"
COPY "app/" "${GEMSTASH_HOME}/app"
RUN bundle install --jobs 4 --retry 3

VOLUME "${GEMSTASH_HOME}/data"
USER ${GEMSTASH_USER}:${GEMSTASH_USER}

RUN mkdir -p "${GEMSTASH_HOME}/data"
VOLUME "${GEMSTASH_HOME}/data"
EXPOSE 9292
USER ${GEMSTASH_USER}:${GEMSTASH_USER}

ENTRYPOINT ["tini", "--"]
CMD ["bundle", "exec", "gemstash", "start", "--no-daemonize", "--config-file=config.yml.erb"]
2 changes: 1 addition & 1 deletion app/.ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.6.3
3.1.2
6 changes: 3 additions & 3 deletions app/Gemfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
source 'https://rubygems.org'

ruby '2.6.3'
ruby '3.1.2'

# A simple, fast Mysql library for Ruby, binding to libmysql.
gem 'mysql2', '~> 0.5.2'
gem 'mysql2', '~> 0.5'

# Pg is the Ruby interface to the PostgreSQL.
gem 'pg', '~> 0.18.4'
gem 'pg', '~> 1.3'

# Gemstash acts as a local RubyGems server, caching copies of gems from
# RubyGems.org automatically, and eventually letting you push your own private
Expand Down
42 changes: 22 additions & 20 deletions app/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,44 +1,46 @@
GEM
remote: https://rubygems.org/
specs:
activesupport (5.2.4.4)
activesupport (5.2.8)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
concurrent-ruby (1.1.7)
dalli (2.7.10)
faraday (0.15.4)
concurrent-ruby (1.1.10)
dalli (2.7.11)
faraday (0.17.5)
multipart-post (>= 1.2, < 3)
faraday_middleware (0.13.1)
faraday_middleware (0.14.0)
faraday (>= 0.7.4, < 1.0)
gemstash (2.0.0)
gemstash (2.1.0)
activesupport (>= 4.2, < 6)
dalli (~> 2.7)
faraday (~> 0.9)
faraday_middleware (~> 0.10)
lru_redux (~> 1.1)
puma (~> 3.10)
puma (~> 4.0)
sequel (~> 5.0)
server_health_check-rack (~> 0.1)
sinatra (>= 1.4, < 3.0)
sqlite3 (~> 1.3)
thor (~> 0.20)
i18n (1.8.5)
i18n (1.10.0)
concurrent-ruby (~> 1.0)
lru_redux (1.1.0)
minitest (5.14.2)
multipart-post (2.0.0)
minitest (5.15.0)
multipart-post (2.1.1)
mustermann (1.1.1)
ruby2_keywords (~> 0.0.1)
mysql2 (0.5.2)
pg (0.18.4)
puma (3.12.6)
mysql2 (0.5.4)
nio4r (2.5.8)
pg (1.3.5)
puma (4.3.12)
nio4r (~> 2.0)
rack (2.2.3)
rack-protection (2.2.0)
rack
ruby2_keywords (0.0.5)
sequel (5.19.0)
sequel (5.56.0)
server_health_check (1.0.2)
server_health_check-rack (0.1.0)
server_health_check (~> 1.0, >= 1.0.1)
Expand All @@ -47,23 +49,23 @@ GEM
rack (~> 2.2)
rack-protection (= 2.2.0)
tilt (~> 2.0)
sqlite3 (1.4.1)
sqlite3 (1.4.2)
thor (0.20.3)
thread_safe (0.3.6)
tilt (2.0.10)
tzinfo (1.2.7)
tzinfo (1.2.9)
thread_safe (~> 0.1)

PLATFORMS
ruby

DEPENDENCIES
gemstash (~> 2.0)
mysql2 (~> 0.5.2)
pg (~> 0.18.4)
mysql2 (~> 0.5)
pg (~> 1.3)

RUBY VERSION
ruby 2.6.3p62
ruby 3.1.2p20

BUNDLED WITH
1.17.2
2.3.13
5 changes: 3 additions & 2 deletions docker-compose.mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
version: '2.1'
services:
gemstash:
image: zappi/gemstash:1.2.0
build: .
image: zappi/gemstash:latest
environment:
RACK_ENV: production
GEMSTASH_DB_ADAPTER: mysql2
Expand All @@ -22,7 +23,7 @@ services:
mysql:
condition: service_healthy
mysql:
image: mysql:5.7.19
image: mysql:5.7.37
volumes:
- mysql_data:/var/lib/mysql
expose:
Expand Down
5 changes: 3 additions & 2 deletions docker-compose.postgres.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
version: '2.1'
services:
gemstash:
image: zappi/gemstash:1.2.0
build: .
image: zappi/gemstash:latest
environment:
RACK_ENV: production
GEMSTASH_DB_ADAPTER: postgres
Expand All @@ -19,7 +20,7 @@ services:
links:
- postgres
postgres:
image: postgres:9.6.3-alpine
image: postgres:10.18-alpine
volumes:
- postgres_data:/var/lib/mysql
expose:
Expand Down
6 changes: 2 additions & 4 deletions docker-compose.sqlite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@
version: '2.1'
services:
gemstash:
build:
context: .
dockerfile: Dockerfile
image: zappi/gemstash:1.2.0
build: .
image: zappi/gemstash:latest
environment:
RACK_ENV: production
ports:
Expand Down