Skip to content

Instantly share code, notes, and snippets.

rebar3 as prod relflow -u v20150714.074813
rebar3 as prod tar relup -u 20150714.074813
@orotemo
orotemo / do_boot2.sh
Last active August 29, 2015 14:24 — forked from leucos/do_boot2.sh
#!/bin/bash
#
# What is that
# ============
#
# This script will help you setting up your digital ocean
# infrastructure with Ansible v2.0+ and DO API v2
#
# Usually, when working with DO, one is supposed to use digital_ocean.py
# inventory file, and spin up instances in a playbook.
@orotemo
orotemo / gist:4acbc9f3f0a089d411ad
Created July 8, 2015 11:47
docker to build erlang releases
FROM ubuntu:trusty
RUN apt-get update && apt-get -y upgrade && apt-get -y install wget && apt-get -y install git
RUN cd /tmp; wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb && \
dpkg -i erlang-solutions_1.0_all.deb
RUN apt-get update && apt-get -y install erlang erlang-base-hipe build-essential
RUN git clone https://github.com/rebar/rebar3 && cd rebar3 && ./bootstrap && \
input {
udp {
port => 5454
codec => json_lines
}
}
output {
stdout {
codec => json_lines
filter {
json {
source => "message"
}
}
input {
udp {
port => 5454
}
input {
udp {
port => 5454
}
}
output {
stdout {
codec => rubydebug
}