Skip to content

Commit

Permalink
#833 deploy docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
davvd committed Jul 16, 2024
1 parent 60b9239 commit 3e6739c
Show file tree
Hide file tree
Showing 5 changed files with 356 additions and 4 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
coverage/
Gemfile.lock
.idea/
*.gem
.bundle/
Expand Down
1 change: 1 addition & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ AllCops:
Exclude:
- 'bin/**/*'
- 'assets/**/*'
- 'vendor/**/*'
DisplayCopNames: true
TargetRubyVersion: 2.5
NewCops: enable
Expand Down
14 changes: 12 additions & 2 deletions .rultor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ architect:
- davvd
assets:
rubygems.yml: yegor256/home#assets/rubygems.yml
docker-password: yegor256/home#assets/docker-password
install: |
pdd -f /dev/null -v
sudo apt-get -y update
sudo apt-get -y install libcurl4-openssl-dev
bundle install --no-color
rm -rf "$(pwd)/Gemfile.lock"
bundle update --no-color
release:
script: |-
[[ "${tag}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] || exit -1
Expand All @@ -42,6 +42,16 @@ release:
gem build zold.gemspec
chmod 0600 ../rubygems.yml
gem push *.gem --config-file ../rubygems.yml
sed -i -e "s/0.0.0/${tag}/" Dockerfile
git add Dockerfile
git commit -m "version set to ${tag}"
repo=yegor256/zold
sudo docker build "$(pwd)" --tag "${repo}:${tag}"
sudo docker build "$(pwd)" --tag "${repo}:latest"
cat ../docker-password | sudo docker login --password-stdin -u yegor256
sudo docker push "${repo}:${tag}"
sudo docker push "${repo}:latest"
merge:
script: |-
bundle exec rake --quiet
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,14 @@

FROM ruby:3.3

RUN gem install zold
LABEL "repository"="https://github.com/zold-io/zold"
LABEL "maintainer"="Yegor Bugayenko"
LABEL "version"="0.0.0"

EXPOSE 4096

RUN gem install zold:0.0.0

RUN echo "#!/bin/bash" > node.sh
RUN echo "zold remote reset" >> node.sh
RUN echo "zold node --nohup" >> node.sh
Expand Down
337 changes: 337 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,337 @@
PATH
remote: .
specs:
zold (0.0.0)
backtrace (~> 0.3)
concurrent-ruby (~> 1.1)
diffy (~> 3.3)
futex (~> 0.8)
get_process_mem (~> 0.2)
haml (~> 5.0)
json (~> 2.2)
memory_profiler (~> 1.0)
mimic (~> 0.4)
openssl (>= 1.0)
rainbow (~> 3.0)
semantic (~> 1.6)
sinatra (~> 3.0)
slop (~> 4.6)
sys-proctable (~> 1.2)
thin (~> 1.7)
threads (~> 0.3)
total (~> 0.3)
typhoeus (~> 1.3)
usagewatch_ext (~> 0.2)
zache (~> 0.12)
zold-score (~> 0.5)

GEM
remote: https://rubygems.org/
specs:
actionpack (7.1.3.4)
actionview (= 7.1.3.4)
activesupport (= 7.1.3.4)
nokogiri (>= 1.8.5)
racc
rack (>= 2.2.4)
rack-session (>= 1.0.1)
rack-test (>= 0.6.3)
rails-dom-testing (~> 2.2)
rails-html-sanitizer (~> 1.6)
actionview (7.1.3.4)
activesupport (= 7.1.3.4)
builder (~> 3.1)
erubi (~> 1.11)
rails-dom-testing (~> 2.2)
rails-html-sanitizer (~> 1.6)
activesupport (7.1.3.4)
base64
bigdecimal
concurrent-ruby (~> 1.0, >= 1.0.2)
connection_pool (>= 2.2.5)
drb
i18n (>= 1.6, < 2)
minitest (>= 5.1)
mutex_m
tzinfo (~> 2.0)
addressable (2.8.7)
public_suffix (>= 2.0.2, < 7.0)
ansi (1.5.0)
ast (2.4.2)
backtrace (0.4.0)
base64 (0.2.0)
bigdecimal (3.1.8)
builder (3.3.0)
coderay (1.1.3)
concurrent-ruby (1.3.3)
connection_pool (2.4.1)
crack (1.0.0)
bigdecimal
rexml
crass (1.0.6)
cucumber (9.1.0)
builder (~> 3.2, >= 3.2.4)
cucumber-ci-environment (~> 9.2, >= 9.2.0)
cucumber-core (~> 12.0)
cucumber-cucumber-expressions (~> 17.0)
cucumber-gherkin (>= 24, < 27)
cucumber-html-formatter (~> 20.4, >= 20.4.0)
cucumber-messages (>= 19, < 23)
diff-lcs (~> 1.5, >= 1.5.0)
mini_mime (~> 1.1, >= 1.1.5)
multi_test (~> 1.1, >= 1.1.0)
sys-uname (~> 1.2, >= 1.2.3)
cucumber-ci-environment (9.2.0)
cucumber-core (12.0.0)
cucumber-gherkin (>= 25, < 27)
cucumber-messages (>= 20, < 23)
cucumber-tag-expressions (~> 5.0, >= 5.0.4)
cucumber-cucumber-expressions (17.1.0)
bigdecimal
cucumber-gherkin (26.2.0)
cucumber-messages (>= 19.1.4, < 22.1)
cucumber-html-formatter (20.4.0)
cucumber-messages (>= 18.0, < 22.1)
cucumber-messages (22.0.0)
cucumber-tag-expressions (5.0.6)
daemons (1.4.1)
diff-lcs (1.5.1)
differ (0.1.2)
diffy (3.4.2)
docile (1.4.0)
drb (2.2.1)
erubi (1.13.0)
ethon (0.16.0)
ffi (>= 1.15.0)
eventmachine (1.2.7)
ffi (1.17.0-arm64-darwin)
formatador (1.1.0)
futex (0.8.6)
get_process_mem (0.2.7)
ffi (~> 1.0)
guard (2.18.1)
formatador (>= 0.2.4)
listen (>= 2.7, < 4.0)
lumberjack (>= 1.0.12, < 2.0)
nenv (~> 0.1)
notiffany (~> 0.0)
pry (>= 0.13.0)
shellany (~> 0.0)
thor (>= 0.18.1)
guard-compat (1.2.1)
guard-minitest (2.4.6)
guard-compat (~> 1.2)
minitest (>= 3.0)
haml (5.2.2)
temple (>= 0.8.0)
tilt
hashdiff (1.1.0)
i18n (1.14.5)
concurrent-ruby (~> 1.0)
io-console (0.7.2)
irb (1.14.0)
rdoc (>= 4.0.0)
reline (>= 0.4.2)
json (2.7.2)
language_server-protocol (3.17.0.3)
listen (3.9.0)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
loofah (2.22.0)
crass (~> 1.0.2)
nokogiri (>= 1.12.0)
lumberjack (1.2.10)
memory_profiler (1.0.2)
method_source (1.1.0)
mimic (0.4.4)
json
plist (~> 3.1.0)
rack
sinatra
thin
mini_mime (1.1.5)
minitest (5.24.1)
minitest-fail-fast (0.1.0)
minitest (~> 5)
minitest-hooks (1.5.1)
minitest (> 5.3)
minitest-reporters (1.7.1)
ansi
builder
minitest (>= 5.0)
ruby-progressbar
multi_test (1.1.0)
mustermann (3.0.0)
ruby2_keywords (~> 0.0.1)
mutex_m (0.2.0)
nenv (0.3.0)
nokogiri (1.16.6-arm64-darwin)
racc (~> 1.4)
notiffany (0.1.3)
nenv (~> 0.1)
shellany (~> 0.0)
openssl (3.2.0)
parallel (1.25.1)
parser (3.3.4.0)
ast (~> 2.4.1)
racc
plist (3.1.0)
pry (0.14.2)
coderay (~> 1.1)
method_source (~> 1.0)
psych (5.1.2)
stringio
public_suffix (6.0.0)
racc (1.8.0)
rack (2.2.9)
rack-protection (3.2.0)
base64 (>= 0.1.0)
rack (~> 2.2, >= 2.2.4)
rack-session (1.0.2)
rack (< 3)
rack-test (2.1.0)
rack (>= 1.3)
rackup (1.0.0)
rack (< 3)
webrick
rails-dom-testing (2.2.0)
activesupport (>= 5.0.0)
minitest
nokogiri (>= 1.6)
rails-html-sanitizer (1.6.0)
loofah (~> 2.21)
nokogiri (~> 1.14)
railties (7.1.3.4)
actionpack (= 7.1.3.4)
activesupport (= 7.1.3.4)
irb
rackup (>= 1.0.0)
rake (>= 12.2)
thor (~> 1.0, >= 1.2.2)
zeitwerk (~> 2.6)
rainbow (3.1.1)
rake (13.2.1)
random-port (0.7.1)
rb-fsevent (0.11.2)
rb-inotify (0.11.1)
ffi (~> 1.0)
rdoc (6.6.0)
psych (>= 4.0.0)
regexp_parser (2.9.2)
reline (0.5.9)
io-console (~> 0.5)
rexml (3.3.2)
strscan
rspec-core (3.13.0)
rspec-support (~> 3.13.0)
rspec-expectations (3.13.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-mocks (3.13.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-rails (6.1.0)
actionpack (>= 6.1)
activesupport (>= 6.1)
railties (>= 6.1)
rspec-core (~> 3.12)
rspec-expectations (~> 3.12)
rspec-mocks (~> 3.12)
rspec-support (~> 3.12)
rspec-support (3.13.1)
rubocop (1.65.0)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 2.4, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.31.1, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.31.3)
parser (>= 3.3.1.0)
rubocop-rspec (3.0.3)
rubocop (~> 1.61)
ruby-progressbar (1.13.0)
ruby2_keywords (0.0.5)
semantic (1.6.1)
shellany (0.0.1)
simplecov (0.22.0)
docile (~> 1.1)
simplecov-html (~> 0.11)
simplecov_json_formatter (~> 0.1)
simplecov-html (0.12.3)
simplecov_json_formatter (0.1.4)
sinatra (3.2.0)
mustermann (~> 3.0)
rack (~> 2.2, >= 2.2.4)
rack-protection (= 3.2.0)
tilt (~> 2.0)
slop (4.10.1)
stringio (3.1.1)
strscan (3.1.0)
sys-proctable (1.3.0)
ffi (~> 1.1)
sys-uname (1.3.0)
ffi (~> 1.1)
temple (0.10.3)
thin (1.8.2)
daemons (~> 1.0, >= 1.0.9)
eventmachine (~> 1.0, >= 1.0.4)
rack (>= 1, < 3)
thor (1.3.1)
threads (0.4.0)
backtrace (~> 0)
concurrent-ruby (~> 1.0)
tilt (2.4.0)
total (0.4.1)
typhoeus (1.4.1)
ethon (>= 0.9.0)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
unicode-display_width (2.5.0)
usagewatch (0.0.7)
usagewatch_ext (0.2.1)
usagewatch (~> 0.0.6)
webmock (3.23.1)
addressable (>= 2.8.0)
crack (>= 0.3.2)
hashdiff (>= 0.4.0, < 2.0.0)
webrick (1.8.1)
xcop (0.7.1)
differ (~> 0.1.2)
nokogiri (~> 1.10)
rainbow (~> 3.0)
slop (~> 4.4)
yard (0.9.36)
zache (0.13.1)
zeitwerk (2.6.16)
zold-score (0.5.0)

PLATFORMS
arm64-darwin-22

DEPENDENCIES
cucumber (= 9.1.0)
guard (= 2.18.1)
guard-minitest (= 2.4.6)
minitest (= 5.24.1)
minitest-fail-fast (= 0.1.0)
minitest-hooks (= 1.5.1)
minitest-reporters (= 1.7.1)
rake (= 13.2.1)
random-port (~> 0)
rdoc (= 6.6.0)
rspec-rails (= 6.1.0)
rubocop (= 1.65.0)
rubocop-rspec (= 3.0.3)
simplecov (= 0.22.0)
webmock (= 3.23.1)
xcop (>= 0.6)
yard (= 0.9.36)
zold!

BUNDLED WITH
2.5.6

0 comments on commit 3e6739c

Please sign in to comment.