Skip to content

Commit

Permalink
feat: Added a config Ruby on rails (#1033)
Browse files Browse the repository at this point in the history
* feat: Add deploy config for ruby on rails

* Update main.yml

update sample application name

* fix: Update source repository in services for Go and Ruby
  • Loading branch information
abasha1234 authored Jan 31, 2024
1 parent 73ac866 commit c727daf
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
- debug:
msg: Install Ruby on Rails

- name: update yum packages
shell: yum update -y
become: true

- name: install ruby
shell: yum install ruby -y
become: true

- name: install rubygems
shell: yum install rubygems -y
become: true

- name: update gem
shell: gem update --system
become: true

- name: install bundler
shell: gem install bundler
become: true

- name: install ruby-devel
shell: yum install ruby-devel -y
become: true

- name: install dev tools
shell: yum groupinstall "Development Tools" -y
become: true

- name: install pre-reqs
shell: yum install libffi-devel libyaml-devel readline-devel zlib-devel openssl-devel -y
become: true

- name: install rails
shell: gem install rails
become: true

- name: update gem bundler
shell: gem update bundler
become: true

- name: create sample ruby application
shell: rails new sample_ruby_app --skip-bundle

- name: change directory to sample application
ansible.builtin.shell: cd ~/sample_ruby_app && bundle install
2 changes: 1 addition & 1 deletion test/manual/definitions/apm/go/go-linux2.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"services": [
{
"id": "go",
"local_source_path": "/mnt/deployer/",
"source_repository": "https://github.com/newrelic/open-install-library.git",
"deploy_script_path": "test/deploy/linux/go/redhat/roles",
"port": 80,
"destinations": ["go-l2"]
Expand Down
27 changes: 27 additions & 0 deletions test/manual/definitions/apm/ruby/rubyonrails.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"global_tags": {
"owning_team": "virtuoso",
"Environment": "development",
"Department": "product",
"Product": "virtuoso"
},
"resources": [
{
"id": "ruby-on-rails-linux2",
"provider": "aws",
"type": "ec2",
"size": "t2.medium",
"ami_name": "al2023-ami-2023.3.20240122.0-kernel-6.1-x86_64",
"user_name": "ec2-user"
}
],
"services": [
{
"id": "rubyrails",
"source_repository": "https://github.com/newrelic/open-install-library.git",
"deploy_script_path": "test/deploy/linux/ruby/ruby-on-rails/redhat/roles",
"port": 80,
"destinations": ["ruby-on-rails-linux2"]
}
]
}

0 comments on commit c727daf

Please sign in to comment.