Compare commits

..

4 commits

Author SHA1 Message Date
Petr "Stone" Hracek
5a4b8a6153 Update container image according to Fedora-Dockerfiles 2017-09-06 12:15:32 +02:00
Tomas Tomecek
71ccb35e58 rebuild - bump release
Signed-off-by: Tomas Tomecek <ttomecek@redhat.com>
2017-08-21 21:44:20 +02:00
Tomas Tomecek
79b840a5eb sync with upstream
Signed-off-by: Tomas Tomecek <ttomecek@redhat.com>
2017-08-21 17:02:11 +02:00
Petr "Stone" Hracek
5097d0e7d4 Add missing files directory
Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
2017-04-12 10:15:36 +02:00
4 changed files with 71 additions and 12 deletions

View file

@ -1,4 +1,4 @@
FROM registry.fedoraproject.org/fedora:26 FROM registry.fedoraproject.org/fedora:rawhide
# memcached image for OpenShift. # memcached image for OpenShift.
# #
@ -12,10 +12,10 @@ LABEL MAINTAINER "Petr Hracek" <phracek@redhat.com>
LABEL summary="High Performance, Distributed Memory Object Cache" \ LABEL summary="High Performance, Distributed Memory Object Cache" \
name="$FGC/$NAME" \ name="$FGC/$NAME" \
version="0" \ version="0" \
release="2.$DISTTAG" \ release="3.$DISTTAG" \
architecture="$ARCH" \ architecture="$ARCH" \
com.redhat.component=$NAME \ com.redhat.component=$NAME \
usage="docker run -p 11211:11211 registry.fedoraproject.org/f26/memcached" \ usage="docker run -p 11211:11211 registry.fedoraproject.org/rawhide/memcached" \
help="Runs memcached, which listens on port 11211. No dependencies. See Help File below for more details." \ help="Runs memcached, which listens on port 11211. No dependencies. See Help File below for more details." \
description="memcached is a high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load." \ description="memcached is a high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load." \
io.k8s.description="memcached is a high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load." \ io.k8s.description="memcached is a high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load." \
@ -23,12 +23,11 @@ LABEL summary="High Performance, Distributed Memory Object Cache" \
io.openshift.expose-services="11211:memcached" \ io.openshift.expose-services="11211:memcached" \
io.openshift.tags="memcached" io.openshift.tags="memcached"
RUN dnf install -y --setopt=tsflags=nodocs memcached && \ RUN dnf -y --nodocs install memcached && \
dnf -y clean all dnf -y clean all
ADD files /files ADD files /files
ADD help.md README.md / ADD root/help.1 /help.1
EXPOSE 11211 EXPOSE 11211

View file

@ -7,20 +7,20 @@ Memcached is High Performance, Distributed Memory Object Cache
Pull the image from Docker Hub: Pull the image from Docker Hub:
```bash ```bash
$ sudo docker pull registry.fedoraproject.org/f26/memcached $ sudo docker pull registry.fedoraproject.org/memcached:rawhide
``` ```
Run the container Run the container
```bash ```bash
docker run -it -p 11211:11211 --name memcached registry.fedoraproject.org/f26/memcached docker run -it -p 11211:11211 --name memcached modularitycontainers/memcached
``` ```
If you would like to debug memcached, use container option =e MEMCACHED_DEBUG_MODE: If you would like to debug memcached, use container option =e MEMCACHED_DEBUG_MODE:
```bash ```bash
docker run -it -p 11211:11211 docker run -it -p 11211:11211
[-e MEMCACHED_DEBUG_MODE] [-e MEMCACHED_DEBUG_MODE]
--name memcached registry.fedoraproject.org/f26/memcached --name memcached modularitycontainers/memcached
``` ```
If you would like to change memcached options, like cache_size, connections or threads, use environment variable -e MEMCACHED_CACHE_SIZE, -e MEMCACHED_CONNECTIONS, -e MEMCACHED_THREADS respectively: If you would like to change memcached options, like cache_size, connections or threads, use environment variable -e MEMCACHED_CACHE_SIZE, -e MEMCACHED_CONNECTIONS, -e MEMCACHED_THREADS respectively:
@ -29,7 +29,7 @@ docker run -it -p 11211:11211
[-e MEMCACHED_CACHE_SIZE=<size_in_MB>] [-e MEMCACHED_CACHE_SIZE=<size_in_MB>]
[-e MEMCACHED_CONNECTIONS=<max_simultaneous_connections>] [-e MEMCACHED_CONNECTIONS=<max_simultaneous_connections>]
[-e MEMCACHED_THREADS=<max_concurrent_threads>] [-e MEMCACHED_THREADS=<max_concurrent_threads>]
--name memcached registry.fedoraproject.org/f26/memcached --name memcached modularitycontainers/memcached
``` ```
## A demo ## A demo

View file

@ -9,7 +9,7 @@ memcached - High Performance, Distributed Memory Object Cache.
Memcached is a high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load. Memcached is a high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load.
The container itself consists of: The container itself consists of:
- fedora/f26 base image - fedora/rawhide base image
- memcached RPM package - memcached RPM package
Files added to the container during docker build include: /files/memcached.sh Files added to the container during docker build include: /files/memcached.sh
@ -17,7 +17,7 @@ Files added to the container during docker build include: /files/memcached.sh
# USAGE # USAGE
To get the memcached container image on your local system, run the following: To get the memcached container image on your local system, run the following:
docker pull registry.fedoraproject.org/f26/memcached docker pull registry.fedoraproject.org/memcached:rawhide
# ENVIRONMENT VARIABLES # ENVIRONMENT VARIABLES

60
root/help.1 Normal file
View file

@ -0,0 +1,60 @@
.TH "MEMCACHED" "1" " Container Image Pages" "Petr Hracek" "February 6, 2017"
.nh
.ad l
.SH NAME
.PP
memcached \- High Performance, Distributed Memory Object Cache.
.SH DESCRIPTION
.PP
Memcached is a high\-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load.
.PP
The container itself consists of:
\- fedora/24 base image
\- memcached RPM package
.PP
Files added to the container during docker build include: /files/memcached.sh
.SH USAGE
.PP
To get the memcached container image on your local system, run the following:
.PP
.RS
.nf
docker pull hub.docker.io/phracek/memcached
.fi
.RE
.SH ENVIRONMENT VARIABLES
.PP
The memcached container includes the following environment variables:
.PP
CACHE\_SIZE=128
The variable sets size of cached used by memcached.
.SH SECURITY IMPLICATIONS
.PP
Lists of security\-related attributes that are opened to the host.
.PP
\-p 11211:11211
Opens container port 11211 and maps it to the same port on the host.
.SH SEE ALSO
.PP
Memcached page
\[la]https://memcached.org/\[ra]