Skip to content

Instantly share code, notes, and snippets.

View BrunoChauvet's full-sized avatar

Bruno Chauvet BrunoChauvet

View GitHub Profile
@BrunoChauvet
BrunoChauvet / docker-inspect.log
Created May 24, 2015 03:13
Docker inspect IP Address
> docker inspect ee128b4bc05 | grep IPAddress
"IPAddress": "172.17.0.9",
@BrunoChauvet
BrunoChauvet / docker-run.log
Created May 24, 2015 03:08
Launch docker container
> 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#
@BrunoChauvet
BrunoChauvet / docker-images.log
Created May 24, 2015 03:06
Docker image repository
# 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
@BrunoChauvet
BrunoChauvet / install_vtiger.yml
Last active August 29, 2015 14:21
Ansible install Vtiger
- name: vTiger Installation
hosts: localhost
vars_files:
- ../var/settings.yml
tasks:
- name: General | Install Application packages
apt: "name={{ item }} state=present"
with_items:
- git
@BrunoChauvet
BrunoChauvet / Dockerfile
Created May 24, 2015 02:47
Vtiger Dockerfile
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
@BrunoChauvet
BrunoChauvet / docker-images
Last active August 29, 2015 14:21
Docker image repository
> sudo docker images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
maestrano lamp ef7c6ebef83a 5 minutes ago 480.4 MB
@BrunoChauvet
BrunoChauvet / Dockerfile
Created May 24, 2015 02:03
LAMP - Dockerfile
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
@BrunoChauvet
BrunoChauvet / ansible.log
Last active August 29, 2015 14:21
Ansible run playbook output
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
@BrunoChauvet
BrunoChauvet / run_playbooks.sh
Created May 24, 2015 01:45
Ansible run playbook
# 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
@BrunoChauvet
BrunoChauvet / etc-mysql-my-cnf
Created May 24, 2015 01:31
Ansible LAMP - MySQL my.cnf template
#
# 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.