Skip to content
This repository was archived by the owner on Jul 2, 2024. It is now read-only.

Commit ce8086e

Browse files
committed
Initial commit.
0 parents  commit ce8086e

25 files changed

+2461
-0
lines changed

.dockerignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.git
2+
.gitignore
3+
dist
4+
test
5+
LICENSE
6+
README-short.txt
7+
*.md
8+
!README.md
9+
**/*.mk
10+
**/Makefile

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dist

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Change Log
2+
3+
## centos-6
4+
5+
Summary of release changes for Version 1.
6+
7+
CentOS-6 6.10 x86_64 - Redis 3.2.
8+
9+
### 1.0.0 - Unreleased
10+
11+
- Initial release.

Dockerfile

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
# =============================================================================
2+
# jdeathe/centos-ssh-redis
3+
#
4+
# CentOS-6, Redis 3.2.
5+
# =============================================================================
6+
FROM jdeathe/centos-ssh:1.9.0
7+
8+
RUN yum -y install \
9+
--setopt=tsflags=nodocs \
10+
--disableplugin=fastestmirror \
11+
redis32u-3.2.12-1.ius.centos6 \
12+
&& yum versionlock add \
13+
redis32u* \
14+
&& yum clean all
15+
16+
# -----------------------------------------------------------------------------
17+
# Copy files into place
18+
# -----------------------------------------------------------------------------
19+
ADD src/usr/bin \
20+
/usr/bin/
21+
ADD src/usr/sbin \
22+
/usr/sbin/
23+
ADD src/opt/scmi \
24+
/opt/scmi/
25+
ADD src/etc/services-config/supervisor/supervisord.d \
26+
/etc/services-config/supervisor/supervisord.d/
27+
ADD src/etc/systemd/system \
28+
/etc/systemd/system/
29+
30+
RUN ln -sf \
31+
/etc/services-config/supervisor/supervisord.d/redis-server-bootstrap.conf \
32+
/etc/supervisord.d/redis-server-bootstrap.conf \
33+
&& ln -sf \
34+
/etc/services-config/supervisor/supervisord.d/redis-server-wrapper.conf \
35+
/etc/supervisord.d/redis-server-wrapper.conf \
36+
&& chmod 700 \
37+
/usr/{bin/healthcheck,sbin/redis-server-{bootstrap,wrapper}} \
38+
&& chmod 750 \
39+
/usr/sbin/redis-server-wrapper \
40+
&& chgrp redis \
41+
/usr/sbin/redis-server-wrapper \
42+
&& sed -i -r \
43+
-e "s~^(bind ).+$~\10.0.0.0~" \
44+
-e "s~^(# *)?(maxmemory ).+$~\2{{REDIS_MAXMEMORY}}~" \
45+
-e "s~^(# *)?(maxmemory-policy ).+$~\2{{REDIS_MAXMEMORY_POLICY}}~" \
46+
-e "s~^(# *)?(maxmemory-samples ).+$~\2{{REDIS_MAXMEMORY_SAMPLES}}~" \
47+
-e "s~^(tcp-backlog ).*$~\1{{REDIS_TCP_BACKLOG}}~" \
48+
/etc/redis.conf
49+
50+
EXPOSE 6379
51+
52+
# -----------------------------------------------------------------------------
53+
# Set default environment variables
54+
# -----------------------------------------------------------------------------
55+
ENV REDIS_AUTOSTART_REDIS_BOOTSTRAP="true" \
56+
REDIS_AUTOSTART_REDIS_WRAPPER="true" \
57+
REDIS_MAXMEMORY="64mb" \
58+
REDIS_MAXMEMORY_POLICY="allkeys-lru" \
59+
REDIS_MAXMEMORY_SAMPLES="5" \
60+
REDIS_OPTIONS="" \
61+
REDIS_TCP_BACKLOG="1024"
62+
63+
# -----------------------------------------------------------------------------
64+
# Set image metadata
65+
# -----------------------------------------------------------------------------
66+
ARG RELEASE_VERSION="1.0.0"
67+
LABEL \
68+
maintainer="James Deathe <james.deathe@gmail.com>" \
69+
install="docker run \
70+
--rm \
71+
--privileged \
72+
--volume /:/media/root \
73+
jdeathe/centos-ssh-redis:${RELEASE_VERSION} \
74+
/usr/sbin/scmi install \
75+
--chroot=/media/root \
76+
--name=\${NAME} \
77+
--tag=${RELEASE_VERSION}" \
78+
uninstall="docker run \
79+
--rm \
80+
--privileged \
81+
--volume /:/media/root \
82+
jdeathe/centos-ssh-redis:${RELEASE_VERSION} \
83+
/usr/sbin/scmi uninstall \
84+
--chroot=/media/root \
85+
--name=\${NAME} \
86+
--tag=${RELEASE_VERSION}" \
87+
org.deathe.name="centos-ssh-redis" \
88+
org.deathe.version="${RELEASE_VERSION}" \
89+
org.deathe.release="jdeathe/centos-ssh-redis:${RELEASE_VERSION}" \
90+
org.deathe.license="MIT" \
91+
org.deathe.vendor="jdeathe" \
92+
org.deathe.url="https://github.com/jdeathe/centos-ssh-redis" \
93+
org.deathe.description="CentOS-6 6.10 x86_64 - Redis 3.2."
94+
95+
HEALTHCHECK \
96+
--interval=0.5s \
97+
--timeout=1s \
98+
--retries=4 \
99+
CMD ["/usr/bin/healthcheck"]
100+
101+
CMD ["/usr/bin/supervisord", "--configuration=/etc/supervisord.conf"]

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
Copyright (c) 2016 James Deathe (jdeathe)
2+
https://github.com/jdeathe/centos-ssh-memcached
3+
4+
Permission is hereby granted, free of charge, to any person obtaining
5+
a copy of this software and associated documentation files (the
6+
"Software"), to deal in the Software without restriction, including
7+
without limitation the rights to use, copy, modify, merge, publish,
8+
distribute, sublicense, and/or sell copies of the Software, and to
9+
permit persons to whom the Software is furnished to do so, subject to
10+
the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included
13+
in all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
18+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
19+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
20+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
21+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

0 commit comments

Comments
 (0)