first commit
Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled

This commit is contained in:
2025-09-06 16:08:15 +08:00
commit 63285f61aa
2624 changed files with 88491 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
FROM centos:6
LABEL maintainer="phithon <root@leavesongs.com>"
COPY ./repo.list /etc/yum.repos.d/CentOS-Base.repo
RUN set -ex \
&& yum -y install wget cronie gcc-c++ tcl \
&& mkdir -p /usr/src/redis \
&& wget -qO- http://download.redis.io/releases/redis-2.8.24.tar.gz | tar xz -C /usr/src/redis --strip-components=1 \
&& cd /usr/src/redis \
&& make MALLOC=libc \
&& make install \
&& make clean \
&& cd / \
&& rm -rf /usr/src/redis \
&& yum -y remove gcc-c++ tcl
COPY docker-entrypoint.sh /
RUN set -ex \
&& chmod +x /docker-entrypoint.sh
EXPOSE 6379
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["redis-server"]

View File

@@ -0,0 +1,12 @@
#!/bin/sh
set -e
# first arg is `-f` or `--some-option`
# or first arg is `something.conf`
if [ "${1#-}" != "$1" ] || [ "${1%.conf}" != "$1" ]; then
set -- redis-server "$@"
fi
service crond start
exec "$@"

View File

@@ -0,0 +1,5 @@
[base]
name=CentOS-$releasever - Basevault
baseurl=http://vault.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6