This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> docker inspect ee128b4bc05 | grep IPAddress | |
"IPAddress": "172.17.0.9", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> sudo docker run -t -i maestrano:vtiger-6.2.0 | |
[ ok ] Starting MySQL database server: mysqld . .. | |
[info] Checking for tables which need an upgrade, are corrupt or were | |
not closed cleanly.. | |
[ ok ] Starting web server: apache2. | |
root@ee128b4bc055:/etc/ansible# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# docker images | |
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE | |
maestrano vtiger-6.2.0 9cc460f8c2d2 15 minutes ago 704.1 MB | |
maestrano lamp ef7c6ebef83a 26 minutes ago 480.4 MB |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: vTiger Installation | |
hosts: localhost | |
vars_files: | |
- ../var/settings.yml | |
tasks: | |
- name: General | Install Application packages | |
apt: "name={{ item }} state=present" | |
with_items: | |
- git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM maestrano:lamp | |
MAINTAINER Maestrano <it@maestrano.com> | |
# Add ansible configuration | |
ADD ansible/playbooks/ /etc/ansible/playbooks/ | |
ADD ansible/templates/ /etc/ansible/templates/ | |
ADD ansible/var/ /etc/ansible/var/ | |
ADD ansible/var/settings.yml /etc/ansible/var/settings.yml | |
ADD ansible/hosts /etc/ansible/hosts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> sudo docker images | |
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE | |
maestrano lamp ef7c6ebef83a 5 minutes ago 480.4 MB |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM debian:latest | |
MAINTAINER Maestrano <it@maestrano.com> | |
# Add ansible configuration | |
ADD ansible/playbooks/ /etc/ansible/playbooks/ | |
ADD ansible/templates/ /etc/ansible/templates/ | |
ADD ansible/var/ /etc/ansible/var/ | |
ADD ansible/var/settings.yml /etc/ansible/var/settings.yml | |
ADD ansible/hosts /etc/ansible/hosts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sending build context to Docker daemon 114.7 kB | |
Sending build context to Docker daemon | |
Step 0 : FROM debian:latest | |
---> b3d362b23ec1 | |
Step 1 : MAINTAINER Maestrano <it@maestrano.com> | |
---> Using cache | |
---> 8317bc146e4a | |
Step 2 : ADD ansible/playbooks/ /etc/ansible/playbooks/ | |
---> Using cache | |
---> 33a2d88284cb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install Ansible if not done yet | |
apt-get -q -y --no-install-recommends install python-yaml \ | |
python-jinja2 python-httplib2 python-keyczar \ | |
python-paramiko python-setuptools \ | |
python-pkg-resources git python-pip | |
mkdir -p /etc/ansible/ | |
pip install ansible | |
# Run the playbooks! | |
ansible-playbook /etc/ansible/playbooks/mysql.yml -c local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# The MySQL database server configuration file. | |
# | |
# You can copy this to one of: | |
# - "/etc/mysql/my.cnf" to set global options, | |
# - "~/.my.cnf" to set user-specific options. | |
# | |
# One can use all long options that the program supports. | |
# Run program with --help to get a list of available options and with | |
# --print-defaults to see which it would actually understand and use. |
NewerOlder