- using Ansible command line:
ansible-playbook --connection=local 127.0.0.1 playbook.yml
- using inventory:
127.0.0.1 ansible_connection=local
ansible-playbook --connection=local 127.0.0.1 playbook.yml
127.0.0.1 ansible_connection=local
398 update-ca-trust force-enable | |
401 update-ca-trust extract | |
403 openssl s_client -showcerts -connect github.com:443 </dev/null 2>/dev/null|openssl x509 -outform PEM >mycertfile.pem | |
405 cp mycertfile.pem /etc/pki/ca-trust/source/anchors/ | |
406 update-ca-trust extract |
<?xml version="1.0"?> | |
<ruleset name="CustomCfg"> | |
<description> | |
PSR2 style guide + tab indent instead of space. | |
</description> | |
<arg name="tab-width" value="4"/> | |
<rule ref="PSR2"> | |
<exclude name="Generic.WhiteSpace.DisallowTabIndent" /> |
git clone https://github.com/wadmiraal/docker-drupal.git
cd docker-drupal
git checkout 7.x
# ADICIONANDO MODULOS | |
# MySQL | |
./jboss-cli.sh -c --command='module add --name=com.mysql --resources=mysql-connector-java.jar --dependencies=javax.api\,javax.transaction.api'; | |
# ORACLE | |
./jboss-cli.sh -c --command='module add --name=com.oracle.ojdbc --resources=ojdbc-7.jar --dependencies=javax.api\,javax.transaction.api' | |
# ADICIONANDO DRIVERS | |
# MySQL |
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
Create a template service file at /etc/systemd/system/[email protected]
. The template parameter will correspond to the name
of target host:
[Unit]
Description=Setup a secure tunnel to %I
After=network.target
/** | |
* Recebe um data no formato dd/mm/yyyy e retorna yyyy-mm-dd. | |
* | |
* @param string date - Data no formato 'dd/mm/yyyy'. | |
* @return string - Data no formato 'yyyy-mm-dd'. | |
*/ | |
function dateToEN(date) | |
{ | |
return date.split('/').reverse().join('-'); | |
} |