Skip to content

Instantly share code, notes, and snippets.

/*align*/!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c),c}:a(jQuery)}(function(a){"use strict";a.FE.PLUGINS.align=function(b){function c(c){b.selection.save(),b.html.wrap(!0,!0,!0),b.selection.restore();for(var d=b.selection.blocks(),e=0;e<d.length;e++)a(d[e]).css("text-align",c).removeClass("fr-temp-div"),""===a(d[e]).attr("class")&&a(d[e]).removeAttr("class");b.selection.save(),b.html.unwrap(),b.selection.restore()}function d(c){var d=b.selection.blocks();if(d.length){var e=b.helpers.getAlignment(a(d[0]));c.find("> *:first").replaceWith(b.icon.create("align-"+e))}}function e(c,d){var e=b.selection.blocks();if(e.length){var f=b.helpers.getAlignment(a(e[0]));d.find('a.fr-command[data-param1="'+f+'"]').addClass("fr-active")}}return{apply:c,refresh:d,refreshOnShow:e}},a.FE.DefineIcon("align",{NAME:"align-left"}),a.FE.DefineIco
upstream registry {
server registry:5000;
}
server {
listen 80;
server_name registry.domain.tld;
return 301 https://$host$request_uri;
}
# Di server
export ANSIBLE_PLAYBOOKS=/var/local/jenkins
# Di localhost
ansible-playbook -vvvv ${ANSIBLE_PLAYBOOKS}/rebuildDocker.yml -i ${ANSIBLE_PLAYBOOKS}/hosts
# Copy certificate dan key lalu masukan ke /home/app/certs lalu run:
mkdir -p conf/registry/auth/registry
cp -R certs conf/registry/certs
cp -R certs conf/nginx/certs
- hosts: all
become: yes
become_method: sudo
vars:
# For handlers/restart-docker.yml
http_port: 3000
host_port: 41600
# Shared here and in handlers/restart-docker.yml
image_name: mariocaster/node-server
# hosts
[local]
192.168.1.39 ansible_sudo_pass=osboxes.org ansible_ssh_user=osboxes
# Dengan begini kita bisa launch command sebagai berikut:
ansible-playbook -i hosts add-docker.yml
# add-docker.yml
- host: all
become: yes
become_method: sudo
tasks:
- name: Tambahkan Docker
yum: name=docker state=present
- name: Tambahkan python-docker-py
#!/bin/bash
# gain-ssh-access
echo -e "\n"
if [ "$1" = "-i" ] ; then
echo "Using interactive mode"
echo -e "Menulis name dari remote user: \c"
read user
# Red had based distribution
sudo yum install -y docker
# Debian based
sudo apt-get install -y docker
FROM node:6
# Argument
ENV REPO="https://github.com/${REPO}.git"
/*align*/!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c),c}:a(jQuery)}(function(a){"use strict";a.FE.PLUGINS.align=function(b){function c(c){b.selection.save(),b.html.wrap(!0,!0,!0),b.selection.restore();for(var d=b.selection.blocks(),e=0;e<d.length;e++)a(d[e]).css("text-align",c).removeClass("fr-temp-div"),""===a(d[e]).attr("class")&&a(d[e]).removeAttr("class");b.selection.save(),b.html.unwrap(),b.selection.restore()}function d(c){var d=b.selection.blocks();if(d.length){var e=b.helpers.getAlignment(a(d[0]));c.find("> *:first").replaceWith(b.icon.create("align-"+e))}}function e(c,d){var e=b.selection.blocks();if(e.length){var f=b.helpers.getAlignment(a(e[0]));d.find('a.fr-command[data-param1="'+f+'"]').addClass("fr-active")}}return{apply:c,refresh:d,refreshOnShow:e}},a.FE.DefineIcon("align",{NAME:"align-left"}),a.FE.DefineIco
#noscript{position:absolute;z-index:100;margin-left:-8px;margin-top:-8px;width:100%;height:100%;min-width:800px;text-align:center;overflow:hidden;background-color:#686868;font-family:"SFNSText","Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:300;text-rendering:optimizeLegibility;cursor:default;-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;}
#noscript div#tanpajs{position:absolute;top:0;left:0;right:0;bottom:0;min-height:500px;}
#noscript div#tanpajs div.float-center-gradient{z-index:102;position:absolute;width:100%;height:100%;}
#noscript div#tanpajs div.float-center{z-index:103;position:absolute;top:44%;margin-top:-125px;width:100%;height:250px;text-align:center;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;}
#noscript div#tanpajs div.float-center img#img-cloud{margin-bottom:25px;}#noscript div#tanpajs div.float-center span.title{color:#fff;font-size:45px;}
#noscript div#tanpajs div.float-center span.subtitle{color:#c3c3c3;font-siz