Skip to content

Commit 4be255b

Browse files
authored
Merge pull request #5 from Intellection/upgrade_gemstash
Upgrade gemstash to v2.0.0
2 parents ad87b73 + 311423b commit 4be255b

10 files changed

Lines changed: 68 additions & 60 deletions

CHANGELOG.md

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

3+
## 1.2.0
4+
5+
* Upgrade Ruby to v2.6.3.
6+
* Upgrade Gemstash to v2.0.0.
7+
38
## 1.1.0
49

510
### 2018-02-23

CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* @itskingori @tsu-shiuan @zacblazic
1+
* @Intellection/devops

Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ruby:2.5.0-alpine
1+
FROM ruby:2.6.3-alpine
22

33
# Install system dependencies
44
RUN apk --update add \
@@ -22,8 +22,7 @@ RUN addgroup -g "9999" "${GEMSTASH_USER}" && \
2222
RUN mkdir -p "${GEMSTASH_HOME}/app"
2323
WORKDIR "${GEMSTASH_HOME}/app"
2424
COPY "app/" "${GEMSTASH_HOME}/app"
25-
RUN bundle config disable_checksum_validation true && \
26-
bundle install --jobs 4 --retry 3
25+
RUN bundle install --jobs 4 --retry 3
2726

2827
VOLUME "${GEMSTASH_HOME}/data"
2928

README.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -18,39 +18,39 @@ $ docker run \
1818

1919
See `docker-compose.sqlite.yml` for an example of how to use SQLite. To run:
2020

21-
```
22-
$ docker-compose -f docker-compose.sqlite.yml ps
23-
Name Command State Ports
24-
-------------------------------------------------------------------------------------------
25-
dockergemstash_gemstash_1 /entrypoint.sh bundle exec ... Up 0.0.0.0:9292->9292/tcp
21+
```console
22+
$ export COMPOSE_FILE="docker-compose.sqlite.yml"
23+
$ docker-compose up -d
24+
$ docker-compose ps
25+
Name Command State Ports
26+
--------------------------------------------------------------------------------------------
27+
docker-gemstash_gemstash_1 /entrypoint.sh bundle exec ... Up 0.0.0.0:9292->9292/tcp
2628
```
2729

2830
#### MySQL
2931

3032
See `docker-compose.mysql.yml` for an example of how to use MySQL. To run:
3133

32-
```
34+
```console
3335
$ export COMPOSE_FILE="docker-compose.mysql.yml"
3436
$ docker-compose up -d
35-
3637
$ docker-compose ps
37-
Name Command State Ports
38-
-------------------------------------------------------------------------------------------
39-
dockergemstash_gemstash_1 /entrypoint.sh gemstash st ... Up 0.0.0.0:9292->9292/tcp
40-
dockergemstash_mysql_1 docker-entrypoint.sh mysqld Up 3306/tcp
38+
Name Command State Ports
39+
---------------------------------------------------------------------------------------------------
40+
docker-gemstash_gemstash_1 /entrypoint.sh bundle exec ... Up 0.0.0.0:9292->9292/tcp
41+
docker-gemstash_mysql_1 docker-entrypoint.sh mysqld Up (healthy) 3306/tcp
4142
```
4243

4344
#### PostgreSQL
4445

4546
See `docker-compose.postgres.yml` for an example of how to use PostgreSQL. To run:
4647

