Since the code management tool used by the company is still subversion, it is a bit inconvenient to use the command line every time, so I thought of looking for a visual subversion tool for the Linux platform, because my working environment is basically CentOS7.X, I found it There were problems with several installations, and finally I thought about whether it could be realized with docker, so I thought it would be pretty beautiful.
from ubuntu
RUN apt-get update
RUN apt-get install -y sudo iputils-ping net-tools rapidsvn subversion locales language-pack-zh-hans language-pack-gnome-zh-hans fonts-wqy-microhei fonts-wqy-zenhei
RUN echo 'root:Letmein'| chpasswd
RUN useradd -u 1000 admin
RUN echo "admin:admin"| chpasswd
RUN echo "admin ALL=(ALL) NOPASSWD: ALL">>/etc/sudoers
RUN locale-gen en_US.UTF-8
Dockerfile uses the ubuntu image as the basic image, and installs some toolkits, rapidsvn and Chinese font files. In addition, a system user has been added, which is mainly to be consistent with the user of my [Host] (https://cloud.tencent.com/product/cdh?from=10680) device. Here, please note that the uid and gid must be unified.
docker build -t kongxx/rapidsvn:v1 .
In order to post the application in the container to the current window, you need to run the following command to allow any client access.
$ xhost +
access control disabled, clients can connect from any host
Then run the following command to start the RapidSVN tool.
docker run -it --rm -u admin -e DISPLAY=$DISPLAY -e LANG=zh_CN.UTF-8-v /tmp/.X11-unix:/tmp/.X11-unix -v /home/admin:/home/admin kongxx/rapidsvn:v1 rapidsvn
Recommended Posts