Sign inSign up

chulinx/ccwork

By chulinx

•Updated about 3 years ago

Image
0

283

chulinx/ccwork repository overview

⁠Dockerfile

FROM chulinx/centos7-systemd:v1.0
RUN yum install dmidecode crontabs openssh-server  -y && yum clean all && sed -i -r 's/^(.*pam_nologin.so)/#\1/' /etc/pam.d/sshd
COPY entrypoint.sh /entrypoint.sh

⁠entrypoint.sh

#!/bin/bash
localedef -c -f UTF-8 -i zh_CN zh_CN.utf8
systemctl start crond
grep "export LC_ALL=zh_CN.utf8" /etc/profile
[ $? -ne 0 ] && echo -e "export LC_ALL=zh_CN.utf8\nexport LANG=zh_CN.utf8\nexport LANGUAGE=zh_CN.utf8" >>/etc/profile
grep "Environment=LC_ALL=C" /usr/lib/systemd/system/ccMongod.service
if [ $? -ne 0 ];then
       [ -f /usr/lib/systemd/system/ccMongod.service ] && sed "s/=yes/=yes \nEnvironment=LC_ALL=C/" /usr/lib/systemd/system/ccMongod.service
fi
source /etc/profile && ccsvrmanger s start

⁠new version

1. create dir
mkdir -p ccwork/{home,tmp,opt}
2. use base-v0.1 install new ccwork 
tar ccwork.tar.gz -C ccwork/home/ && cd ccwork
docker run --name ccwork-base  --privileged=true  -itd -v $PWD/home:/home -v $PWD/opt:/opt -v $PWD/tmp:/tmp chulinx/ccwork:base-v0.1 && docker exec -it ccwork-base  
cd /home/kookserver/install && sed -i s/0000/600/ config.conf && sed -i s#0.0.0.0#172.17.0.2# config.conf  && bash setup.sh 
3. stop ccwork and cp file to package

Tag summary

Content type

Image

Digest

sha256:76f37c8e9…

Size

1.1 GB

Last updated

about 3 years ago

docker pull chulinx/ccwork:70sp1-v0.3