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
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:
26
base/baselinux/centos-6/Dockerfile
Normal file
26
base/baselinux/centos-6/Dockerfile
Normal 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"]
|
12
base/baselinux/centos-6/docker-entrypoint.sh
Normal file
12
base/baselinux/centos-6/docker-entrypoint.sh
Normal 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 "$@"
|
5
base/baselinux/centos-6/repo.list
Normal file
5
base/baselinux/centos-6/repo.list
Normal 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
|
Reference in New Issue
Block a user