47-
```
48+
```console
4849
$ export COMPOSE_FILE="docker-compose.postgres.yml"
4950
$ docker-compose up -d
50-
5151
$ docker-compose ps
52-
Name Command State Ports
53-
-------------------------------------------------------------------------------------------
54-
dockergemstash_gemstash_1 /entrypoint.sh gemstash st ... Up 0.0.0.0:9292->9292/tcp
55-
dockergemstash_postgres_1 docker-entrypoint.sh postgres Up 5432/tcp
52+
Name Command State Ports
53+
--------------------------------------------------------------------------------------------
54+
docker-gemstash_gemstash_1 /entrypoint.sh bundle exec ... Up 0.0.0.0:9292->9292/tcp
55+
docker-gemstash_postgres_1 docker-entrypoint.sh postgres Up 5432/tcp
5656
```

app/.ruby-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2.6.3

app/Gemfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
source 'https://rubygems.org'
22

3-
ruby '2.5.0'
3+
ruby '2.6.3'
44

55
# A simple, fast Mysql library for Ruby, binding to libmysql.
6-
gem 'mysql2', '~> 0.4.8'
6+
gem 'mysql2', '~> 0.5.2'
77

88
# Pg is the Ruby interface to the PostgreSQL.
9-
gem 'pg', '~> 0.21.0'
9+
gem 'pg', '~> 0.18.4'
1010

1111
# Gemstash acts as a local RubyGems server, caching copies of gems from
1212
# RubyGems.org automatically, and eventually letting you push your own private
1313
# gems as well.
14-
gem 'gemstash', '1.1.0'
14+
gem 'gemstash', '~> 2.0'

app/Gemfile.lock

Lines changed: 35 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,67 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
activesupport (5.1.2)
4+
activesupport (5.2.3)
55
concurrent-ruby (~> 1.0, >= 1.0.2)
6-
i18n (~> 0.7)
6+
i18n (>= 0.7, < 2)
77
minitest (~> 5.1)
88
tzinfo (~> 1.1)
9-
concurrent-ruby (1.0.5)
10-
dalli (2.7.6)
11-
faraday (0.12.2)
9+
concurrent-ruby (1.1.5)
10+
dalli (2.7.10)
11+
faraday (0.15.4)
1212
multipart-post (>= 1.2, < 3)
13-
faraday_middleware (0.12.1)
13+
faraday_middleware (0.13.1)
1414
faraday (>= 0.7.4, < 1.0)
15-
gemstash (1.1.0)
15+
gemstash (2.0.0)
1616
activesupport (>= 4.2, < 6)
1717
dalli (~> 2.7)
1818
faraday (~> 0.9)
1919
faraday_middleware (~> 0.10)
2020
lru_redux (~> 1.1)
21-
puma (~> 2.14)
22-
sequel (~> 4.26)
21+
puma (~> 3.10)
22+
sequel (~> 5.0)
2323
server_health_check-rack (~> 0.1)
24-
sinatra (~> 1.4)
24+
sinatra (>= 1.4, < 3.0)
2525
sqlite3 (~> 1.3)
26-
thor (~> 0.19)
27-
i18n (0.8.6)
26+
thor (~> 0.20)
27+
i18n (1.6.0)
28+
concurrent-ruby (~> 1.0)
2829
lru_redux (1.1.0)
29-
minitest (5.10.3)
30+
minitest (5.11.3)
3031
multipart-post (2.0.0)
31-
mysql2 (0.4.8)
32-
pg (0.21.0)
33-
puma (2.16.0)
34-
rack (1.6.8)
35-
rack-protection (1.5.3)
32+
mustermann (1.0.3)
33+
mysql2 (0.5.2)
34+
pg (0.18.4)
35+
puma (3.12.1)
36+
rack (2.0.7)
37+
rack-protection (2.0.5)
3638
rack
37-
sequel (4.49.0)
39+
sequel (5.19.0)
3840
server_health_check (1.0.2)
3941
server_health_check-rack (0.1.0)
4042
server_health_check (~> 1.0, >= 1.0.1)
41-
sinatra (1.4.8)
42-
rack (~> 1.5)
43-
rack-protection (~> 1.4)
44-
tilt (>= 1.3, < 3)
45-
sqlite3 (1.3.13)
46-
thor (0.19.4)
43+
sinatra (2.0.5)
44+
mustermann (~> 1.0)
45+
rack (~> 2.0)
46+
rack-protection (= 2.0.5)
47+
tilt (~> 2.0)
48+
sqlite3 (1.4.1)
49+
thor (0.20.3)
4750
thread_safe (0.3.6)
48-
tilt (2.0.8)
49-
tzinfo (1.2.3)
51+
tilt (2.0.9)
52+
tzinfo (1.2.5)
5053
thread_safe (~> 0.1)
5154

5255
PLATFORMS
5356
ruby
5457

5558
DEPENDENCIES
56-
gemstash (= 1.1.0)
57-
mysql2 (~> 0.4.8)
58-
pg (~> 0.21.0)
59+
gemstash (~> 2.0)
60+
mysql2 (~> 0.5.2)
61+
pg (~> 0.18.4)
5962

6063
RUBY VERSION
61-
ruby 2.5.0p0
64+
ruby 2.6.3p62
6265

6366
BUNDLED WITH
64-
1.16.1
67+
1.17.2

docker-compose.mysql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
version: '2.1'
33
services:
44
gemstash:
5-
image: zappi/gemstash:1.1.0
5+
image: zappi/gemstash:1.2.0
66
environment:
77
RACK_ENV: production
88
GEMSTASH_DB_ADAPTER: mysql2

docker-compose.postgres.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
version: '2.1'
33
services:
44
gemstash:
5-
image: zappi/gemstash:1.1.0
5+
image: zappi/gemstash:1.2.0
66
environment:
77
RACK_ENV: production
88
GEMSTASH_DB_ADAPTER: postgres

docker-compose.sqlite.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ services:
55
build:
66
context: .
77
dockerfile: Dockerfile
8-
image: zappi/gemstash:1.1.0
8+
image: zappi/gemstash:1.2.0
99
environment:
1010
RACK_ENV: production
1111
ports:

0 commit comments

Comments
 (0)