Skip to content

Ruby 3/Rails 6.1 opal 1.3.2 #422

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

Draft
wants to merge 68 commits into
base: edge
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
81e4f22
from upstream
mpantel Apr 20, 2021
8610633
upgrade to latest react-rails
mpantel Jun 23, 2021
6da12f6
rearrange packs
mpantel Aug 31, 2021
2ac6512
fix form opal 1.2 opal-rails 2.0.x
mpantel Sep 2, 2021
7e79a70
unexpected render (rollback rails webpacker) cleanup debug logs state…
mpantel Sep 2, 2021
d8e85aa
patch native components #
mpantel Sep 15, 2021
46c0a57
remove old chromedrivers
mpantel Sep 25, 2021
dcd9fce
Merge branch 'edge' of github.com:mpantel/hyperstack into edge
mpantel Sep 25, 2021
18a0ae3
native object does not respond to tap...
mpantel Oct 8, 2021
81d860d
update opal browser
mpantel Nov 26, 2021
8c2c543
update opal browser for 0.3.1
mpantel Nov 26, 2021
430e45f
update timecop
mpantel Dec 17, 2021
1437ece
update version and add publish rake task
mpantel Jun 14, 2022
718c0bc
add missing files
mpantel Jun 14, 2022
ac77d34
code layout
mpantel Jun 16, 2022
b3f175a
gem updates
mpantel Jun 30, 2022
f54de06
check use of opal promise/v2 with hyperstack
mpantel Aug 6, 2022
ed49ef5
new version with promise V2
mpantel Aug 9, 2022
05106d9
hyperstack update for redis warning
mpantel Sep 13, 2022
7582a4c
failed to update capybara
mpantel Dec 22, 2022
2619d4a
Export
mpantel Jul 6, 2023
0470614
gocd pipeline as code
mpantel Jul 6, 2023
d6cdebf
add gocd configuration
mpantel Jul 6, 2023
a1e874c
added Timecop.init method
mpantel Jul 8, 2023
7d87983
setup gocd pipeline
mpantel Jul 8, 2023
81b8a3c
setup gocd pipeline
mpantel Jul 8, 2023
381c3c4
setup gocd pipeline
mpantel Jul 8, 2023
7539970
setup gocd pipeline
mpantel Jul 8, 2023
d1cf96d
setup gocd pipeline
mpantel Jul 8, 2023
1b63f4f
setup gocd pipeline
mpantel Jul 8, 2023
994d969
setup gocd pipeline
mpantel Jul 8, 2023
aff58b2
setup gocd pipeline
mpantel Jul 8, 2023
280c7d8
setup gocd pipeline
mpantel Jul 8, 2023
82d3472
setup gocd pipeline
mpantel Jul 8, 2023
1205ce2
setup gocd pipeline
mpantel Jul 8, 2023
262cb29
setup gocd pipeline
mpantel Jul 8, 2023
7e68859
setup gocd pipeline
mpantel Jul 8, 2023
5188594
setup gocd pipeline
mpantel Jul 8, 2023
5af68a6
setup gocd pipeline
mpantel Jul 8, 2023
e7679bc
setup gocd pipeline
mpantel Jul 8, 2023
8f0ff98
setup gocd pipeline
mpantel Jul 8, 2023
8168453
setup gocd pipeline
mpantel Jul 8, 2023
e7d8353
setup gocd pipeline
mpantel Jul 8, 2023
f3574b0
setup gocd pipeline
mpantel Jul 8, 2023
e523195
setup gocd pipeline
mpantel Jul 8, 2023
e022c98
setup gocd pipeline
mpantel Jul 8, 2023
13f47cf
new version
mpantel Jul 8, 2023
4e90333
setup gocd pipeline
mpantel Jul 8, 2023
aa7bdf0
setup gocd pipeline
mpantel Jul 8, 2023
52e9897
Export
mpantel Jul 8, 2023
b0ae5a1
Export
mpantel Jul 8, 2023
2a31edc
Export
mpantel Jul 8, 2023
0e6186c
Export
mpantel Jul 8, 2023
efe680d
v 0011
mpantel Jul 8, 2023
ecfcc56
Export
mpantel Jul 10, 2023
4dde894
setup gocd pipeline
mpantel Jul 19, 2023
830f3c6
remove yarn files
mpantel Jul 19, 2023
7a353d8
remove untaint
mpantel Jul 20, 2023
d477e96
change docker agent paths
mpantel Jul 20, 2023
5e5510d
for ruby 3.2.2
mpantel Jul 25, 2023
2844702
1.8.0015
mpantel Jul 25, 2023
9c26b81
1.8.0016 remove redis client warning
mpantel Jul 27, 2023
80babd0
Hyperstack-config pass
mpantel Jul 27, 2023
089b943
testing
mpantel Jul 27, 2023
ee4ea12
testing ruby3 on gocd
mpantel Jul 27, 2023
9c2e235
testing ruby3 on gocd
mpantel Jul 27, 2023
8574e70
testing ruby3 on gocd
mpantel Jul 27, 2023
5c79238
0.5.1.0016
mpantel Jul 28, 2023
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/.idea/
/ruby/**/*.gem
259 changes: 151 additions & 108 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,25 @@
dist: xenial
dist: focal

