This file contains 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
source "https://api.berkshelf.com" | |
cookbook "apt" | |
cookbook "build-essential" | |
cookbook "ffi", git: "git://github.com/tdtadeu/ffi.git" | |
cookbook "brightbox", git: "git://github.com/bubble-cookbooks/brightbox.git" | |
# cookbook "mysqlchef", git: "git://github.com/tdtadeu/mysqlchef.git" | |
cookbook "redis", git: "git://github.com/tdtadeu/redis.git" | |
cookbook "xvfb" | |
cookbook "git", git: "git://github.com/tdtadeu/git.git" |
This file contains 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure(2) do |config| | |
config.vm.box = "ubuntu/trusty64" | |
config.vm.network :forwarded_port, guest: 3000, host: 3000 | |
config.vm.network :private_network, ip: "10.11.12.13" | |
config.ssh.forward_agent = true | |
config.vm.synced_folder ".", "/vagrant" | |
config.vm.boot_timeout = 120 |
This file contains 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 | |
# Autor: Daniel Alvarenga Lima | |
# Versão do Ubuntu suportada: 16.04 64Bit | |
# Versão deste Script: 2016-12-17 | |
# EXECUTE | |
# sudo chmod +x script-install-all-ubuntu.sh | |
# ./script-install-all-ubuntu.sh |
This file contains 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
Attacks Protected | |
# Clickjacking | |
# | |
# config to don't allow the browser to render the page inside an frame or iframe | |
# and avoid clickjacking http://en.wikipedia.org/wiki/Clickjacking | |
# if you need to allow [i]frames, you can use SAMEORIGIN or even set an uri with ALLOW-FROM uri | |
# https://developer.mozilla.org/en-US/docs/HTTP/X-Frame-Options |
This file contains 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
version: '3' | |
services: | |
setup: | |
image: 'currencytracker:latest' | |
command: "bundle exec rails db:create db:migrate db:seed" | |
app: | |
depends_on: | |
- 'setup' |
This file contains 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
version: '3' | |
services: | |
# For Postgres database | |
# db: | |
# image: 'postgres:9.6-alpine' | |
# environment: | |
# POSTGRES_USER: 'currencytrackeruser' | |
# POSTGRES_PASSWORD: 'root123' |
This file contains 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
FROM ruby:2.5-alpine3.7 | |
RUN apk add --update --no-cache \ | |
build-base \ | |
nodejs \ | |
tzdata \ | |
libxml2-dev \ | |
libxslt-dev \ | |
bash \ | |
postgresql-dev \ |
This file contains 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 | |
envApplication='development' | |
project='[DEV]myproject' | |
dockerfilePath='../Dockerfile' | |
containerName='myproject' | |
containerRepository='' | |
clusterName='' | |
. ./deploy-common.sh |
This file contains 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 | |
envApplication='production' | |
project='[PRODUCTION]myproject' | |
dockerfilePath='../Dockerfile' | |
containerName='currencytracker' | |
containerRepository='1234567890.dkr.ecr.us-east-2.amazonaws.com' | |
clusterName='prod-myproject' | |
. ./deploy-common.sh --stop-tasks --upload-image --login |
This file contains 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
# Set linux Alpine 3.8 image with ruby 2.5 installed | |
# Others oficial ruby images: https://hub.docker.com/_/ruby/ | |
FROM ruby:2.5-alpine3.8 | |
# Install required libraries and dependencies | |
RUN apk add --update --no-cache \ | |
build-base \ | |
nodejs \ | |
tzdata \ | |
libxml2-dev \ |