From 9b86a42aef9e3c3122ee2fe23c8619692a4861c4 Mon Sep 17 00:00:00 2001 From: Lorin Hochstein Date: Tue, 24 Jan 2017 22:22:46 -0800 Subject: [PATCH] More docker progress --- ch13/ansible/container.yml | 5 ++++- ch13/ansible/roles/mezzanine/tasks/main.yml | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ch13/ansible/container.yml b/ch13/ansible/container.yml index c4ef1d6..546082b 100644 --- a/ch13/ansible/container.yml +++ b/ch13/ansible/container.yml @@ -4,12 +4,15 @@ services: image: ubuntu:xenial expose: - "11211" + entrypoint: [memcached] + command: ["-m", "128"] + user: daemon nginx: image: nginx:1.11 mezzanine: image: ubuntu:xenial - command: [/usr/local/bin/gunicorn, '0.0.0.0:8000', 'mezzanine_example.wsgi:application'] entrypoint: [/srv/bin/entrypoint.sh] + command: [/usr/local/bin/gunicorn, '0.0.0.0:8000', 'mezzanine_example.wsgi:application'] working_dir: /srv/project expose: - "8000" diff --git a/ch13/ansible/roles/mezzanine/tasks/main.yml b/ch13/ansible/roles/mezzanine/tasks/main.yml index cae7a7f..be79a75 100644 --- a/ch13/ansible/roles/mezzanine/tasks/main.yml +++ b/ch13/ansible/roles/mezzanine/tasks/main.yml @@ -20,6 +20,10 @@ synchronize: src: "{{ lookup('pipe', 'dirname `pwd`') }}/mezzanine_example/" dest: /srv/project +- name: create /srv/bin directory + file: + path: /srv/bin + state: directory - name: copy scripts copy: src: "{{ role_path }}/files/{{ item }}" -- 2.44.0