env:
global:
- PGUSER=postgres
- PGPORT=5432
- PGHOST=localhost

addons:
postgresql: '12'
apt:
sources:
- sourceline: 'deb http://dl.yarnpkg.com/debian/ stable main'
key_url: 'http://dl.yarnpkg.com/debian/pubkey.gpg'
- sourceline: 'deb http://dl.google.com/linux/chrome/deb/ stable main'
key_url: 'https://dl-ssl.google.com/linux/linux_signing_key.pub'
packages:
- postgresql-11
- chromium-chromedriver
- google-chrome-stable
- yarn
- redis-server
postgresql: '11'
- postgresql-12

_test_gem_pg: &_test_gem_pg
stage: test
Expand All @@ -25,11 +31,9 @@ _test_gem_pg: &_test_gem_pg
- node_modules # NPM packages

before_install:
- echo 'installing postgresql'
- sudo sed -i 's/port = 5433/port = 5432/' /etc/postgresql/11/main/postgresql.conf
- sudo cp /etc/postgresql/{9.6,11}/main/pg_hba.conf
- sudo service postgresql stop
- sudo service postgresql start 11
- sudo sed -i -e '/local.*peer/s/postgres/all/' -e 's/peer\|md5/trust/g' /etc/postgresql/*/main/pg_hba.conf
- sudo service postgresql restart
- sleep 1
- postgres --version
- sudo rm -f /usr/local/bin/yarn
- nvm install 10
Expand All @@ -42,6 +46,8 @@ _test_gem_pg: &_test_gem_pg
- echo before_script $COMPONENT
- echo updating chrome driver
- cd ruby/$COMPONENT
- echo creating psql database
- psql -c 'create database hyper_mesh_test_db;' -U postgres
- bundle install --jobs=3 --retry=3
- bundle exec ruby -e 'require "webdrivers"; Webdrivers::Chromedriver.update; puts Webdrivers::Chromedriver.current_version'
- ls -la ~/.webdrivers
Expand All @@ -50,6 +56,7 @@ _test_gem_pg: &_test_gem_pg
- google-chrome --version
- which google-chrome
- yarn install

script:
- echo running script $COMPONENT
- DRIVER=travis bundle exec rake $TASK
Expand Down Expand Up @@ -78,12 +85,21 @@ _test_gem: &_test_gem
mariadb: '10.3'
services:
- redis-server

before_install:
- echo installing $COMPONENT
- sudo apt-get remove --purge mysql-server mysql-client mysql-common
- sudo apt-get autoremove
- sudo apt-get autoclean
- sudo rm -rf /var/lib/mysql
- sudo rm -rf /etc/mysql
- sudo apt install mariadb-server mariadb-client -y
- sudo apt-get install libmysqlclient-dev

# yarn is in /usr/local/bin/yarn version 1.3.2 and is not a package
# must remove this zombie for new yarn to work
- sudo rm -f /usr/local/bin/yarn
- nvm install 10
- nvm install 14
- rvm install 2.6.3 # was 2.5.1
- gem install bundler
- echo 'install completed'
Expand Down Expand Up @@ -117,106 +133,133 @@ _deploy_gem: &_deploy_gem

jobs:
include:
- <<: *_test_gem
env: COMPONENT=rails-hyperstack RUBY_VERSION=2.5.1
- <<: *_test_gem
env: COMPONENT=hyper-spec RUBY_VERSION=2.5.1
- <<: *_test_gem
env: COMPONENT=hyper-trace RUBY_VERSION=2.5.1
- <<: *_test_gem
env: COMPONENT=hyperstack-config RUBY_VERSION=2.5.1
- <<: *_test_gem
env: COMPONENT=hyper-state RUBY_VERSION=2.5.1
- <<: *_test_gem
env: COMPONENT=hyper-component RUBY_VERSION=2.5.1
- <<: *_test_gem
env: COMPONENT=hyper-router RUBY_VERSION=2.5.1
- <<: *_test_gem
env: COMPONENT=hyper-store RUBY_VERSION=2.5.1
# - <<: *_test_gem
# env: COMPONENT=rails-hyperstack RUBY_VERSION=2.5.1
# - <<: *_test_gem
# env: COMPONENT=hyper-spec RUBY_VERSION=2.5.1
# - <<: *_test_gem
# env: COMPONENT=hyper-trace RUBY_VERSION=2.5.1
# - <<: *_test_gem
# env: COMPONENT=hyperstack-config RUBY_VERSION=2.5.1
# - <<: *_test_gem
# env: COMPONENT=hyper-state RUBY_VERSION=2.5.1
# - <<: *_test_gem
# env: COMPONENT=hyper-component RUBY_VERSION=2.5.1
# - <<: *_test_gem
# env: COMPONENT=hyper-router RUBY_VERSION=2.5.1
# - <<: *_test_gem
# env: COMPONENT=hyper-store RUBY_VERSION=2.5.1
- <<: *_test_gem
env: COMPONENT=hyper-operation RUBY_VERSION=2.5.1
- <<: *_test_gem_pg
env: COMPONENT=hyper-model RUBY_VERSION=2.5.1 TASK=part1 DB=hyper_mesh_test_db
- <<: *_test_gem_pg
env: COMPONENT=hyper-model RUBY_VERSION=2.5.1 TASK=part2 DB=hyper_mesh_test_db
- <<: *_test_gem_pg
env: COMPONENT=hyper-model RUBY_VERSION=2.5.1 TASK=part3 DB=hyper_mesh_test_db
- <<: *_test_gem
env: COMPONENT=hyper-i18n RUBY_VERSION=2.5.1
# - <<: *_test_gem_pg
# env: COMPONENT=hyper-model RUBY_VERSION=2.5.1 TASK=part1 DB=hyper_mesh_test_db
# - <<: *_test_gem_pg
# env: COMPONENT=hyper-model RUBY_VERSION=2.5.1 TASK=part2 DB=hyper_mesh_test_db
# - <<: *_test_gem_pg
# env: COMPONENT=hyper-model RUBY_VERSION=2.5.1 TASK=part3 DB=hyper_mesh_test_db
# - <<: *_test_gem
# env: COMPONENT=hyper-i18n RUBY_VERSION=2.5.1

- <<: *_test_gem
env: COMPONENT=rails-hyperstack RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0'
- <<: *_test_gem
env: COMPONENT=hyper-spec RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0'
- <<: *_test_gem
env: COMPONENT=hyper-trace RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0'
- <<: *_test_gem
env: COMPONENT=hyperstack-config RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0'
- <<: *_test_gem
env: COMPONENT=hyper-state RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0'
- <<: *_test_gem
env: COMPONENT=hyper-component RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0'
- <<: *_test_gem
env: COMPONENT=hyper-router RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0'
- <<: *_test_gem
env: COMPONENT=hyper-store RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0'
- <<: *_test_gem
env: COMPONENT=hyper-operation RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0'
- <<: *_test_gem_pg
env: COMPONENT=hyper-model RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0' TASK=part1 DB=hyper_mesh_test_db
- <<: *_test_gem_pg
env: COMPONENT=hyper-model RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0' TASK=part2 DB=hyper_mesh_test_db
- <<: *_test_gem_pg
env: COMPONENT=hyper-model RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0' TASK=part3 DB=hyper_mesh_test_db
- <<: *_test_gem
env: COMPONENT=hyper-i18n RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0'
# # - <<: *_test_gem
# # env: COMPONENT=rails-hyperstack RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0'
# # - <<: *_test_gem
# # env: COMPONENT=hyper-spec RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0'
# # - <<: *_test_gem
# # env: COMPONENT=hyper-trace RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0'
# # - <<: *_test_gem
# # env: COMPONENT=hyperstack-config RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0'
# # - <<: *_test_gem
# # env: COMPONENT=hyper-state RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0'
# # - <<: *_test_gem
# # env: COMPONENT=hyper-component RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0'
# # - <<: *_test_gem
# # env: COMPONENT=hyper-router RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0'
# # - <<: *_test_gem
# # env: COMPONENT=hyper-store RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0'
# # - <<: *_test_gem
# # env: COMPONENT=hyper-operation RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0'
# # - <<: *_test_gem_pg
# # env: COMPONENT=hyper-model RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0' TASK=part1 DB=hyper_mesh_test_db
# # - <<: *_test_gem_pg
# # env: COMPONENT=hyper-model RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0' TASK=part2 DB=hyper_mesh_test_db
# # - <<: *_test_gem_pg
# # env: COMPONENT=hyper-model RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0' TASK=part3 DB=hyper_mesh_test_db
# # - <<: *_test_gem
# # env: COMPONENT=hyper-i18n RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0'

- <<: *_test_gem
env: COMPONENT=rails-hyperstack RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0'
- <<: *_test_gem
env: COMPONENT=hyper-spec RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0'
- <<: *_test_gem
env: COMPONENT=hyper-trace RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0'
- <<: *_test_gem
env: COMPONENT=hyperstack-config RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0'
- <<: *_test_gem
env: COMPONENT=hyper-state RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0'
- <<: *_test_gem
env: COMPONENT=hyper-component RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0'
- <<: *_test_gem
env: COMPONENT=hyper-router RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0'
- <<: *_test_gem
env: COMPONENT=hyper-store RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0'
- <<: *_test_gem
env: COMPONENT=hyper-operation RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0'
- <<: *_test_gem_pg
env: COMPONENT=hyper-model RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0' TASK=part1 DB=hyper_mesh_test_db
- <<: *_test_gem_pg
env: COMPONENT=hyper-model RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0' TASK=part2 DB=hyper_mesh_test_db
- <<: *_test_gem_pg
env: COMPONENT=hyper-model RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0' TASK=part3 DB=hyper_mesh_test_db
- <<: *_test_gem
env: COMPONENT=hyper-i18n RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0'

- <<: *_deploy_gem
env: COMPONENT=hyper-i18n
- <<: *_deploy_gem
env: COMPONENT=hyper-trace
- <<: *_deploy_gem
env: COMPONENT=hyper-state
- <<: *_deploy_gem
env: COMPONENT=hyper-component
- <<: *_deploy_gem
env: COMPONENT=hyper-model
- <<: *_deploy_gem
env: COMPONENT=hyper-operation
- <<: *_deploy_gem
env: COMPONENT=hyper-router
- <<: *_deploy_gem
env: COMPONENT=hyper-spec
- <<: *_deploy_gem
env: COMPONENT=hyper-store
- <<: *_deploy_gem
env: COMPONENT=rails-hyperstack
- <<: *_deploy_gem
env: COMPONENT=hyperstack-config
# - <<: *_test_gem
# env: COMPONENT=rails-hyperstack RUBY_VERSION=2.5.1 RAILS_VERSION='~>6.0.0'
# - <<: *_test_gem
# env: COMPONENT=hyper-spec RUBY_VERSION=2.5.1 RAILS_VERSION='~>6.0.0'
# - <<: *_test_gem
# env: COMPONENT=hyper-trace RUBY_VERSION=2.5.1 RAILS_VERSION='~>6.0.0'
# - <<: *_test_gem
# env: COMPONENT=hyperstack-config RUBY_VERSION=2.5.1 RAILS_VERSION='~>6.0.0'
# - <<: *_test_gem
# env: COMPONENT=hyper-state RUBY_VERSION=2.5.1 RAILS_VERSION='~>6.0.0'
# - <<: *_test_gem
# env: COMPONENT=hyper-component RUBY_VERSION=2.5.1 RAILS_VERSION='~>6.0.0'
# - <<: *_test_gem
# env: COMPONENT=hyper-router RUBY_VERSION=2.5.1 RAILS_VERSION='~>6.0.0'
# - <<: *_test_gem
# env: COMPONENT=hyper-store RUBY_VERSION=2.5.1 RAILS_VERSION='~>6.0.0'
# - <<: *_test_gem
# env: COMPONENT=hyper-operation RUBY_VERSION=2.5.1 RAILS_VERSION='~>6.0.0'
# - <<: *_test_gem_pg
# env: COMPONENT=hyper-model RUBY_VERSION=2.5.1 RAILS_VERSION='~>6.0.0' TASK=part1 DB=hyper_mesh_test_db
# - <<: *_test_gem_pg
# env: COMPONENT=hyper-model RUBY_VERSION=2.5.1 RAILS_VERSION='~>6.0.0' TASK=part2 DB=hyper_mesh_test_db
# - <<: *_test_gem_pg
# env: COMPONENT=hyper-model RUBY_VERSION=2.5.1 RAILS_VERSION='~>6.0.0' TASK=part3 DB=hyper_mesh_test_db
# - <<: *_test_gem
# env: COMPONENT=hyper-i18n RUBY_VERSION=2.5.1 RAILS_VERSION='~>6.0.0'

# # - <<: *_test_gem
# # env: COMPONENT=rails-hyperstack RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0'
# # - <<: *_test_gem
# # env: COMPONENT=hyper-spec RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0'
# # - <<: *_test_gem
# # env: COMPONENT=hyper-trace RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0'
# # - <<: *_test_gem
# # env: COMPONENT=hyperstack-config RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0'
# # - <<: *_test_gem
# # env: COMPONENT=hyper-state RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0'
# # - <<: *_test_gem
# # env: COMPONENT=hyper-component RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0'
# # - <<: *_test_gem
# # env: COMPONENT=hyper-router RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0'
# # - <<: *_test_gem
# # env: COMPONENT=hyper-store RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0'
# # - <<: *_test_gem
# # env: COMPONENT=hyper-operation RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0'
# # - <<: *_test_gem_pg
# # env: COMPONENT=hyper-model RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0' TASK=part1 DB=hyper_mesh_test_db
# # - <<: *_test_gem_pg
# # env: COMPONENT=hyper-model RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0' TASK=part2 DB=hyper_mesh_test_db
# # - <<: *_test_gem_pg
# # env: COMPONENT=hyper-model RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0' TASK=part3 DB=hyper_mesh_test_db
# # - <<: *_test_gem
# # env: COMPONENT=hyper-i18n RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0'

# # - <<: *_deploy_gem
# # env: COMPONENT=hyper-i18n
# # - <<: *_deploy_gem
# # env: COMPONENT=hyper-trace
# # - <<: *_deploy_gem
# # env: COMPONENT=hyper-state
# # - <<: *_deploy_gem
# # env: COMPONENT=hyper-component
# # - <<: *_deploy_gem
# # env: COMPONENT=hyper-model
# # - <<: *_deploy_gem
# # env: COMPONENT=hyper-operation
# # - <<: *_deploy_gem
# # env: COMPONENT=hyper-router
# # - <<: *_deploy_gem
# # env: COMPONENT=hyper-spec
# # - <<: *_deploy_gem
# # env: COMPONENT=hyper-store
# # - <<: *_deploy_gem
# # env: COMPONENT=rails-hyperstack
# # - <<: *_deploy_gem
# # env: COMPONENT=hyperstack-config
28 changes: 28 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
ARG PRIVATE_REGISTRY=ci.ru.aegean.gr:5000
FROM ${PRIVATE_REGISTRY}/base20:ruby

RUN apt-get -y update && apt-get -y install mariadb-server mariadb-client libmysqlclient-dev postgresql postgresql-contrib

ARG RUBY_VERSION_TO_INSTALL1=2.7.8
RUN rbenv install ${RUBY_VERSION_TO_INSTALL1} && rbenv global ${RUBY_VERSION_TO_INSTALL1} \
&& rbenv rehash && gem install bundler

ARG RUBY_VERSION_TO_INSTALL2=3.0.6
RUN rbenv install ${RUBY_VERSION_TO_INSTALL2} && rbenv global ${RUBY_VERSION_TO_INSTALL2} \
&& rbenv rehash && gem install bundler

ARG RUBY_VERSION_TO_INSTALL3=3.1.4
RUN rbenv install ${RUBY_VERSION_TO_INSTALL3} && rbenv global ${RUBY_VERSION_TO_INSTALL3} \
&& rbenv rehash && gem install bundler

ARG RUBY_VERSION_TO_INSTALL4=3.2.2
RUN rbenv install ${RUBY_VERSION_TO_INSTALL4} && rbenv global ${RUBY_VERSION_TO_INSTALL4} \
&& rbenv rehash && gem install bundler

ENV PGUSER=postgres
ENV PGPORT=5432
ENV PGHOST=localhost

RUN sed -i -e '/local.*peer/s/postgres/all/' -e 's/peer\|md5/trust/g' /etc/postgresql/*/main/pg_hba.conf

