Base docker image to run a PostgreSQL database server in azk
Postgres versions (tags)
| 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
Postgres versions (tags)
| /** | |
| * 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: { |
| /** | |
| * 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() { |
Install http://tmate.io
Configure ~/.tmux.conf
curl -sSL -o ~/.tmux.conf https://gist.github.com/gullitmiranda/e631f14a66a8ff658eb7/raw/fc3cfb7cd2ef1cc6e5d0de66b1e93b68652de866/tmux.confStart tmate server
| #!/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 |
| #! /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 |