summaryrefslogtreecommitdiffstats
path: root/debian/perl-framework/scripts/memcached-init.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xdebian/perl-framework/scripts/memcached-init.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/debian/perl-framework/scripts/memcached-init.sh b/debian/perl-framework/scripts/memcached-init.sh
new file mode 100755
index 0000000..f90f055
--- /dev/null
+++ b/debian/perl-framework/scripts/memcached-init.sh
@@ -0,0 +1,8 @@
+#!/bin/bash -ex
+DOCKER=${DOCKER:-`which docker 2>/dev/null || which podman 2>/dev/null`}
+${DOCKER} build -t httpd_memcached - <<EOF
+FROM quay.io/centos/centos:stream8
+RUN yum install -y memcached
+CMD /usr/bin/memcached -u memcached -v
+EOF
+${DOCKER} run -d -p 11211:11211 httpd_memcached