RUN git config --global --add safe.directory /root/hyperstack
2 changes: 1 addition & 1 deletion HYPERSTACK_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.0.alpha1
'1.0.alpha1.8.0017'
27 changes: 27 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
require './ruby/version'
desc 'Publish hyperstack gems to private dir'
task :publish do
base_path = ENV['PWD']
sh "gem", "install", "geminabox"
# hyper-console
%w{
hyper-component
hyper-i18n
hyper-model
hyper-operation
hyper-router
hyper-spec
hyper-state
hyper-store
hyper-trace
hyperstack-config
rails-hyperstack
}.each do|gem|
puts "Publishing #{gem} gem"
Dir.chdir("#{base_path}/ruby/#{gem}") do
#sh ['bundle', 'update']
sh 'gem' ,'build', "#{gem}.gemspec"
sh 'gem' ,'inabox' ,"#{gem}-#{Hyperstack::VERSION.tr("'",'')}.gem" ,'-g' ,"https://michail:#{ENV['GEM_SERVER_KEY']}@gems.ru.aegean.gr"
end
end
end
5 changes: 5 additions & 0 deletions create-docker-image
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
#docker run -it -v .:/root/hyperstack ${PRIVATE_REGISTRY}/base20:hyperstack /bin/bash

docker build -t ${PRIVATE_REGISTRY}/base20:hyperstack .
docker push ${PRIVATE_REGISTRY}/base20:hyperstack
Loading