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
require 'sinatra' | |
require 'googleauth' | |
require 'googleauth/web_user_authorizer' | |
require 'googleauth/stores/redis_token_store' | |
require 'google/apis/analytics_v3' | |
require 'google/apis/webmasters_v3' | |
require 'redis' | |
client_id = ::Google::Auth::ClientId.new( | |
'xxxxxxxx', |
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
# Base image | |
FROM ruby:latest | |
ENV HOME /home/rails/webapp | |
# Install PGsql dependencies and js engine | |
RUN apt-get update -qq && apt-get install -y build-essential libpq-dev nodejs | |
WORKDIR $HOME |
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
o that it is suitably secure. | |
# | |
# example Dockerfile for https://docs.docker.com/examples/postgresql_service/ | |
# | |
FROM ubuntu | |
MAINTAINER [email protected] | |
# Add the PostgreSQL PGP key to verify their Debian packages. |