This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require './hw' | |
run Sinatra::Application |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo: false | |
language: ruby | |
rvm: | |
- 2.2.1 | |
before_install: | |
- openssl aes-256-cbc -K $encrypted_a1a5bb03449b_key -iv $encrypted_a1a5bb03449b_iv -in travis.pem.enc -out travis.pem -d | |
- chmod 600 ./travis.pem | |
after_success: | |
- ssh [email protected] -i ./travis.pem -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no /var/www/ruby_hw/update.sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: all | |
sudo: no | |
tasks: | |
- name: application container | |
docker: | |
name: ruby-hw | |
image: rstarmer/ruby-hw | |
state: reloaded |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: all | |
sudo: no | |
#### | |
tasks: | |
- name: Install dependencies | |
apt: | |
name={{ item }} | |
update_cache=yes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# See https://github.com/phusion/passenger-docker/blob/master/Changelog.md for | |
# a list of version numbers. | |
FROM phusion/passenger-ruby22:0.9.18 | |
# Set correct environment variables. | |
ENV HOME /root | |
# Use baseimage-docker's init process. | |
CMD ["/sbin/my_init"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: all | |
sudo: yes | |
roles: | |
- passenger | |
handlers: | |
- name: reload apache | |
service: name=httpd state=reloaded |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create a Virtual Machine | |
# For OpenStack, as with Digital Ocean, access credentials are needed | |
# They can be provided in a fashion similar to DO, passed as variables | |
# or via the terraform CLI as parameters, but they also can be passed | |
# as environment variables. The standard "openrc.sh" file includes | |
# all the prerequisite parameters including OS_AUTH_URL, OS_PASSWORD | |
# OS_USERNAME, OS_TENANT_NAME, and OS_REGION_NAME. The simplest is | |
# often to source the openrc file to set these variables, or set them | |
# in the provdier as follows: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Install prerequisites | |
sudo yum install -y git httpd ruby-devel rubygems rubygem-bundler epel-release pygpgme curl | |
# Add the phusionsoft passenger RPM repository so that we can install the | |
# Apache passenger module | |
sudo curl --fail -sSLo /etc/yum.repos.d/passenger.repo \ | |
https://oss-binaries.phusionpassenger.com/yum/definitions/el-passenger.repo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo hello world |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[local|localrc]] | |
# Uncomment the next line after you've run devstack once if you don't want to try to download everything again. | |
#OFFLINE=true | |
#VIRT_DRIVER=docker | |
# Set default passwords, further accelerate deployment, maybe make this less generic if you're in an environment where someone may 'play' with your system | |
ADMIN_PASSWORD=ubuntu | |
DATABASE_PASSWORD=ubuntu | |
RABBIT_PASSWORD=ubuntu | |
SERVICE_PASSWORD=ubuntu |