diff options
Diffstat (limited to 'Services/memcache')
-rw-r--r-- | Services/memcache/Dockerfile | 13 | ||||
-rw-r--r-- | Services/memcache/README.md | 16 | ||||
-rw-r--r-- | Services/memcache/memcache_run.sh | 2 |
3 files changed, 31 insertions, 0 deletions
diff --git a/Services/memcache/Dockerfile b/Services/memcache/Dockerfile new file mode 100644 index 0000000..b1150c1 --- /dev/null +++ b/Services/memcache/Dockerfile @@ -0,0 +1,13 @@ +FROM startx/fedora +MAINTAINER Chistophe LARUE <dev@startx.fr> + +COPY memcache_run.sh /bin/ +RUN yum -y install memcached \ + && yum clean all \ + && chmod ug+rx /bin/memcache_* + +EXPOSE 11211 + +#CMD ["memcached" , "-u" ," "daemon"] +CMD ["/bin/memcache_run.sh"] +ONBUILD CMD ["/bin/memcache_run.sh"]
\ No newline at end of file diff --git a/Services/memcache/README.md b/Services/memcache/README.md new file mode 100644 index 0000000..f81f3de --- /dev/null +++ b/Services/memcache/README.md @@ -0,0 +1,16 @@ +docker-images MariaDB +===================== + +**Description** +Based on the [tutum php](https://registry.hub.docker.com/u/tutum/mariadb) Dockerfile + +**Usage** + + docker run --name="test-maria" -d startx/sv-maria + + docker run --name="test-maria" -d startx/sv-maria + docker run -d -p 3306:3306 startx/sv-maria + docker run -d -p 3306:3306 --name="test-maria" startx/sv-maria + + docker run -d --name="test-maria" startx/sv-maria // linked to another container + docker run -d --name="test-www" --link test-maria:maria startx/sv-php diff --git a/Services/memcache/memcache_run.sh b/Services/memcache/memcache_run.sh new file mode 100644 index 0000000..f41aae1 --- /dev/null +++ b/Services/memcache/memcache_run.sh @@ -0,0 +1,2 @@ +#!/bin/bash +exec memcached -u daemon
\ No newline at end of file |