Skip to content

Instantly share code, notes, and snippets.

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

Gullit Miranda gullitmiranda

🌎
Working from anywhere
  • CloudWalk
  • Ubatuba, São Paulo, Brazil
  • 01:17 (UTC -03:00)
  • LinkedIn in/gullitmiranda
View GitHub Profile
@gullitmiranda
gullitmiranda / Azkfile.js
Created April 23, 2015 16:22
Azkfile.js to configure `public` folder in nginx of `php-fpm`
systems({
"my-app": {
image: {"docker": "azukiapp/php-fpm"},
provision: [
// "composer install",
],
workdir: "/azk/#{manifest.dir}",
mounts: {
'/azk/#{manifest.dir}': path("."),
'/etc/nginx/sites-enabled/nginx_public.conf': path("./nginx_public.conf")
@gullitmiranda
gullitmiranda / Azkfile.js
Last active August 29, 2015 14:17
Azkfile to PHP with FPM and Mysql.
/**
* Documentation: http://docs.azk.io/Azkfile.js
*/
// Adds the systems that shape your system
systems({
phpSample: {
// Dependent systems
depends: ["mysql"],
// More images: http://images.azk.io
/**
* Documentation: http://docs.azk.io/Azkfile.js
*/
// Adds the systems that shape your system
systems({
feedbin: {
// Dependent systems
depends: ["clock", "worker-slow", "worker", "redis", "postgres", "elasticsearch"],
// More images: http://images.azk.io
@gullitmiranda
gullitmiranda / Azkfile.js
Last active August 29, 2015 14:16 — forked from heitortsergent/Azkfile.js
Feedbin Azkfile.js
/**
* Documentation: http://docs.azk.io/Azkfile.js
*/
// Adds the systems that shape your system
systems({
feedbin: {
// Dependent systems
depends: ["redis", "postgres"],
// More images: http://images.azk.io
/**
* Documentation: http://docs.azk.io/Azkfile.js
*/
systems({
"msmm-front": {
depends: [
'msmm-api'
],
image: { docker: "azukiapp/ruby:2.1"},
provision: [
@gullitmiranda
gullitmiranda / install azk in mac.sh
Last active August 29, 2015 14:15
Comandos para instalar azk no Mac
$ brew cask install virtualbox —appdir=/Applications
$ brew install azukiapp/azk/azk
# Check install
$ azk version
azk 0.9.2
@gullitmiranda
gullitmiranda / Azkfile.js
Last active August 29, 2015 14:15
Azkfile.js to UMRUM
systems({
umrum: {
// Dependent systems
depends: ["redis", "mongodb"],
// More images: http://images.azk.io
image: {"docker": "azukiapp/node"},
// Steps to execute before running instances
provision: [
"npm install",
"grunt compile"
@gullitmiranda
gullitmiranda / azk init.sh
Created February 10, 2015 15:42
`azk init` and add `.azk` to .gitignore
$ azk init
azk: `node` system was detected at '/Users/gullitmiranda/www/umrum' as 'umrum'
azk: 'Azkfile.js' generated
Tip:
Adds the `.azk` in .gitignore
echo '.azk' >> .gitignore
$ echo ‘.azk’ >> .gitignore
@gullitmiranda
gullitmiranda / Azkfile.js
Created February 10, 2015 15:22
Azkfile.js result of `azk init`
/**
* Documentation: http://docs.azk.io/Azkfile.js
*/
// Adds the systems that shape your system
systems({
umrum: {
// Dependent systems
depends: [],
// More images: http://images.azk.io
@gullitmiranda
gullitmiranda / 0_reuse_code.js
Last active August 29, 2015 14:14
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console