Skip to content

Instantly share code, notes, and snippets.

@tzumby
tzumby / Dockerfile
Last active August 29, 2015 14:06
Ruby Dockerfile
# Select Ubuntu as the base image
FROM ubuntu
MAINTAINER Razvan Draghici <[email protected]>
# Update Apt
RUN apt-get -y update
RUN apt-get -y install curl git-core python-software-properties
# install essentials
apiVersion: v1
kind: Service
metadata:
name: wordpress-mariadb
spec:
ports:
- port: 3306
selector:
app: mariadb
clusterIP: None
apiVersion: v1
kind: Service
metadata:
name: wordpress-site
spec:
ports:
- port: 80
selector:
app: wordpress
type: NodePort
vcl 4.0;
import directors;
import std;
# Assumed 'wordpress' host, this can be docker servicename
backend default {
.host = "wordpress-site";
.port = "80";
}
{{ $cfg := .Cfg }}
{{ $IsIPV6Enabled := .IsIPV6Enabled }}
{{ $healthzURI := .HealthzURI }}
{{ $backends := .Backends }}
{{ $proxyHeaders := .ProxySetHeaders }}
daemon off;
worker_processes {{ $cfg.WorkerProcesses }};
pid /run/nginx.pid;
{{ if ne .MaxOpenFiles 0 }}
# Dockerfile - Ubuntu Xenial
# https://github.com/openresty/docker-openresty
FROM ubuntu:xenial
MAINTAINER Evan Wies <[email protected]>
# Docker Build Arguments
ARG RESTY_VERSION="1.11.2.3"
ARG RESTY_LUAROCKS_VERSION="2.3.0"

Keybase proof

I hereby claim:

  • I am tzumby on github.
  • I am tzumby (https://keybase.io/tzumby) on keybase.
  • I have a public key ASAWhnClplyDLU8tP_jH2vw4SAit7Pbo74zC9LR9cOhUoAo

To claim this, I am signing this object:

defp deps do
[
{:ethereumex, "~> 0.3.2"},
{:abi, "~> 0.1.8"}
]
end
config :ethereumex,
url: "https://mainnet.infura.io/API_KEY"
"0x15d3be8fee89e4"
|> String.slice(2..-1)
|> Base.decode16!(case: :lower)
|> :binary.decode_unsigned
# 6143789922945508