Skip to content

Instantly share code, notes, and snippets.

View gullitmiranda's full-sized avatar
🌎
Working from anywhere

Gullit Miranda gullitmiranda

🌎
Working from anywhere
View GitHub Profile
@gullitmiranda
gullitmiranda / Azkfile.js
Created April 5, 2016 19:41
Azkfile cakephp with rabbitmq
systems({
// coloque este Azkfile no root de cada projeto alterando apenas o nome do sistema
// ex: biobanco, apipatinf
// obs. não esqueça de também adicionar o Dockerfile no root de cada projeto
// obs2. não esquecer de alterar o nome do sistema também no setDefault no final do Azkfile
avapng: {
depends: ["mysql"],
image: { dockerfile: './Dockerfile' },
workdir: '/var/www',
shell: '/bin/bash',

Base docker image to run a PostgreSQL database server in azk

Circle CI ImageLayers Size ImageLayers Layers

Postgres versions (tags)

@gullitmiranda
gullitmiranda / Azkfile.js
Last active July 20, 2016 02:44
Elixir + Phoenix (API) Azkfile - initial instructions in README.md
/**
* Documentation: http://docs.azk.io/Azkfile.js
*/
var name = "api";
var ENV = env.DEPLOY_ENV || "stage";
var domain = "domain.com";
// var domain = (ENV == "prod") ? "domain.com" : "cloudapp.net" ;
var subdomain = (ENV == "prod") ? name : (name + "-" + ENV);
var host = subdomain + "." + domain;
/**
* Documentation: http://docs.azk.io/Azkfile.js
*/
systems({
'app': {
depends: ['builder'],
image: {"docker": "nginx"},
workdir: "/azk/app",
shell: "/bin/bash",
mounts: {
@gullitmiranda
gullitmiranda / Azkfile.js
Created December 27, 2015 05:31
azk deploy with multiple enviroments
/**
* Documentation: http://docs.azk.io/Azkfile.js
*/
var name = "app";
var ENV = env.DEPLOY_ENV || "stage";
var PATH = name + "-" + ENV;
var project = (ENV == "prod") ? name : name + "-" + ENV;
var host = (function() {
@gullitmiranda
gullitmiranda / README.md
Last active September 30, 2023 11:13
Remote support or pair programing cheet sheet with http://tmate.io
  1. Install http://tmate.io

  2. Configure ~/.tmux.conf

    curl -sSL -o ~/.tmux.conf https://gist.github.com/gullitmiranda/e631f14a66a8ff658eb7/raw/fc3cfb7cd2ef1cc6e5d0de66b1e93b68652de866/tmux.conf
  3. Start tmate server

/providers

POST /providers

  {
    id: "paulistana", // ID
    name: "Paulistana",
    standard: "ABRASF",
    version: "1.00",
    actions: [
#!/bin/bash
# install dependencies
sudo apt-key adv --keyserver keys.gnupg.net --recv-keys 022856F6D78159DF43B487D5C82CF0628592D2C9
echo "deb [arch=amd64] http://repo.azukiapp.com trusty main" | sudo tee /etc/apt/sources.list.d/azuki.list
sudo apt-get update -y
sudo apt-get install rsync libnss-resolver -y
# force azk install
sudo apt-get download azk
@gullitmiranda
gullitmiranda / azkfile-counter.sh
Last active November 6, 2015 13:05 — forked from fearenales/azkfile-counter.sh
How many Azkfile.js in non Azuki's team repo exist?
#! /bin/bash
curl -s "https://github.com/search?utf8=%E2%9C%93&q=Azkfile.js+in%3Apath+-user%3Aazukiapp+-user%3Arun-project+-user%3Amarcusgadbem+-user%3Aheitortsergent+-user%3Asaitodisse+-user%3Agullitmiranda+-user%3Afearenales+-user%3Anuxlli&type=Code&ref=searchresults" | grep counter | sed s/.*counter\"\>//g | sed s/\<\\/.*//g
/**
* Documentation: http://docs.azk.io/Azkfile.js
*/
// Adds the systems that shape your system
systems({
app: {
// Dependent systems
depends: ['postgres'],
// More images: http://images.azk.io